/* =========================================================
   lluiscodo.com – Sky Blue Betting Theme
   ========================================================= */

/* -- Custom Properties -- */
:root {
  --clr-bg: #f4f9ff;
  --clr-surface: #ffffff;
  --clr-surface2: #eaf3ff;
  --clr-border: #cfe0fb;
  --clr-accent: #3b82f6;
  --clr-accent-light: #7eb0ff;
  --clr-accent-dim: #2563eb;
  --clr-text: #17263d;
  --clr-muted: #70839e;
  --clr-success: #16a34a;
  --clr-danger: #dc2626;
  --clr-warn: #f59e0b;

  --ff-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.625rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;

  --lh-tight: 1.25;
  --lh-normal: 1.65;

  --sp-xs: .375rem;
  --sp-sm: .75rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 3px rgba(23,38,61,.06);
  --shadow-md: 0 4px 14px rgba(23,38,61,.08);
  --shadow-lg: 0 8px 28px rgba(23,38,61,.1);
  --shadow-accent: 0 8px 28px rgba(59,130,246,.25);

  --container-max: 1160px;
  --container-narrow: 780px;

  --transition-fast: .2s ease;
  --transition-base: .3s ease;
}

/* -- Reset & Base -- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--clr-text);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--clr-accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--clr-accent-dim); }
a:focus-visible,
button:focus-visible,
details summary:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* -- Layout -- */
.container-wide {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-lg);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--sp-lg);
}

/* -- Header / Nav -- */
.topnav-wrap {
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  position: sticky;
  top: 0;
  z-index: 900;
}
.primary-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  gap: var(--sp-md);
}
.brand-link { flex-shrink: 0; }
.brand-img { width: 148px; height: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}
.nav-item {
  display: inline-block;
  padding: var(--sp-sm) var(--sp-md);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-text);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.nav-item:hover,
.nav-item.active { background: var(--clr-surface2); color: var(--clr-accent); }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.menu-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -- Breadcrumbs -- */
.crumb-band {
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  padding: var(--sp-sm) 0;
}
.crumb-trail ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs);
  font-size: var(--fs-sm);
  color: var(--clr-muted);
}
.crumb-trail li + li::before {
  content: "›";
  margin-right: var(--sp-xs);
  color: var(--clr-border);
}
.crumb-trail a { color: var(--clr-accent); font-weight: 500; }
.crumb-trail span[aria-current] { font-weight: 600; color: var(--clr-text); }

/* -- Hero -- */
.hero-intro {
  padding: var(--sp-3xl) 0 var(--sp-2xl);
  background: var(--clr-surface);
  text-align: center;
}
.hero-intro h1 {
  font-size: var(--fs-2xl);
  line-height: var(--lh-tight);
  font-weight: 800;
  margin-bottom: var(--sp-lg);
  color: var(--clr-text);
}
.lead-text {
  font-size: var(--fs-md);
  color: var(--clr-muted);
  max-width: 700px;
  margin-inline: auto;
  line-height: 1.7;
}

/* -- Page Hero (subpages) -- */
.page-hero {
  padding: var(--sp-2xl) 0 var(--sp-xl);
  background: var(--clr-surface);
  text-align: center;
}
.page-hero h1 {
  font-size: var(--fs-2xl);
  font-weight: 800;
  margin-bottom: var(--sp-md);
}
.page-hero .lead-text { margin-bottom: 0; }

/* -- Top Picks / Casino Showcase -- */
.top-picks-section {
  padding: var(--sp-3xl) 0;
  background: var(--clr-bg);
}
.top-picks-section h2 {
  text-align: center;
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--sp-2xl);
}
.casino-roster {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}
.operator-entry {
  position: relative;
  display: grid;
  grid-template-columns: 56px 150px 1fr auto;
  align-items: center;
  gap: var(--sp-lg);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg) var(--sp-xl);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}
.operator-entry:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--clr-accent-light);
}

/* Rank badge */
.rank-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-dim));
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-sm);
  flex-shrink: 0;
}

/* Brand logo */
.brand-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-identity img { max-height: 44px; width: auto; }

/* Offer details */
.offer-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.offer-title {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--clr-muted);
  font-weight: 600;
}
.offer-value {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--clr-text);
  line-height: var(--lh-tight);
}
.offer-summary {
  font-size: var(--fs-sm);
  color: var(--clr-muted);
  line-height: 1.45;
}

/* CTA Button */
.entry-action { flex-shrink: 0; }
.go-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-dim));
  color: #fff;
  font-weight: 600;
  font-size: var(--fs-sm);
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition: box-shadow var(--transition-base), transform var(--transition-fast);
  text-decoration: none;
  min-width: 140px;
  text-align: center;
}
.go-btn:hover {
  color: #fff;
  box-shadow: var(--shadow-accent);
  transform: translateY(-1px);
}
.go-btn:active { transform: translateY(0); }

/* -- Evaluation Section -- */
.eval-section {
  padding: var(--sp-3xl) 0;
  background: var(--clr-surface);
}
.eval-section h2 {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--sp-lg);
}
.eval-section > .container-wide > p {
  max-width: 750px;
  color: var(--clr-muted);
  margin-bottom: var(--sp-xl);
}

/* Tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.eval-grid,
.payment-grid {
  width: 100%;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: var(--fs-sm);
}
.eval-grid thead,
.payment-grid thead { background: var(--clr-surface2); }
.eval-grid th,
.eval-grid td,
.payment-grid th,
.payment-grid td {
  padding: var(--sp-sm) var(--sp-md);
  text-align: left;
  border-bottom: 1px solid var(--clr-border);
  vertical-align: middle;
}
.eval-grid th,
.payment-grid th {
  font-weight: 600;
  color: var(--clr-text);
  white-space: nowrap;
}
.eval-grid tbody tr:last-child td,
.payment-grid tbody tr:last-child td { border-bottom: none; }
.eval-grid tbody tr:hover,
.payment-grid tbody tr:hover { background: var(--clr-surface2); }

.importance-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
}
.importance-tag.high { background: #dcfce7; color: #166534; }
.importance-tag.mid { background: #fef3c7; color: #92400e; }

/* -- Detailed Reviews -- */
.detailed-reviews {
  padding: var(--sp-3xl) 0;
  background: var(--clr-bg);
}
.detailed-reviews > .container-wide > h2 {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--sp-md);
}
.detailed-reviews > .container-wide > p {
  color: var(--clr-muted);
  max-width: 750px;
  margin-bottom: var(--sp-2xl);
}

.review-segment {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
  margin-bottom: var(--sp-xl);
  transition: box-shadow var(--transition-base);
}
.review-segment:hover { box-shadow: var(--shadow-sm); }

.review-header {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
  flex-wrap: wrap;
}
.review-logo { max-height: 38px; width: auto; flex-shrink: 0; }
.review-header h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: var(--lh-tight);
}

.review-segment > p {
  color: var(--clr-muted);
  margin-bottom: var(--sp-md);
  line-height: 1.7;
}

/* Pros / Cons */
.merit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  margin: var(--sp-lg) 0;
}
.merit-heading {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: var(--sp-sm);
  padding-bottom: var(--sp-xs);
  border-bottom: 2px solid;
}
.advantage-heading { color: var(--clr-success); border-color: var(--clr-success); }
.drawback-heading { color: var(--clr-danger); border-color: var(--clr-danger); }
.merit-list { font-size: var(--fs-sm); }
.merit-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: var(--sp-xs);
  line-height: 1.55;
  color: var(--clr-text);
}
.advantage-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--clr-success);
  font-weight: 700;
}
.drawback-list li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: var(--clr-danger);
  font-weight: 700;
}
.review-cta { margin-top: var(--sp-lg); }

/* -- Casino Types -- */
.types-section {
  padding: var(--sp-3xl) 0;
  background: var(--clr-surface);
}
.types-section h2 {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--sp-md);
}
.types-section > .container-wide > p {
  color: var(--clr-muted);
  max-width: 750px;
  margin-bottom: var(--sp-xl);
}
.types-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-lg);
}
.type-card {
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--sp-xl);
  transition: box-shadow var(--transition-base);
}
.type-card:hover { box-shadow: var(--shadow-sm); }
.type-card h4 {
  font-size: var(--fs-base);
  font-weight: 700;
  margin-bottom: var(--sp-sm);
  color: var(--clr-accent-dim);
}
.type-card p { font-size: var(--fs-sm); color: var(--clr-muted); line-height: 1.65; }

/* -- Promotions -- */
.promos-section {
  padding: var(--sp-3xl) 0;
  background: var(--clr-bg);
}
.promos-section h2 {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--sp-md);
}
.promos-section h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-md);
}
.promos-section > .container-wide > p {
  color: var(--clr-muted);
  max-width: 750px;
  margin-bottom: var(--sp-md);
}

/* Content Lists */
.content-list {
  padding-left: 0;
  margin-bottom: var(--sp-lg);
}
.content-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: var(--sp-sm);
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--clr-text);
}
.content-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-accent);
}
.content-list.warning-list li::before {
  background: var(--clr-danger);
}

/* Steps list */
.steps-list {
  list-style: none;
  counter-reset: step-counter;
  padding-left: 0;
  margin-bottom: var(--sp-lg);
}
.steps-list li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 44px;
  margin-bottom: var(--sp-md);
  font-size: var(--fs-sm);
  line-height: 1.65;
  min-height: 32px;
  display: flex;
  align-items: flex-start;
}
.steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-dim));
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-xs);
}

/* -- Payments -- */
.payments-section {
  padding: var(--sp-3xl) 0;
  background: var(--clr-surface);
}
.payments-section h2 {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--sp-md);
}
.payments-section > .container-wide > p {
  color: var(--clr-muted);
  max-width: 750px;
  margin-bottom: var(--sp-xl);
}

/* -- Trust / Safety -- */
.trust-section {
  padding: var(--sp-3xl) 0;
  background: var(--clr-bg);
}
.trust-section h2 {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--sp-md);
}
.trust-section h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-md);
}
.trust-section > .container-wide > p {
  color: var(--clr-muted);
  max-width: 750px;
  margin-bottom: var(--sp-md);
}

/* -- Getting Started -- */
.start-section {
  padding: var(--sp-3xl) 0;
  background: var(--clr-surface);
}
.start-section h2 {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--sp-md);
}
.start-section h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-md);
}
.start-section > .container-wide > p {
  color: var(--clr-muted);
  max-width: 750px;
  margin-bottom: var(--sp-md);
}

/* -- Comparison / Verdict -- */
.compare-section {
  padding: var(--sp-3xl) 0;
  background: var(--clr-bg);
}
.compare-section h2 {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--sp-md);
}
.compare-section > .container-wide > p {
  color: var(--clr-muted);
  max-width: 750px;
  margin-bottom: var(--sp-lg);
}

.verdict-box {
  background: linear-gradient(135deg, var(--clr-surface2), var(--clr-surface));
  border: 2px solid var(--clr-accent-light);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
  margin-top: var(--sp-xl);
}
.verdict-box h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--clr-accent-dim);
  margin-bottom: var(--sp-md);
}
.verdict-box p {
  color: var(--clr-text);
  line-height: 1.75;
  font-size: var(--fs-sm);
}

/* -- FAQ -- */
.faq-section {
  padding: var(--sp-3xl) 0;
  background: var(--clr-surface);
}
.faq-section h2 {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--sp-xl);
  text-align: center;
}
.faq-list {
  max-width: var(--container-narrow);
  margin-inline: auto;
}
.faq-item {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-sm);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}
.faq-item[open] { border-color: var(--clr-accent-light); }
.faq-question {
  cursor: pointer;
  padding: var(--sp-md) var(--sp-lg);
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--clr-text);
  background: var(--clr-surface);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  transition: background var(--transition-fast);
}
.faq-question:hover { background: var(--clr-surface2); }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "+";
  font-size: var(--fs-xl);
  font-weight: 300;
  color: var(--clr-accent);
  flex-shrink: 0;
  transition: transform var(--transition-base);
}
.faq-item[open] .faq-question::after {
  content: "−";
}
.faq-answer {
  padding: 0 var(--sp-lg) var(--sp-lg);
  animation: fadeSlide .3s ease forwards;
}
.faq-answer p {
  font-size: var(--fs-sm);
  color: var(--clr-muted);
  line-height: 1.7;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -- Content Sections (subpages) -- */
.content-section {
  padding: var(--sp-2xl) 0 var(--sp-3xl);
}
.content-section h2 {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-top: var(--sp-2xl);
  margin-bottom: var(--sp-md);
}
.content-section h2:first-of-type { margin-top: 0; }
.content-section h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-md);
}
.content-section p {
  color: var(--clr-muted);
  margin-bottom: var(--sp-md);
  line-height: 1.75;
}
.content-section a { font-weight: 500; }

/* -- Author Profile -- */
.author-profile {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
  margin-bottom: var(--sp-2xl);
  padding: var(--sp-xl);
  background: var(--clr-surface2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
}
.author-avatar {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--clr-accent-light);
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-info h2 { margin-top: 0; margin-bottom: var(--sp-xs); }
.author-title {
  font-size: var(--fs-sm);
  color: var(--clr-accent);
  font-weight: 600;
}

/* -- Footer -- */
.site-footer {
  background: var(--clr-text);
  color: #c4d0e0;
  padding: var(--sp-3xl) 0 var(--sp-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: var(--sp-2xl);
  margin-bottom: var(--sp-2xl);
}
.footer-brand img { filter: brightness(0) invert(1); opacity: .85; margin-bottom: var(--sp-sm); }
.footer-tagline { font-size: var(--fs-sm); color: #8a9bba; line-height: 1.6; }
.footer-links h4,
.footer-legal h4 {
  font-size: var(--fs-sm);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: var(--sp-md);
}
.footer-links ul { display: flex; flex-direction: column; gap: var(--sp-xs); }
.footer-links a {
  color: #8a9bba;
  font-size: var(--fs-sm);
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: #fff; }
.footer-legal p { font-size: var(--fs-xs); color: #8a9bba; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--sp-lg);
  text-align: center;
  font-size: var(--fs-xs);
  color: #6b7fa0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Mobile: ≤ 767px */
@media (max-width: 767px) {
  .hero-intro h1,
  .page-hero h1 { font-size: var(--fs-xl); }

  .menu-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--clr-surface);
    border-bottom: 1px solid var(--clr-border);
    padding: var(--sp-sm) var(--sp-lg);
    box-shadow: var(--shadow-md);
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-item { padding: var(--sp-md) var(--sp-sm); width: 100%; }
  .primary-nav { position: relative; }

  /* Casino cards – stacked */
  .operator-entry {
    grid-template-columns: 1fr;
    gap: var(--sp-md);
    padding: var(--sp-lg);
    text-align: center;
  }
  .rank-marker {
    position: absolute;
    top: -12px;
    left: -8px;
    width: 36px;
    height: 36px;
    font-size: var(--fs-xs);
    z-index: 2;
  }
  .brand-identity { justify-content: center; }
  .offer-details { align-items: center; }
  .entry-action { width: 100%; }
  .go-btn { width: 100%; }

  /* Pros/Cons stacked */
  .merit-grid { grid-template-columns: 1fr; }

  /* Types stacked */
  .types-grid { grid-template-columns: 1fr; }

  /* Footer stacked */
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-xl); }

  /* Author profile */
  .author-profile { flex-direction: column; text-align: center; }
  .author-avatar { width: 110px; height: 110px; }
}

/* Tablet: 768px – 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  .operator-entry {
    grid-template-columns: 44px 120px 1fr auto;
    gap: var(--sp-md);
    padding: var(--sp-md) var(--sp-lg);
  }
  .rank-marker { width: 36px; height: 36px; font-size: var(--fs-xs); }
  .offer-value { font-size: var(--fs-base); }
  .go-btn { padding: 10px 20px; font-size: var(--fs-xs); min-width: 120px; }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  .hero-intro h1,
  .page-hero h1 { font-size: var(--fs-3xl); }
  .hero-intro { padding: var(--sp-3xl) 0 var(--sp-3xl); }
}

/* Large desktop fine-tuning */
@media (min-width: 1200px) {
  .operator-entry { padding: var(--sp-lg) var(--sp-2xl); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* -- Scroll-to-top button -- */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-dim));
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base), box-shadow var(--transition-fast);
  z-index: 800;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top-btn:hover { box-shadow: var(--shadow-accent); }