/*
 * mapnerdconsulting.com — VegaStars Casino (AU monobrand), built from the
 * top-nav-editorial static template (originally converted from Tailwind v4 +
 * CVA Astro source). Flat top-nav, content-heavy single-vertical layout: one
 * column, same shell on mobile and desktop (the header dropdown collapses to
 * a hamburger sheet).
 *
 * Naming: BEM-ish with a `tn-` prefix carried over from the source template's
 * custom Tailwind tokens (`tn-*`). No Tailwind/CVA/build step here — every
 * utility combination has been resolved into a real class below.
 *
 * Palette for this build: deep violet/plum surfaces + gold accent + a
 * magenta-violet secondary — a "Vega/stars" night-sky motif (gold = stars,
 * violet = night sky), distinct from the template's original neutral-slate +
 * gold default.
 */

/* ---------- Tokens (theme.css @theme -> :root custom properties) ---------- */
:root {
  /* Surfaces — deep violet/plum, not neutral slate */
  --color-bg: oklch(20% 0.035 300);
  --color-bg-elevated: oklch(25% 0.04 300);
  --color-bg-card: oklch(29% 0.045 300);
  --color-border: oklch(38% 0.045 300);

  /* Text */
  --color-fg: oklch(96% 0.01 300);
  --color-fg-muted: oklch(74% 0.03 300);

  /* Brand accent — gold "stars" + violet-magenta secondary */
  --color-accent: oklch(80% 0.15 85);
  --color-accent-fg: oklch(18% 0.02 85);
  --color-accent-2: oklch(66% 0.18 330);
  --color-accent-2-fg: oklch(98% 0.01 330);
  --color-positive: oklch(72% 0.17 145);
  --color-negative: oklch(64% 0.2 25);

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-pill: 999px;

  --content-w: 46rem;
  --page-w: 72rem;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Redirect-modal reskin (static-html-redirect-kit) — matches this site's
     card surface + gold accent instead of the injected neutral default. */
  --go-modal-bg: var(--color-bg-card);
  --go-modal-text: var(--color-fg);
  --go-modal-accent: var(--color-accent);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0;
}

table {
  border-collapse: collapse;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.tn-skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  z-index: 100;
  background: var(--color-accent);
  color: var(--color-accent-fg);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  transition: top 0.15s ease;
}
.tn-skip-link:focus {
  top: 0.5rem;
}

.tn-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
.tn-icon--sm {
  width: 0.875rem;
  height: 0.875rem;
}

/* ---------- Buttons (CVA ctaVariants -> real classes) ---------- */
/* base: "inline-flex items-center justify-center rounded-tn-pill font-semibold transition-opacity" */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s ease;
  cursor: pointer;
  white-space: normal;
  max-width: 100%;
  text-align: center;
}
.btn:hover {
  opacity: 0.9;
}
/* defensive floor: a CTA label that ends up long (copy edit, translation, etc.)
   wraps instead of blowing out the layout — the real fix is keeping labels
   short at the markup level, this is just the backstop */
.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
/* intent: primary -> bg-tn-accent text-tn-accent-fg */
.btn--primary {
  background: var(--color-accent);
  color: var(--color-accent-fg);
}
/* intent: secondary -> bg-tn-accent-2 text-tn-accent-2-fg */
.btn--secondary {
  background: var(--color-accent-2);
  color: var(--color-accent-2-fg);
}
/* intent: ghost -> bg-tn-bg-elevated text-tn-fg */
.btn--ghost {
  background: var(--color-bg-elevated);
  color: var(--color-fg);
}
/* intent: link -> bg-transparent text-tn-fg-muted, hover:text-tn-fg (no opacity fade) */
.btn--link {
  background: transparent;
  color: var(--color-fg-muted);
  transition: color 0.15s ease;
}
.btn--link:hover {
  opacity: 1;
  color: var(--color-fg);
}
/* size: sm -> px-4 py-2 text-sm */
.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}
/* size: md -> px-5 py-2.5 text-sm */
.btn--md {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}
/* size: lg -> px-7 py-3.5 text-base */
.btn--lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

/* ---------- Table wrap (horizontal scroll guard) ---------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* =========================================================
   Header
   ========================================================= */
.tn-header {
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.tn-header__inner {
  margin: 0 auto;
  max-width: var(--page-w);
  height: 4rem;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tn-logo {
  font-size: 1.125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-fg);
  text-decoration: none;
}

.tn-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.tn-dropdown {
  position: relative;
}
.tn-dropdown__toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-fg-muted);
}
.tn-dropdown__toggle:hover {
  color: var(--color-fg);
}
.tn-dropdown__panel {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 10;
  margin-top: 0.5rem;
  min-width: 12rem;
  max-height: min(60vh, 480px);
  overflow-y: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  padding: 0.25rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  display: none;
}
.tn-dropdown__panel.is-open {
  display: block;
}
.tn-dropdown__link {
  display: block;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--color-fg-muted);
  text-decoration: none;
}
.tn-dropdown__link:hover {
  background: var(--color-bg-elevated);
  color: var(--color-fg);
}

.tn-nav__link {
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-fg-muted);
  text-decoration: none;
}
.tn-nav__link:hover {
  color: var(--color-fg);
}

.tn-header__actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.tn-header__burger {
  padding: 0.5rem;
  color: var(--color-fg);
}
.tn-header__burger svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* mobile sheet: right-anchored slide-in panel */
.tn-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
}
.tn-sheet.is-open {
  display: block;
}
.tn-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.tn-sheet__panel {
  position: absolute;
  inset-block: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: 18rem;
  max-width: 85vw;
  background: var(--color-bg-card);
  padding: 1rem;
  overflow-y: auto;
}
.tn-sheet__head {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tn-sheet__brand {
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-fg);
}
.tn-sheet__close {
  padding: 0.5rem;
  color: var(--color-fg-muted);
}
.tn-sheet__close svg {
  width: 1.25rem;
  height: 1.25rem;
}
.tn-sheet__ctas {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.5rem;
}
.tn-sheet__cta {
  flex: 1;
  text-align: center;
}
.tn-sheet__label {
  margin: 0 0 0.25rem;
  padding: 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-fg-muted);
}
.tn-sheet__nav {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}
.tn-sheet__nav--divided {
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
}
.tn-sheet__link {
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-fg);
  text-decoration: none;
}
.tn-sheet__link:hover {
  background: var(--color-bg-elevated);
}

/* =========================================================
   Winners ticker (CSS marquee, optional block)
   ========================================================= */
.tn-ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  padding: 0.375rem 0;
}
.tn-ticker__track {
  display: flex;
  width: max-content;
  gap: 2rem;
  animation: tn-ticker 30s linear infinite;
}
.tn-ticker__item {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-fg-muted);
  white-space: nowrap;
}
.tn-ticker__item .tn-icon {
  color: var(--color-accent);
}
.tn-ticker__item strong {
  color: var(--color-fg);
}
@keyframes tn-ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tn-ticker__track {
    animation: none;
  }
}

/* =========================================================
   Hero
   ========================================================= */
.tn-hero {
  margin: 0 auto;
  max-width: var(--page-w);
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.tn-hero__title {
  margin: 0;
  max-width: 42rem;
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-fg);
}
.tn-hero__hook {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  padding: 1.25rem 2rem;
}
.tn-hero__hook-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-fg-muted);
}
.tn-hero__hook-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-accent);
}
.tn-hero__ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.tn-hero__secondary {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-fg-muted);
  text-decoration: none;
}
.tn-hero__secondary:hover {
  color: var(--color-fg);
}

/* =========================================================
   Game grid (static CSS grid, not a carousel)
   ========================================================= */
.tn-grid {
  margin: 0 auto;
  max-width: var(--page-w);
  padding: 1.5rem 1rem;
}
.tn-grid__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.tn-card {
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.tn-card__art {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
}
.tn-card__art-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    color-mix(in oklch, var(--color-accent) 25%, transparent),
    var(--color-bg-card)
  );
  transition: transform 0.3s ease;
}
.tn-card:hover .tn-card__art-fill {
  transform: scale(1.05);
}
.tn-card__tag {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  border-radius: var(--radius-sm);
  background: color-mix(in oklch, var(--color-bg) 80%, transparent);
  color: var(--color-fg-muted);
  padding: 0.125rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
}
.tn-card__title {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Popular-games tile grid — reuses .tn-grid/.tn-card, swaps the 1:1
   placeholder art for real portrait cover images (152x227). */
.tn-games {
  margin-top: 1rem;
}
.tn-game-card__art {
  aspect-ratio: 152 / 227;
}
.tn-game-card__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* =========================================================
   Winners leaderboard
   ========================================================= */
.tn-leaderboard {
  margin: 0 auto;
  max-width: var(--page-w);
  padding: 1.5rem 1rem;
}
.tn-leaderboard__head {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.tn-leaderboard__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-fg);
}
.tn-leaderboard__tabs {
  display: flex;
  gap: 0.25rem;
  border-radius: var(--radius-pill);
  background: var(--color-bg-elevated);
  padding: 0.25rem;
}
.tn-leaderboard__tab {
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-fg-muted);
}
.tn-leaderboard__tab.is-active {
  background: var(--color-accent);
  color: var(--color-accent-fg);
}

.tn-table {
  width: 100%;
  min-width: 30rem;
  font-size: 0.875rem;
}
.tn-table thead tr {
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-fg-muted);
}
.tn-table th {
  padding: 0.5rem 0.75rem 0.5rem 0;
  font-weight: 600;
}
.tn-table tbody tr {
  border-bottom: 1px solid color-mix(in oklch, var(--color-border) 60%, transparent);
}
.tn-table tbody tr:nth-child(even) {
  background: color-mix(in oklch, var(--color-bg-elevated) 40%, transparent);
}
.tn-table td {
  padding: 0.625rem 0.75rem 0.625rem 0;
  color: var(--color-fg-muted);
}
.tn-table__rank {
  font-weight: 600;
  color: var(--color-fg-muted);
}
.tn-table__player {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-fg);
}
.tn-table__player .tn-icon {
  color: var(--color-accent);
}
.tn-table__num {
  text-align: right;
}
.tn-table__amount {
  font-weight: 700;
  color: var(--color-accent);
}

/* editorial kv table (How It Works) */
.tn-table--kv {
  min-width: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
}
.tn-table--kv tbody tr {
  border-bottom: 1px solid var(--color-border);
}
.tn-table--kv tbody tr:last-child {
  border-bottom: 0;
}
.tn-table--kv td {
  padding: 0.75rem 1rem;
  vertical-align: top;
}
.tn-table__label {
  width: 33%;
  font-weight: 600;
  color: var(--color-fg);
}

/* =========================================================
   App banner (optional block)
   ========================================================= */
.tn-appbanner {
  margin: 0 auto;
  max-width: var(--page-w);
  padding: 1.5rem 1rem;
}
.tn-appbanner__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  padding: 1.25rem 1.5rem;
}
.tn-appbanner__pitch {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-fg);
}
.tn-appbanner__stores {
  display: flex;
  gap: 0.75rem;
}
.tn-appbanner__store {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-fg-muted);
}

/* ---------- Hero ---------- */
.tn-hero {
  position: relative;
  overflow: hidden;
  margin: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background:
    linear-gradient(to right, var(--color-bg-elevated) 0%, color-mix(in oklch, var(--color-bg-elevated) 55%, transparent) 45%, transparent 85%),
    url("../img/hero-banner.webp") center/cover no-repeat,
    var(--color-bg-elevated);
}
.tn-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 40rem;
  padding: 2.5rem 1.5rem;
}
.tn-hero__eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-2);
}
.tn-hero__title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw + 1rem, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-fg);
}
.tn-hero .btn { margin-top: 0.5rem; width: fit-content; }

/* =========================================================
   Editorial sections (one component, three treatments)
   ========================================================= */
.tn-editorial {
  margin: 0 auto;
  max-width: var(--content-w);
  padding: 1.5rem 1rem;
}
.tn-editorial__heading {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-fg);
}
.tn-editorial__prose {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-fg-muted);
}
.tn-editorial__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.tn-editorial__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-fg-muted);
}
.tn-editorial__dot {
  margin-top: 0.5rem;
  width: 0.375rem;
  height: 0.375rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--color-accent);
}

/* =========================================================
   FAQ (native details/summary)
   ========================================================= */
.tn-faq {
  margin: 0 auto;
  max-width: var(--content-w);
  padding: 1.5rem 1rem;
}
.tn-faq__heading {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-fg);
}
.tn-faq__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
}
.tn-faq__item {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}
.tn-faq__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--color-fg);
}
.tn-faq__toggle::-webkit-details-marker {
  display: none;
}
.tn-faq__icon {
  color: var(--color-fg-muted);
  transition: transform 0.2s ease;
}
.tn-faq__item[open] .tn-faq__icon {
  transform: rotate(180deg);
}
.tn-faq__answer {
  margin: 0;
  padding-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-fg-muted);
}

/* =========================================================
   Testimonials
   ========================================================= */
.tn-testimonials {
  margin: 0 auto;
  max-width: var(--page-w);
  padding: 1.5rem 1rem;
}
.tn-testimonials__heading {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-fg);
}
.tn-testimonials__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.tn-testimonial {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  padding: 1.25rem;
}
.tn-testimonial__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.tn-testimonial__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: color-mix(in oklch, var(--color-accent-2) 20%, transparent);
  color: var(--color-accent-2);
  font-size: 0.875rem;
  font-weight: 700;
}
.tn-testimonial__name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-fg);
}
.tn-testimonial__date {
  margin: 0;
  font-size: 0.75rem;
  color: var(--color-fg-muted);
}
.tn-testimonial__stars {
  display: flex;
  gap: 0.125rem;
}
.tn-testimonial__stars .tn-icon {
  width: 1rem;
  height: 1rem;
  color: var(--color-border);
}
.tn-testimonial__stars .tn-icon.is-filled {
  color: var(--color-accent);
}
.tn-testimonial__quote {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-fg-muted);
}

/* =========================================================
   Author box
   ========================================================= */
.tn-authorbox {
  margin: 0 auto;
  max-width: var(--content-w);
  padding: 1rem 1rem 1.5rem;
}
.tn-authorbox__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  padding: 1rem 1.25rem;
  text-decoration: none;
}
.tn-authorbox__link:hover {
  border-color: color-mix(in oklch, var(--color-accent) 50%, transparent);
}
.tn-authorbox__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: color-mix(in oklch, var(--color-accent) 15%, transparent);
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 700;
}
.tn-authorbox__name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-fg);
}
.tn-authorbox__role {
  display: block;
  font-size: 0.75rem;
  color: var(--color-fg-muted);
}

/* =========================================================
   Footer
   ========================================================= */
.tn-footer {
  border-top: 1px solid var(--color-border);
}
.tn-footer__inner {
  margin: 0 auto;
  max-width: var(--page-w);
  padding: 2.5rem 1rem;
}
.tn-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.tn-footer__grid--minimal {
  grid-template-columns: 1fr;
}
.tn-footer__brand {
  grid-column: span 2;
}
.tn-footer__grid--minimal .tn-footer__brand {
  grid-column: span 1;
}
.tn-footer__brand-name {
  margin: 0 0 0.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-fg);
}
.tn-footer__tagline {
  font-size: 0.875rem;
  color: var(--color-fg-muted);
}
.tn-footer__social {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
}
.tn-footer__social-link {
  color: var(--color-fg-muted);
}
.tn-footer__social-link:hover {
  color: var(--color-fg);
}
.tn-footer__col-title {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-fg-muted);
}
.tn-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tn-footer__links a {
  font-size: 0.875rem;
  color: var(--color-fg-muted);
  text-decoration: none;
}
.tn-footer__links a:hover {
  color: var(--color-fg);
}
.tn-footer__payments {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}
.tn-footer__badge {
  border-radius: var(--radius-sm);
  background: var(--color-bg-elevated);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-fg-muted);
}
.tn-footer__legal {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-fg-muted);
}
.tn-footer__age {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--color-fg-muted);
}

/* =========================================================
   Desktop (min-width: 1024px) — mirrors the source's `lg:` breakpoint.
   Flat nav + auth CTAs appear, burger + sheet disappear.
   ========================================================= */
@media (min-width: 1024px) {
  .tn-header__inner {
    padding: 0 1.5rem;
  }
  .tn-nav {
    display: flex;
  }
  .tn-header__actions {
    display: flex;
  }
  .tn-header__burger {
    display: none;
  }
  .tn-sheet {
    display: none !important;
  }

  .tn-hero {
    padding: 5rem 1.5rem;
  }
  .tn-hero__title {
    font-size: 3rem;
  }
  .tn-hero__ctas {
    flex-direction: row;
  }

  .tn-grid {
    padding: 2rem 1.5rem;
  }
  .tn-grid__list {
    grid-template-columns: repeat(4, 1fr);
  }

  .tn-leaderboard,
  .tn-appbanner,
  .tn-testimonials {
    padding: 2rem 1.5rem;
  }

  .tn-editorial,
  .tn-faq,
  .tn-authorbox {
    padding: 2rem 1.5rem;
  }

  .tn-testimonials__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .tn-footer__inner {
    padding: 2.5rem 1.5rem;
  }
  .tn-footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .tn-footer__brand {
    grid-column: span 1;
  }
}

@media (min-width: 640px) {
  .tn-grid__list {
    grid-template-columns: repeat(3, 1fr);
  }
  .tn-hero__ctas {
    flex-direction: row;
  }
}
