﻿/* tap-dark — charcoal + ember: one accent, no rainbow neon */
:root {
  --tt-bg: #0a0a0b;
  --tt-surface: #121214;
  --tt-panel: #19191d;
  --tt-panel-2: #222228;
  --tt-ink: #f4f4f5;
  --tt-muted: #a1a1aa;
  --tt-faint: #71717a;
  --tt-border: #2a2a30;
  --tt-border-hi: #3f3f46;
  --tt-accent: #ff6a3d;
  --tt-accent-2: #ff8f66;
  --tt-cta: linear-gradient(160deg, #ff8a55 0%, #ff5a2e 100%);
  --tt-radius: 12px;
  --tt-radius-lg: 18px;
  --tt-rail-w: 228px;
  --tt-header-h: 60px;
  --tt-pad: 1.15rem;
  --tt-pad-lg: 1.6rem;
  --tt-olive: #ff6a3d;
  --tt-promo: #ff6a3d;
  --tt-withdraw: #d4a017;
  --tt-gold: #e0b84a;
  --tt-rank: #52525b;
  --tt-soft: #222228;
  --tt-dl-bg: var(--tt-cta);
  --tt-dl-color: #1a0a06;
  --tt-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --tt-bloom: rgb(255 106 61 / 0.1);
  --tt-bloom-2: rgb(255 106 61 / 0.04);
  --tt-bloom-3: transparent;
  --tt-bloom-4: transparent;
  --tt-vignette: rgb(0 0 0 / 0.55);
  --tt-grid-line: rgb(255 255 255 / 0.025);
  --tt-glow: none;
  --tt-glow-hot: 0 8px 20px rgb(0 0 0 / 0.35);

  /* Semantic — navigation */
  --tt-nav-fg: #c4c4c8;
  --tt-nav-fg-hover: #fff;
  --tt-nav-fg-active: #1a0a06;
  --tt-nav-bg-hover: rgb(255 255 255 / 0.05);
  --tt-nav-bg-active: #ff6a3d;
  --tt-nav-border-active: transparent;
  --tt-nav-label: #a1a1aa;
  --tt-nav-gap: 0.3rem;
  --tt-nav-pad-x: 0.7rem;
  --tt-nav-pad-y: 0.55rem;
  --tt-nav-radius: 0.75rem;

  /* Component — rail */
  --tt-rail-bg: rgb(10 10 11 / 0.92);
  --tt-rail-border: rgb(255 255 255 / 0.08);
  --tt-rail-section-bg: rgb(255 255 255 / 0.03);
  --tt-rail-section-border: rgb(255 255 255 / 0.06);
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
  background: #0a0a0b;
  color: var(--tt-ink);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

i[data-lucide] {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  color: inherit;
  line-height: 0;
}

i[data-lucide]:not(:has(svg)) {
  opacity: 0;
}

svg.lucide {
  display: block;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

svg.lucide.fill-current,
.fill-current.lucide {
  fill: currentColor;
}

:focus-visible {
  outline: 2px solid var(--tt-accent);
  outline-offset: 2px;
}

.tt-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Shell: full-bleed stage — atmosphere lives here so header/rail/content share one world */
.tt-shell {
  --tt-shell-max: 1024px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "topad"
    "header"
    "frame";
  min-height: 100vh;
  width: 100%;
  max-width: min(100%, var(--tt-shell-max));
  margin-inline: auto;
  min-width: 0;
  position: relative;
  isolation: isolate;
  background: #0a0a0b;
  overflow-x: clip;
}

.tt-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 36% at 12% 0%, var(--tt-bloom), transparent 70%),
    radial-gradient(ellipse 100% 80% at 50% 40%, transparent 50%, var(--tt-vignette) 100%),
    linear-gradient(180deg, #101012 0%, #0a0a0b 50%, #080809 100%);
}

.tt-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--tt-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--tt-grid-line) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 15%, #000 0%, transparent 75%);
}

.tt-shell > * {
  position: relative;
  z-index: 1;
}

.tt-top-ad {
  grid-area: topad;
  position: relative;
  height: 3.5rem;
  overflow: hidden;
  background: #000;
}

.tt-top-ad__link,
.tt-top-ad__img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.tt-top-ad__close {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.9);
  color: #111;
  cursor: pointer;
}

.tt-header {
  grid-area: header;
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--tt-header-h);
  background: rgb(12 12 14 / 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.28);
}

.tt-rail {
  display: none;
  grid-area: rail;
}

.tt-frame {
  grid-area: frame;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  position: relative;
  background: transparent;
  overflow-x: clip;
}

.tt-main {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  padding-bottom: 2.5rem;
  overflow-x: clip;
}

@media (min-width: 1024px) {
  .tt-shell {
    grid-template-columns: var(--tt-rail-w) 1fr;
    grid-template-areas:
      "topad topad"
      "header header"
      "rail frame";
  }

  .tt-rail {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: var(--tt-header-h);
    height: calc(100vh - var(--tt-header-h));
    overflow-y: auto;
    padding: 0.85rem 0.7rem 1.25rem;
    border-right: 1px solid var(--tt-rail-border);
    background: linear-gradient(180deg, rgb(8 10 12 / 0.72) 0%, rgb(5 5 6 / 0.82) 100%);
    backdrop-filter: blur(12px) saturate(1.1);
    scrollbar-width: thin;
    scrollbar-color: rgb(255 255 255 / 0.22) transparent;
  }

  .tt-rail::-webkit-scrollbar {
    width: 6px;
  }

  .tt-rail::-webkit-scrollbar-track {
    background: transparent;
  }

  .tt-rail::-webkit-scrollbar-thumb {
    background: rgb(255 255 255 / 0.22);
    border-radius: 999px;
  }

  .tt-rail::-webkit-scrollbar-thumb:hover {
    background: rgb(255 255 255 / 0.36);
  }

  .tt-header__menu {
    display: none !important;
  }
}

/* Section band — clean H2 + text link */
.tt-band {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tt-band__main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.tt-band__title {
  margin: 0;
  font-family: var(--tt-display);
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.15;
}

.tt-band__link {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--tt-muted);
  text-decoration: none;
}

.tt-band__link:hover {
  color: var(--tt-accent);
}

/* Page title (non-deal) */
.tt-page-head {
  margin-bottom: 1.25rem;
}

.tt-page-head__title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.tt-page-head__count {
  margin-left: 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--tt-muted);
}

.tt-page-head__lead {
  margin: 0.5rem 0 0;
  max-width: 40rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--tt-muted);
}

.tt-prose {
  line-height: 1.7;
  color: var(--tt-ink);
  font-size: 0.95rem;
}

.tt-prose h1,
.tt-prose h2,
.tt-prose h3,
.tt-prose h4 {
  font-weight: 700;
  color: var(--tt-ink);
  line-height: 1.25;
  margin: 1.2em 0 0.5em;
}

.tt-prose p,
.tt-prose ul,
.tt-prose ol {
  margin: 0 0 1em;
}

.tt-prose a {
  color: var(--tt-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tt-prose img {
  border-radius: var(--tt-radius);
  margin: 1em 0;
}

/* Legacy class stubs — neutralize deal chrome if leftover markup appears */
.tt-deal-surface {
  background: var(--tt-panel);
  border: 1px solid var(--tt-border);
  color: var(--tt-ink);
  box-shadow: none;
}

.tt-deal-surface::before {
  display: none;
}

.tt-deal-ribbon {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tt-ink);
  background: var(--tt-panel-2);
  border: 1px solid var(--tt-border);
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .tt-shell::after {
    opacity: 0.12;
  }
}
