/* Hashmark Design System - Fantasy Football Platform
   Studio: one subject, one key light, a seamless sweep behind it.
   Colour temperature is the data channel — tungsten = hot, daylight = cold. */

/* ============ CSS Reset & Base ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
body { line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

/* ============ Hashmark Design Tokens ============ */
:root {
  /* Studio sweep - deep spruce background */
  --sweep-far: #0A0F0D;
  --sweep-mid: #111A17;
  --sweep-lit: #1E2B26;
  
  /* Paper seamless */
  --paper: #E8E8E3;
  --paper-fold: #D6D7D0;
  
  /* Text on dark */
  --ink: #0A0F0D;
  --chalk: #F4F6F2;
  --chalk-dim: rgba(244,246,242,.58);
  --chalk-faint: rgba(244,246,242,.26);
  
  /* Hairline rules */
  --hair: rgba(244,246,242,.14);
  --hair-ink: rgba(10,15,13,.16);
  
  /* Single accent: pylon orange */
  --pylon: #FF5A1F;
  
  /* Temperature palette for data */
  --tungsten: #FFA05A;  /* 3200K - hot hand */
  --daylight: #6FA8C7;  /* 5600K - cooling off */
  --turf: #2E4A3C;
  
  /* Border radius */
  --r-chip: 2px;
  --r-panel: 6px;
  
  /* Shadows */
  --shadow-key: 0 28px 60px -24px rgba(0,0,0,.85);
  --shadow-paper: 0 18px 40px -18px rgba(10,15,13,.35);
  
  /* Fluid typography */
  --step--1: clamp(.72rem,.70rem + .1vw,.78rem);
  --step-0: clamp(.95rem,.92rem + .18vw,1.05rem);
  --step-1: clamp(1.2rem,1.1rem + .5vw,1.45rem);
  --step-2: clamp(1.7rem,1.4rem + 1.3vw,2.4rem);
  --step-3: clamp(2.4rem,1.7rem + 3.2vw,4.6rem);
  --step-4: clamp(2.9rem,1.9rem + 4.9vw,6.4rem);
  
  /* Layout */
  --rail: clamp(1.15rem,4vw,4.5rem);
  --maxw: 1320px;
  
  /* Legacy compatibility aliases */
  --bg-primary: var(--sweep-far);
  --bg-secondary: var(--sweep-mid);
  --bg-surface: var(--sweep-lit);
  --bg-elevated: var(--sweep-lit);
  --bg-hover: rgba(244,246,242,.05);
  --text-primary: var(--chalk);
  --text-secondary: var(--chalk-dim);
  --text-muted: var(--chalk-faint);
  --border-subtle: var(--hair);
  --accent-cyan: var(--pylon);
  --accent-green: #34D399;
  --accent-gold: var(--tungsten);
  --accent-danger: #F43F5E;
  --accent-violet: #A78BFA;
  --accent-orange: var(--pylon);
  
  /* Font */
  --font-sans: "Archivo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ============ Base Styles ============ */
html { 
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--sweep-far);
  color: var(--chalk);
  font-family: var(--font-sans);
  font-variation-settings: "wdth" 100;
  font-size: var(--step-0);
  line-height: 1.55;
  overflow-x: hidden;
}

[x-cloak] { display: none !important; }

/* ============ Typography ============ */
h1, h2, h3 {
  font-variation-settings: "wdth" 118, "wght" 700;
  line-height: .94;
  letter-spacing: -.022em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { 
  font-size: var(--step-1); 
  line-height: 1.12; 
  font-variation-settings: "wdth" 110, "wght" 650; 
}

p { margin: 0 0 1em; max-width: 62ch; }
a { color: inherit; }

.num {
  font-variant-numeric: tabular-nums lining-nums;
  font-variation-settings: "wdth" 92, "wght" 600;
  letter-spacing: -.01em;
}

/* ============ Layout Utilities ============ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--rail); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--pylon);
  color: #fff;
  padding: .6rem 1rem;
}

.skip:focus { left: .5rem; top: .5rem; }

:focus-visible {
  outline: 2px solid var(--pylon);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============ Masthead Navigation ============ */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(to bottom, rgba(10,15,13,.92), rgba(10,15,13,.62) 70%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
}

.masthead-in {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  height: 62px;
}

.mark {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  font-variation-settings: "wdth" 120, "wght" 750;
  letter-spacing: -.03em;
  font-size: 1.06rem;
}

.mark svg { display: block; }

.masthead nav {
  display: flex;
  gap: clamp(.9rem, 2.2vw, 1.9rem);
  margin-left: auto;
  align-items: center;
}

.masthead nav a {
  text-decoration: none;
  color: var(--chalk-dim);
  font-size: var(--step--1);
  font-variation-settings: "wdth" 96, "wght" 520;
  transition: color .18s;
}

.masthead nav a:hover { color: var(--chalk); }

/* Nav link states */
.nav-link {
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-chip);
  transition: all 0.2s ease;
  color: var(--chalk-dim);
  font-weight: 500;
}

.nav-link:hover {
  color: var(--chalk);
  background: rgba(244,246,242,.05);
}

.nav-link.active {
  color: var(--pylon);
  background: rgba(255,90,31,.1);
  font-weight: 600;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .62rem 1.05rem;
  border-radius: var(--r-chip);
  border: 1px solid transparent;
  font: inherit;
  font-variation-settings: "wdth" 104, "wght" 620;
  font-size: var(--step--1);
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s, background .18s, border-color .18s, color .18s;
}

.btn-hot {
  background: var(--pylon);
  color: #0A0F0D;
  font-variation-settings: "wdth" 104, "wght" 700;
}

.btn-hot:hover {
  transform: translateY(-1px);
  background: #ff6f3c;
}

.btn-ghost {
  border-color: var(--hair);
  color: var(--chalk-dim);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--chalk-faint);
  color: var(--chalk);
}

.btn-lg { padding: .85rem 1.4rem; font-size: var(--step-0); }

/* Primary button with pylon */
.btn-primary {
  background: var(--pylon);
  color: #0A0F0D;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-chip);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(255,90,31,.25);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,90,31,.35);
  background: #ff6f3c;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: rgba(244,246,242,.05);
  color: var(--chalk);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-chip);
  border: 1px solid var(--hair);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(244,246,242,.1);
  border-color: var(--chalk-faint);
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-danger {
  background: linear-gradient(135deg, #F43F5E 0%, #E11D48 100%);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-chip);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.25);
  border: none;
  cursor: pointer;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(244, 63, 94, 0.35);
}

@media(max-width:860px) { .masthead nav a:not(.btn) { display: none; } }

/* ============ Hero: the studio ============ */
.studio {
  position: relative;
  min-height: clamp(620px, 96svh, 1000px);
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(2rem, 6vh, 4.5rem);
  overflow: hidden;
}

.sweep {
  position: absolute;
  inset: -10% -10% 0;
  z-index: 0;
  background:
    radial-gradient(120% 82% at 62% 26%, var(--sweep-lit) 0%, var(--sweep-mid) 42%, var(--sweep-far) 78%),
    var(--sweep-far);
}

.sweep::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(10,15,13,.75) 88%);
}

/* the 3-D stage */
.stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  perspective: 1500px;
  perspective-origin: 50% 40%;
  pointer-events: none;
}

.pitch {
  --pw: min(1060px, 118vw);
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--pw);
  height: calc(var(--pw) * 760 / 600);
  margin-left: calc(var(--pw) / -2 + 2vw);
  margin-top: calc(var(--pw) * -760 / 600 * 0.585);
  transform-style: preserve-3d;
  transform: rotateX(var(--camx, 53deg)) rotateZ(var(--camz, 0deg)) translateZ(var(--camzoom, 0px));
  will-change: transform;
}

.pitch svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.turf { fill: none; }
.yard { stroke: rgba(244,246,242,.085); stroke-width: 1.1; }
.yard-5 { stroke: rgba(244,246,242,.045); stroke-width: .8; }
.hashline { stroke: rgba(244,246,242,.12); stroke-width: 1.1; stroke-linecap: round; }
.sideline { stroke: rgba(244,246,242,.05); stroke-width: 1.1; }
.goal { stroke: var(--pylon); stroke-width: 2; opacity: .3; }
.yardnum {
  fill: rgba(244,246,242,.1);
  font-size: 20px;
  font-variation-settings: "wdth" 120, "wght" 700;
  font-family: "Archivo", sans-serif;
}

.route { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.route-live { stroke: var(--chalk); opacity: .8; }
.route-target { stroke: var(--pylon); stroke-width: 4.2; filter: drop-shadow(0 0 7px rgba(255,90,31,.55)); }
.route-block { stroke: rgba(244,246,242,.3); stroke-width: 2; stroke-dasharray: 3 5; }
.dcover { fill: none; stroke: var(--daylight); stroke-width: 1.6; opacity: .42; stroke-dasharray: 2 6; }

.chip {
  position: absolute;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  border: 1.5px solid rgba(244,246,242,.34);
  background: rgba(20,30,26,.72);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-variation-settings: "wdth" 90, "wght" 700;
  color: var(--chalk-dim);
}

.chip.d {
  border-color: rgba(111,168,199,.5);
  color: rgba(111,168,199,.85);
  background: rgba(13,26,33,.7);
}

/* standees — players stand up off the turf */
.standee { position: absolute; transform-style: preserve-3d; pointer-events: none; }

.standee .fig {
  position: absolute;
  left: -27px;
  bottom: 0;
  width: 54px;
  transform-origin: 50% 100%;
  transform: rotateX(calc(var(--camx, 53deg) * -1));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.standee .plate {
  padding: 4px 8px 5px;
  border-radius: 2px;
  background: #F4F6F2;
  color: #0A0F0D;
  font-size: 12.5px;
  line-height: 1;
  font-variation-settings: "wdth" 86, "wght" 750;
  letter-spacing: -.01em;
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.9);
  white-space: nowrap;
}

.standee .post {
  width: 2px;
  height: 16px;
  background: linear-gradient(to bottom, rgba(244,246,242,.5), rgba(244,246,242,0));
}

.standee.qb .plate { background: var(--chalk); }
.standee.tgt .plate { background: var(--pylon); color: #0A0F0D; }

.standee .cast {
  position: absolute;
  left: -17px;
  top: -4px;
  width: 34px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.72), transparent);
  filter: blur(1.5px);
}

.ball {
  position: absolute;
  width: 11px;
  height: 7px;
  margin: -3px 0 0 -5px;
  border-radius: 50%/50%;
  background: linear-gradient(140deg, #C97A42, #7A4220);
  box-shadow: 0 0 0 .5px rgba(244,246,242,.5);
  opacity: 0;
}

.ballshadow {
  position: absolute;
  width: 12px;
  height: 5px;
  margin: -2px 0 0 -6px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  filter: blur(1.5px);
  opacity: 0;
}

.pop {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  border: 2px solid var(--pylon);
  opacity: 0;
}

/* depth of field + key light */
.dof {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(66% 54% at 55% 36%, transparent 0%, rgba(10,15,13,.22) 55%, rgba(10,15,13,.9) 100%),
    linear-gradient(to right, rgba(10,15,13,.86) 0%, rgba(10,15,13,.34) 38%, transparent 62%),
    linear-gradient(to bottom, rgba(10,15,13,.8) 0%, transparent 13%, transparent 38%, rgba(10,15,13,.6) 52%, rgba(10,15,13,.95) 65%, var(--sweep-far) 78%);
}

.hero-copy { position: relative; z-index: 3; width: 100%; }
.hero-copy h1 { max-width: 12ch; margin-bottom: .55rem; }

.lede {
  font-size: var(--step-1);
  max-width: 44ch;
  font-variation-settings: "wdth" 96, "wght" 380;
  color: var(--chalk-dim);
  line-height: 1.38;
  margin-bottom: 1.6rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.cta-note { font-size: var(--step--1); color: var(--chalk-faint); margin: 0; }

/* the broadcast bug — score display */
.bug {
  position: absolute;
  right: var(--rail);
  bottom: clamp(2rem, 6vh, 4.5rem);
  z-index: 3;
  width: min(280px, 42vw);
  background: rgba(10,15,13,.72);
  backdrop-filter: blur(10px);
  border: 1px solid var(--hair);
  border-radius: var(--r-panel);
  padding: .85rem .95rem;
  box-shadow: var(--shadow-key);
}

.bug-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: .5rem;
}

.bug-head b {
  font-size: var(--step--1);
  font-variation-settings: "wdth" 110, "wght" 680;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.bug-clock { font-size: var(--step--1); color: var(--chalk-faint); }

.bug-line {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding: .3rem 0;
  border-top: 1px solid var(--hair);
  font-size: var(--step--1);
}

.bug-line span:first-child { color: var(--chalk-dim); }
.bug-gain { color: var(--pylon); }

.bug-caption {
  margin: .6rem 0 0;
  font-size: var(--step--1);
  color: var(--chalk-faint);
  line-height: 1.35;
}

/* Mobile hero adjustments */
@media(max-width:960px) {
  .studio {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 0;
    padding-top: clamp(268px, 39svh, 392px);
    padding-bottom: 2.5rem;
  }
  .stage { bottom: auto; height: clamp(292px, 43svh, 424px); overflow: hidden; }
  .sweep { inset: -8% -8% auto; height: clamp(420px, 62svh, 600px); }
  .dof {
    bottom: auto;
    height: clamp(300px, 44svh, 436px);
    background:
      radial-gradient(78% 56% at 52% 36%, transparent 0%, rgba(10,15,13,.25) 58%, rgba(10,15,13,.9) 100%),
      linear-gradient(to bottom, rgba(10,15,13,.78) 0%, transparent 15%, transparent 48%, rgba(10,15,13,.9) 80%, var(--sweep-far) 100%);
  }
  .pitch { --pw: min(820px, 170vw); margin-left: calc(var(--pw) / -2); margin-top: calc(var(--pw) * -760 / 600 * 0.632); }
  .hero-copy { order: 1; }
  .bug { position: relative; right: auto; bottom: auto; width: 100%; order: 2; margin-top: 1.9rem; }
  .lede { font-size: var(--step-0); max-width: 38ch; }
  .cta-row { gap: .6rem; }
  .cta-note { flex-basis: 100%; margin-top: .2rem; }
}

@media(max-width:620px) {
  .masthead nav .btn-ghost { display: none; }
  .bug-caption { display: none; }
}

/* ============ Board Section ============ */
section[id] { scroll-margin-top: 78px; }

.board {
  position: relative;
  z-index: 5;
  background: var(--sweep-far);
  border-top: 1px solid var(--hair);
  padding-block: clamp(3rem, 7vh, 5.5rem);
}

.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.sec-head p { margin: .6rem 0 0; color: var(--chalk-dim); max-width: 52ch; }

.table { width: 100%; border-collapse: collapse; font-size: var(--step-0); }
.table caption { text-align: left; color: var(--chalk-faint); font-size: var(--step--1); padding-bottom: .7rem; }

.table th {
  text-align: left;
  font-size: var(--step--1);
  font-variation-settings: "wdth" 92, "wght" 560;
  color: var(--chalk-faint);
  padding: .5rem .7rem;
  border-bottom: 1px solid var(--hair);
  white-space: nowrap;
}

.table th.r, .table td.r { text-align: right; }
.table td { padding: .72rem .7rem; border-bottom: 1px solid rgba(244,246,242,.07); vertical-align: middle; }
.table tbody tr:hover { background: rgba(244,246,242,.035); }

.who { display: flex; align-items: baseline; gap: .5rem; }
.who b { font-variation-settings: "wdth" 104, "wght" 640; }
.who i { font-style: normal; font-size: var(--step--1); color: var(--chalk-faint); }

.range { display: flex; align-items: center; gap: .5rem; min-width: 130px; }
.range-bar { position: relative; height: 5px; flex: 1; background: rgba(244,246,242,.1); border-radius: 3px; overflow: hidden; }
.range-fill { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(244,246,242,.3), var(--chalk)); }
.range-med { position: absolute; top: -3px; width: 2px; height: 11px; background: var(--pylon); }

.kelvin { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.kelvin i { width: 26px; height: 6px; border-radius: 3px; display: inline-block; }

.mkt { font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 92, "wght" 620; }
.edge { font-size: var(--step--1); color: rgba(244,246,242,.46); }
.mkt-lbl { display: none; }

@media(max-width:820px) {
  .hide-sm { display: none; }
  .table caption { padding-bottom: 1rem; }
  .table thead { display: none; }
  .table tbody, .table td { display: block; }
  .table tr {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    column-gap: .9rem;
    row-gap: .35rem;
    padding: .95rem 0;
    border-bottom: 1px solid rgba(244,246,242,.08);
  }
  .table td { border: 0; padding: 0; }
  .table td:nth-child(1) { grid-column: 1; grid-row: 1; min-width: 0; }
  .table td:nth-child(4) { grid-column: 2; grid-row: 1; text-align: right; white-space: nowrap; }
  .table td:nth-child(3) { grid-column: 2; grid-row: 2; text-align: right; }
  .table td:nth-child(5) { grid-column: 1 / -1; }
  .who { flex-wrap: wrap; gap: .1rem .5rem; }
  .mkt-lbl { display: inline; font-size: var(--step--1); color: var(--chalk-faint); margin-left: .3rem; font-variation-settings: "wdth" 96, "wght" 450; }
  .range { min-width: 0; }
}

/* ============ Paper Seamless Section ============ */
.seamless {
  position: relative;
  background:
    radial-gradient(130% 100% at 50% 0%, #F2F2EE 0%, var(--paper) 46%, var(--paper-fold) 100%);
  color: var(--ink);
  padding-block: clamp(3.5rem, 9vh, 7rem);
  box-shadow: inset 0 26px 44px -30px rgba(10,15,13,.55);
}

.seamless h2, .seamless h3 { color: var(--ink); }
.seamless p { color: rgba(10,15,13,.72); }

.subject-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-top: 2.5rem;
}

@media(max-width:900px) { .subject-grid { grid-template-columns: 1fr; } }

/* Card 3D effect */
.set { position: relative; perspective: 1000px; display: grid; place-items: center; min-height: 380px; }

.card {
  position: relative;
  width: min(330px, 80vw);
  aspect-ratio: 3/4.1;
  border-radius: 4px;
  background: linear-gradient(165deg, #233029, #0E1613 62%);
  transform-style: preserve-3d;
  transform: rotateY(var(--ry, -13deg)) rotateX(var(--rx, 6deg));
  transition: transform .18s ease-out;
  overflow: hidden;
  box-shadow: var(--key-shadow, 34px 42px 60px -30px rgba(10,15,13,.75));
}

.card-light {
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 55% at var(--lx, 26%) var(--ly, 16%), rgba(255,214,170,var(--kint, .5)) 0%, transparent 62%);
  mix-blend-mode: screen;
  transition: background .25s;
}

.card-rim {
  position: absolute;
  inset: 0;
  box-shadow: inset -1px 0 0 rgba(111,168,199,var(--rim, .5)), inset 0 1px 0 rgba(244,246,242,.12);
  border-radius: 4px;
}

.card-grain {
  position: absolute;
  inset: 0;
  opacity: .32;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='90' height='90' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.card-body {
  position: absolute;
  inset: 0;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  color: var(--chalk);
}

.card-no {
  font-size: clamp(4.5rem, 13vw, 7rem);
  line-height: .78;
  font-variation-settings: "wdth" 122, "wght" 800;
  color: rgba(244,246,242,.09);
  margin-top: auto;
  margin-left: -.04em;
}

.card-name { font-size: var(--step-1); font-variation-settings: "wdth" 110, "wght" 700; line-height: 1; margin-top: .15em; }
.card-meta { font-size: var(--step--1); color: var(--chalk-dim); margin: .3rem 0 1.05rem; }

.card-read {
  display: flex;
  align-items: flex-end;
  gap: .9rem;
  border-top: 1px solid var(--hair);
  padding-top: .7rem;
}

.card-read div:first-child { flex: 1; }
.card-big { font-size: clamp(2rem, 5.5vw, 2.7rem); line-height: .9; font-variation-settings: "wdth" 96, "wght" 720; font-variant-numeric: tabular-nums; color: var(--pylon); }
.card-sub { font-size: var(--step--1); color: var(--chalk-dim); display: block; margin-top: .2rem; }

.floorline {
  position: absolute;
  bottom: -30px;
  left: 6%;
  right: 6%;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10,15,13,var(--cast, .3)), transparent);
  filter: blur(7px);
}

.controls { padding-top: .2rem; }
.setup-row { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

.setup {
  padding: .55rem .85rem;
  border: 1px solid var(--hair-ink);
  background: transparent;
  border-radius: var(--r-chip);
  font: inherit;
  font-size: var(--step--1);
  font-variation-settings: "wdth" 98, "wght" 560;
  color: rgba(10,15,13,.62);
  cursor: pointer;
  transition: all .16s;
}

.setup:hover { border-color: rgba(10,15,13,.34); }
.setup[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); font-variation-settings: "wdth" 98, "wght" 680; }

.readout { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.1rem; margin-bottom: 1.3rem; }
.readout div { border-top: 2px solid var(--ink); padding-top: .5rem; }
.readout .num { display: block; font-size: var(--step-2); line-height: 1; font-variation-settings: "wdth" 92, "wght" 700; }
.readout small { font-size: var(--step--1); color: rgba(10,15,13,.6); display: block; margin-top: .25rem; }

.why { font-size: var(--step-0); line-height: 1.5; color: rgba(10,15,13,.78); min-height: 3.2em; }

/* ============ Rooms Grid ============ */
.rooms { padding-block: clamp(3.5rem, 9vh, 6.5rem); border-top: 1px solid var(--hair); }

.room-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  margin-top: 2.4rem;
}

.room {
  background: var(--sweep-far);
  padding: 1.6rem 1.4rem 1.5rem;
  position: relative;
  text-decoration: none;
  display: block;
  transition: background .25s;
  overflow: hidden;
}

.room::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .6;
  transition: opacity .3s;
  background: radial-gradient(90% 70% at var(--gx, 20%) var(--gy, 0%), rgba(255,160,90,.14), transparent 70%);
}

.room:hover { background: var(--sweep-mid); }
.room:hover::before { opacity: 1; }

.room h3 { margin-bottom: .45rem; position: relative; }
.room p { font-size: var(--step--1); color: var(--chalk-dim); margin: 0; position: relative; line-height: 1.45; }
.room .hit { position: relative; display: block; margin-top: 1.1rem; font-size: var(--step--1); color: var(--pylon); font-variation-settings: "wdth" 96, "wght" 620; }

.featured-mode {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid var(--hair);
  background:
    radial-gradient(70% 140% at 100% 0%, rgba(255,90,31,.13), transparent 70%),
    var(--sweep-mid);
  color: var(--chalk);
  text-decoration: none;
  transition: border-color .25s, background-color .25s;
}

.featured-mode:hover { border-color: rgba(255,90,31,.48); }
.featured-mode-extreme {
  background:
    radial-gradient(70% 140% at 100% 0%, rgba(244,63,94,.13), transparent 70%),
    var(--sweep-mid);
}
.featured-mode-extreme:hover { border-color: rgba(244,63,94,.48); }
.featured-mode > div { max-width: 68ch; }
.featured-mode-label {
  display: block;
  margin-bottom: .55rem;
  color: var(--pylon);
  font-size: var(--step--2);
  font-variation-settings: "wdth" 96, "wght" 680;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.featured-mode h3 { margin-bottom: .5rem; }
.featured-mode p { margin: 0; color: var(--chalk-dim); line-height: 1.5; }
.featured-mode .hit {
  flex: 0 0 auto;
  color: var(--pylon);
  font-size: var(--step--1);
  font-variation-settings: "wdth" 96, "wght" 620;
}

@media(max-width:900px) {
  .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media(max-width:620px) {
  .room-grid { grid-template-columns: 1fr; }
  .featured-mode { align-items: flex-start; flex-direction: column; gap: 1rem; }
}

/* ============ Answers/FAQ Section ============ */
.answers { padding-block: clamp(3.5rem, 9vh, 6.5rem); border-top: 1px solid var(--hair); }

.qa {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: clamp(1.6rem, 4vw, 3rem);
  margin-top: 2.4rem;
}

.qa article h3 { margin-bottom: .6rem; max-width: 26ch; }
.qa article p { color: var(--chalk-dim); font-size: var(--step-0); margin-bottom: .7rem; }
.qa article p:first-of-type { color: var(--chalk); }

/* ============ Agents Section ============ */
.agents {
  padding-block: clamp(3rem, 7vh, 5rem);
  border-top: 1px solid var(--hair);
  background: var(--sweep-mid);
}

.agent-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  margin-top: 1.8rem;
}

.agent-list dt { font-variation-settings: "wdth" 100, "wght" 640; font-size: var(--step--1); margin-bottom: .3rem; }
.agent-list dd { margin: 0; font-size: var(--step--1); color: var(--chalk-dim); line-height: 1.45; }
.agent-list code { font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 88, "wght" 560; color: var(--tungsten); font-size: .95em; }

/* ============ Footer ============ */
footer {
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--hair);
  font-size: var(--step--1);
  color: var(--chalk-faint);
  background: var(--sweep-far);
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  justify-content: space-between;
  align-items: center;
}

.foot-row nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.foot-row a { text-decoration: none; color: var(--chalk-dim); }
.foot-row a:hover { color: var(--chalk); }

/* ============ Browse Hub ============ */
.browse-hub {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) var(--rail) 6rem;
}

.browse-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: var(--r-panel);
  background:
    linear-gradient(105deg, rgba(10,15,13,.98) 20%, rgba(10,15,13,.35) 100%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(10% - 1px),
      rgba(244,246,242,.035) 10%
    ),
    radial-gradient(80% 160% at 80% 50%, var(--turf), var(--sweep-mid));
  box-shadow: var(--shadow-key);
}

.browse-hero::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: clamp(1rem, 8vw, 8rem);
  top: 50%;
  border: 1px solid rgba(255,90,31,.7);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow:
    0 0 0 24px rgba(255,90,31,.035),
    0 0 80px rgba(255,90,31,.12);
}

.browse-hero > * {
  position: relative;
  z-index: 1;
}

.browse-hero h1 {
  max-width: 11ch;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
}

.browse-hero p {
  max-width: 52ch;
  margin: 1rem 0 0;
  color: var(--chalk-dim);
  font-size: var(--step-1);
  line-height: 1.4;
}

.browse-kicker {
  margin-bottom: .75rem;
  color: var(--pylon);
  font-size: var(--step--1);
  font-variation-settings: "wdth" 105, "wght" 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.browse-section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  border-bottom: 1px solid var(--hair);
}

.browse-section:last-child { border-bottom: 0; }

.browse-your-leagues {
  margin-bottom: 1.5rem;
  padding-inline: clamp(1rem, 3vw, 2rem);
  border: 1px solid rgba(255,90,31,.24);
  border-radius: var(--r-panel);
  background:
    radial-gradient(70% 120% at 0 0, rgba(255,90,31,.09), transparent 62%),
    var(--sweep-mid);
}

.browse-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.7rem;
}

.browse-section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.browse-section-head p {
  margin: .65rem 0 0;
  color: var(--chalk-dim);
  font-size: var(--step--1);
}

.browse-refresh {
  flex: 0 0 auto;
  padding: .55rem .8rem;
  border: 1px solid var(--hair);
  border-radius: var(--r-chip);
  background: transparent;
  color: var(--chalk-dim);
  cursor: pointer;
  font-size: var(--step--1);
  font-variation-settings: "wdth" 98, "wght" 600;
}

.browse-refresh:hover {
  border-color: var(--chalk-faint);
  color: var(--chalk);
}

.browse-my-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.browse-my-card {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--hair);
  border-radius: var(--r-panel);
  background: rgba(10,15,13,.72);
}

.browse-my-card-head,
.browse-my-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.browse-my-card-head { align-items: flex-start; }

.browse-my-card h3 {
  margin-top: .5rem;
  font-size: var(--step-1);
}

.browse-week-chip,
.browse-record {
  display: inline-flex;
  padding: .3rem .45rem;
  border: 1px solid var(--hair);
  border-radius: var(--r-chip);
  color: var(--chalk-dim);
  font-size: .68rem;
  line-height: 1;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.browse-record {
  border-color: rgba(255,90,31,.35);
  color: var(--pylon);
  font-size: var(--step--1);
  letter-spacing: 0;
}

.browse-my-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: .8rem;
  align-items: center;
  margin: 1.25rem 0;
  padding: 1rem 0;
  border-block: 1px solid var(--hair);
}

.browse-my-scoreboard > div:not(.browse-score-divider) {
  display: grid;
  min-width: 0;
}

.browse-my-scoreboard > div:last-child { text-align: right; }

.browse-my-scoreboard span,
.browse-my-scoreboard small {
  overflow: hidden;
  color: var(--chalk-dim);
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browse-my-scoreboard strong {
  color: var(--chalk);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.1;
}

.browse-my-scoreboard > div:first-child strong { color: var(--pylon); }

.browse-score-divider {
  color: var(--chalk-faint);
  font-size: .7rem;
  text-transform: uppercase;
}

.browse-no-matchup {
  display: grid;
  gap: .25rem;
  margin: 1.25rem 0;
  padding: 1rem 0;
  border-block: 1px solid var(--hair);
}

.browse-no-matchup strong { color: var(--pylon); font-size: var(--step-1); }
.browse-no-matchup span { color: var(--chalk-faint); font-size: var(--step--1); }

.browse-my-card-foot {
  color: var(--chalk-dim);
  font-size: var(--step--1);
}

.browse-my-card-foot b { color: var(--chalk); }

.browse-my-card-foot button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--pylon);
  cursor: pointer;
  font: inherit;
  font-variation-settings: "wdth" 98, "wght" 650;
}

.browse-league-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--hair);
}

.browse-league-group {
  min-width: 0;
  padding: clamp(1rem, 3vw, 1.5rem);
  background: var(--sweep-far);
}

.browse-group-head,
.browse-group-head > div {
  display: flex;
  align-items: center;
}

.browse-group-head {
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.browse-group-head > div { gap: .6rem; }

.browse-group-head h3 {
  font-size: var(--step-0);
  letter-spacing: 0;
}

.browse-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pylon);
  box-shadow: 0 0 12px rgba(255,90,31,.7);
}

.browse-status-dot-muted {
  background: var(--daylight);
  box-shadow: none;
}

.browse-count {
  min-width: 1.8rem;
  padding: .15rem .4rem;
  border: 1px solid var(--hair);
  border-radius: 999px;
  color: var(--chalk-dim);
  font-size: var(--step--1);
  text-align: center;
}

.browse-league-stack { display: grid; gap: .75rem; }

.browse-league-card {
  position: relative;
  padding: 1.1rem;
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: var(--r-panel);
  background: var(--sweep-mid);
}

.browse-league-card.is-open {
  border-left: 3px solid var(--pylon);
  background:
    radial-gradient(90% 100% at 0 0, rgba(255,90,31,.07), transparent 70%),
    var(--sweep-mid);
}

.browse-league-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.browse-league-card-top > div { min-width: 0; }

.browse-league-label {
  color: var(--pylon);
  font-size: .68rem;
  font-variation-settings: "wdth" 102, "wght" 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.is-observe .browse-league-label { color: var(--daylight); }

.browse-league-card h4 {
  margin-top: .3rem;
  overflow: hidden;
  color: var(--chalk);
  font-size: var(--step-0);
  font-variation-settings: "wdth" 108, "wght" 660;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browse-league-card p {
  margin: .2rem 0 0;
  overflow: hidden;
  color: var(--chalk-faint);
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browse-team-count {
  flex: 0 0 auto;
  color: var(--chalk);
  font-size: var(--step-1);
  line-height: 1;
}

.browse-team-count small { color: var(--chalk-faint); font-size: .72rem; }

.browse-league-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  margin: 1rem 0;
  padding-top: .8rem;
  border-top: 1px solid var(--hair);
  color: var(--chalk-faint);
  font-size: .7rem;
}

.browse-league-meta b { color: var(--chalk-dim); font-weight: 600; }
.browse-league-card .btn-primary,
.browse-league-card .btn-secondary { width: 100%; padding-block: .6rem; }

.browse-observe-note {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem .75rem;
  border: 1px solid var(--hair);
  border-radius: var(--r-chip);
  color: var(--chalk-dim);
  font-size: .7rem;
}

.browse-observe-note span:last-child { color: var(--chalk-faint); }

.browse-matchup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--hair);
}

.browse-matchup-card {
  min-width: 0;
  padding: 1rem;
  background: var(--sweep-mid);
}

.browse-matchup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .9rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--hair);
}

.browse-matchup-head > div:first-child {
  display: grid;
  min-width: 0;
}

.browse-matchup-head span {
  overflow: hidden;
  color: var(--chalk-faint);
  font-size: .68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browse-matchup-head strong {
  color: var(--chalk-dim);
  font-size: .72rem;
  font-variation-settings: "wdth" 100, "wght" 620;
}

.browse-matchup-chips {
  display: flex;
  flex: 0 0 auto;
  gap: .3rem;
}

.browse-matchup-chips span {
  padding: .2rem .35rem;
  border: 1px solid var(--hair);
  border-radius: var(--r-chip);
  color: var(--chalk-dim);
  line-height: 1;
}

.browse-matchup-chips .is-live {
  border-color: rgba(255,90,31,.4);
  color: var(--pylon);
}

.browse-matchup-team {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem 0;
  color: var(--chalk-dim);
}

.browse-matchup-team span {
  overflow: hidden;
  font-size: var(--step--1);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browse-matchup-team strong {
  flex: 0 0 auto;
  color: var(--chalk-dim);
  font-size: var(--step-1);
}

.browse-matchup-team.is-leading span,
.browse-matchup-team.is-leading strong { color: var(--chalk); }

.browse-matchup-team.is-leading strong { color: var(--pylon); }

.browse-empty {
  grid-column: 1 / -1;
  padding: 2rem 1.25rem;
  border: 1px dashed var(--hair);
  color: var(--chalk-dim);
  text-align: center;
}

.browse-empty strong { display: block; color: var(--chalk); font-size: var(--step-0); }
.browse-empty p { margin: .4rem auto 1rem; color: var(--chalk-faint); font-size: var(--step--1); }

.browse-skeleton {
  display: grid;
  gap: .55rem;
  min-height: 145px;
  padding: 1rem;
  border: 1px solid var(--hair);
  border-radius: var(--r-panel);
  background: var(--sweep-mid);
}

.browse-skeleton span { display: block; height: 14px; }
.browse-skeleton span:first-child { width: 58%; height: 20px; }
.browse-skeleton span:last-child { width: 82%; align-self: end; }
.browse-skeleton-score,
.browse-skeleton-matchup { min-height: 180px; }

@media (max-width: 900px) {
  .browse-my-grid,
  .browse-league-groups { grid-template-columns: 1fr; }
  .browse-matchup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .browse-hub { padding-top: 1rem; }
  .browse-hero { min-height: 240px; padding: 1.4rem; }
  .browse-hero::after { right: -58px; opacity: .6; }
  .browse-hero p { font-size: var(--step-0); }
  .browse-section-head { align-items: flex-start; }
  .browse-refresh { margin-top: .1rem; }
  .browse-matchup-grid { grid-template-columns: 1fr; }
  .browse-my-card-head { gap: .6rem; }
  .browse-my-card-foot { align-items: flex-start; flex-direction: column; }
  .browse-observe-note { flex-direction: column; gap: .15rem; }
}

/* ============ Cards and Panels ============ */
.card-panel {
  background: var(--sweep-lit);
  border: 1px solid var(--hair);
  border-radius: var(--r-panel);
  transition: all 0.3s ease;
}

.card-panel:hover {
  border-color: rgba(255,90,31,.3);
  box-shadow: 0 0 20px rgba(255,90,31,.1);
}

.card-elevated {
  background: var(--sweep-mid);
  border: 1px solid var(--hair);
  border-radius: var(--r-panel);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ============ Form Inputs ============ */
.input-field {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--sweep-lit);
  border: 1px solid var(--hair);
  border-radius: var(--r-chip);
  color: var(--chalk);
  transition: all 0.2s ease;
  outline: none;
}

.input-field::placeholder { color: var(--chalk-faint); }
.input-field:focus { border-color: var(--pylon); box-shadow: 0 0 0 3px rgba(255,90,31,.1); }

/* ============ Phase 2 League Setup ============ */
.wizard-shell { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; padding: 3rem 0 5rem; }
.wizard-heading { margin-bottom: 1.5rem; }
.wizard-heading h1 { font-size: var(--step-3); margin: .35rem 0 .75rem; }
.wizard-heading > p:last-child, .wizard-title span, .policy-note { color: var(--chalk-dim); }
.wizard-kicker, .wizard-title > p { color: var(--pylon); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; }
.wizard-steps { display: grid; grid-template-columns: repeat(6, 1fr); list-style: none; padding: 0; margin: 0 0 1rem; border: 1px solid var(--hair); }
.wizard-steps li { display: flex; gap: .45rem; align-items: center; padding: .7rem .55rem; color: var(--chalk-dim); font-size: .72rem; border-right: 1px solid var(--hair); }
.wizard-steps li:last-child { border-right: 0; }
.wizard-steps li span { width: 1.35rem; height: 1.35rem; display: grid; place-items: center; border: 1px solid var(--hair); border-radius: 50%; }
.wizard-steps li.active { color: var(--chalk); background: rgba(255,90,31,.1); }
.wizard-steps li.active span { color: white; background: var(--pylon); border-color: var(--pylon); }
.wizard-steps li.done span { color: var(--pylon); border-color: var(--pylon); }
.wizard-card { background: var(--sweep-lit); border: 1px solid var(--hair); border-radius: var(--r-panel); box-shadow: var(--shadow-key); padding: clamp(1.25rem, 4vw, 2.5rem); }
.wizard-title { margin-bottom: 1.5rem; }
.wizard-title h2 { font-size: var(--step-2); margin: .25rem 0 .5rem; }
.wizard-card label { display: grid; gap: .45rem; color: var(--chalk-dim); font-size: .82rem; margin-bottom: 1rem; }
.wizard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; }
.slot-builder { display: grid; grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); gap: .5rem; }
.slot-builder label { background: rgba(244,246,242,.04); border: 1px solid var(--hair); padding: .65rem; margin: 0; text-align: center; }
.slot-builder input { width: 100%; margin-top: .25rem; background: var(--sweep-far); color: var(--chalk); border: 1px solid var(--hair); padding: .4rem; text-align: center; }
.slot-builder.reserves { margin-top: .6rem; grid-template-columns: repeat(3, minmax(90px, 1fr)); }
.wizard-card details { border-top: 1px solid var(--hair); margin-top: 1.25rem; padding-top: 1rem; }
.wizard-card summary { color: var(--chalk); cursor: pointer; font-weight: 650; margin-bottom: 1rem; }
.check-row { display: flex !important; grid-template-columns: auto 1fr; align-items: center; }
.check-row input { accent-color: var(--pylon); }
.roster-preview { margin-top: 1.25rem; padding: 1rem; background: var(--sweep-far); border-left: 3px solid var(--pylon); }
.roster-preview > div { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.roster-preview span { padding: .3rem .5rem; border: 1px solid var(--hair); color: var(--chalk); font-size: .72rem; }
.roster-preview span.reserve { color: var(--daylight); }
.wizard-actions { display: flex; justify-content: flex-end; gap: .65rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--hair); }
.wizard-review { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.wizard-review > div { display: grid; padding: 1rem; background: var(--sweep-far); border: 1px solid var(--hair); }
.wizard-review strong { color: var(--chalk); font-size: 1.05rem; text-transform: capitalize; }
.wizard-review span { color: var(--chalk-dim); font-size: .72rem; }
.claim-token-row { grid-column: 1 / -1; display: grid !important; grid-template-columns: 1fr 2fr; gap: .5rem; }
.claim-token-row code { overflow-wrap: anywhere; color: var(--pylon); }
.policy-note { padding: .8rem; margin-top: 1rem; border: 1px solid var(--hair); font-size: .78rem; }
@media (max-width: 760px) {
  .wizard-steps { grid-template-columns: repeat(3, 1fr); }
  .wizard-steps li:nth-child(3) { border-right: 0; }
  .wizard-grid, .wizard-review { grid-template-columns: 1fr; }
  .wizard-actions { flex-wrap: wrap; }
}

/* ============ Position Badges ============ */
.position-badge {
  padding: 0.25rem 0.625rem;
  border-radius: var(--r-chip);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.position-qb { background: rgba(244, 63, 94, 0.2); color: #FB7185; border: 1px solid rgba(244, 63, 94, 0.3); }
.position-rb { background: rgba(52, 211, 153, 0.2); color: #34D399; border: 1px solid rgba(52, 211, 153, 0.3); }
.position-wr { background: rgba(255,90,31, 0.2); color: var(--pylon); border: 1px solid rgba(255,90,31, 0.3); }
.position-te { background: rgba(251, 146, 60, 0.2); color: #FB923C; border: 1px solid rgba(251, 146, 60, 0.3); }
.position-k { background: rgba(167, 139, 250, 0.2); color: #A78BFA; border: 1px solid rgba(167, 139, 250, 0.3); }
.position-def { background: rgba(148, 163, 184, 0.2); color: var(--chalk-dim); border: 1px solid rgba(148, 163, 184, 0.3); }

/* ============ Toast Notifications ============ */
#toast-container {
  position: fixed;
  top: 80px;
  right: 16px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 1rem 1.25rem;
  border-radius: var(--r-panel);
  color: white;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  animation: toast-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 400px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-success { background: linear-gradient(135deg, rgba(52, 211, 153, 0.9) 0%, rgba(16, 185, 129, 0.9) 100%); }
.toast-error { background: linear-gradient(135deg, rgba(244, 63, 94, 0.9) 0%, rgba(225, 29, 72, 0.9) 100%); }
.toast-info { background: linear-gradient(135deg, rgba(255,90,31, 0.9) 0%, rgba(234,88,12, 0.9) 100%); color: #0A0F0D; }
.toast-warning { background: linear-gradient(135deg, rgba(251, 191, 36, 0.9) 0%, rgba(245, 158, 11, 0.9) 100%); color: #0A0F0D; }
.toast-draft { background: linear-gradient(135deg, rgba(255,90,31, 0.9) 0%, rgba(234,88,12, 0.9) 100%); color: #0A0F0D; }
.toast-trade { background: linear-gradient(135deg, rgba(251, 146, 60, 0.9) 0%, rgba(249, 115, 22, 0.9) 100%); }
.toast-week { background: linear-gradient(135deg, rgba(111,168,199, 0.9) 0%, rgba(96,165,250, 0.9) 100%); color: #0A0F0D; }

@keyframes toast-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ============ Loading States ============ */
#initial-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--sweep-far);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
  overflow: hidden;
}

#initial-loader::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,90,31, 0.1) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

#initial-loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-spinner {
  width: 56px;
  height: 56px;
  border: 3px solid var(--hair);
  border-top-color: var(--pylon);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 30px rgba(255,90,31, 0.2);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-text {
  color: var(--chalk);
  text-align: center;
  position: relative;
  z-index: 1;
}

.loader-title {
  font-size: 1.5rem;
  font-variation-settings: "wdth" 118, "wght" 700;
  margin-bottom: 1.5rem;
  letter-spacing: -.02em;
  color: var(--chalk);
}

.loader-title span { color: var(--pylon); }

.loader-emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: 1.5rem;
}

.loader-subtitle {
  font-size: var(--step--1);
  color: var(--chalk-dim);
  margin-top: 1.5rem;
}

.skeleton {
  background: linear-gradient(90deg, var(--sweep-lit) 25%, var(--sweep-mid) 50%, var(--sweep-lit) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-chip);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--hair);
  border-top-color: var(--pylon);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ============ Draft/Trade/Scoring Components ============ */
.on-the-clock {
  background: linear-gradient(135deg, var(--pylon) 0%, #EA580C 100%);
  animation: clock-pulse 2s infinite;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes clock-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255,90,31, 0.4); }
  50% { box-shadow: 0 0 40px rgba(255,90,31, 0.6); }
}

.draft-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.draft-timer.warning { color: var(--tungsten); }
.draft-timer.critical {
  color: var(--pylon);
  animation: countdown 1s ease-in-out infinite;
}

.auction-current {
  background: linear-gradient(145deg, rgba(255, 90, 31, 0.14), var(--sweep-far));
  border: 1px solid rgba(255, 90, 31, 0.35);
}

@keyframes countdown {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.pick-history-item {
  transition: all 0.3s ease;
  border-radius: var(--r-chip);
}

.pick-history-item:hover { background: rgba(244,246,242,.03); }
.pick-history-item.latest {
  background: linear-gradient(90deg, rgba(255,90,31,.1) 0%, transparent 100%);
  border-left: 3px solid var(--pylon);
}

/* Trade styles */
.trade-side { min-height: 200px; }
.trade-player { transition: all 0.2s ease; }
.trade-player:hover { transform: translateX(4px); }
.trade-player.selected {
  background: rgba(255,90,31,.1);
  border-color: var(--pylon);
}

/* Scoring cards */
.score-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--sweep-lit);
  border: 1px solid var(--hair);
}

.score-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,90,31,.3);
  box-shadow: 0 0 20px rgba(255,90,31,.1);
}

.matchup-card {
  background: var(--sweep-lit);
  border: 1px solid var(--hair);
  border-radius: var(--r-panel);
}

.matchup-vs {
  background: var(--sweep-mid);
  color: var(--chalk-dim);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  border: 1px solid var(--hair);
}

/* League Tabs */
.league-tab {
  position: relative;
  padding: 0.875rem 1.25rem;
  font-weight: 500;
  color: var(--chalk-faint);
  transition: all 0.2s ease;
  cursor: pointer;
  background: none;
  border: none;
}

.league-tab:hover { color: var(--chalk); }
.league-tab.active { color: var(--pylon); }

.league-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--pylon);
  box-shadow: 0 0 10px var(--pylon);
}

/* Tier 2 player updates and league messages */
.wave-news-card {
  border-left: 3px solid var(--pylon);
}

.wave-news-card.is-injury {
  border-left-color: var(--tungsten);
}

.league-message-list {
  min-height: 320px;
  max-height: 560px;
}

.league-message-bubble {
  max-width: 85%;
  background: var(--sweep-far);
  border: 1px solid var(--hair);
}

.league-message-bubble.is-mine {
  background: rgba(255, 90, 31, 0.1);
  border-color: rgba(255, 90, 31, 0.3);
}

/* Prize Pool Card */
.prize-pool-card {
  background: linear-gradient(135deg, var(--tungsten) 0%, #F59E0B 100%);
  position: relative;
  overflow: hidden;
  border-radius: var(--r-panel);
}

.prize-pool-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: shine 4s infinite;
}

@keyframes shine {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Roster Slot Indicators */
.roster-slot-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
}

.roster-slot-filled { background: rgba(52, 211, 153, 0.15); color: #34D399; border: 1px solid rgba(52, 211, 153, 0.3); }
.roster-slot-empty { background: rgba(255,90,31, 0.15); color: var(--pylon); border: 1px solid rgba(255,90,31, 0.3); }
.roster-slot-full { background: rgba(244, 63, 94, 0.15); color: #F43F5E; border: 1px solid rgba(244, 63, 94, 0.3); }

/* Empty States */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

/* Mobile Bottom Nav */
@media (max-width: 768px) {
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10,15,13,.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--hair);
    z-index: 50;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }

  .mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    font-size: 10px;
    color: var(--chalk-faint);
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .mobile-nav-item.active { color: var(--pylon); }
  .mobile-nav-item:hover { color: var(--chalk); }

  .mobile-nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
  }

  main { padding-bottom: 80px !important; }
}

/* ============ Gradient Text ============ */
.gradient-text {
  background: linear-gradient(135deg, var(--chalk) 0%, var(--pylon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============ Reduced Motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .card { transition: none; }
}

/* ============ Tailwind-like Utilities ============ */

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }

/* Z-Index */
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Flexbox */
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-end { justify-content: flex-end; }
.justify-start { justify-content: flex-start; }

/* Gap */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.col-span-full { grid-column: 1 / -1; }

/* Spacing */
.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Margin */
.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.-mx-6 { margin-left: -1.5rem; margin-right: -1.5rem; }
.mt-auto { margin-top: auto; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-4 { margin-left: 1rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }

/* Padding */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 0.75rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-20 { padding-bottom: 5rem; }
.pl-8 { padding-left: 2rem; }

/* Width */
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.w-32 { width: 8rem; }
.w-48 { width: 12rem; }
.w-64 { width: 16rem; }
.w-1\/2 { width: 50%; }
.w-1\/3 { width: 33.333333%; }
.w-2\/3 { width: 66.666667%; }
.w-3\/4 { width: 75%; }
.w-full { width: 100%; }

/* Height */
.h-1 { height: 0.25rem; }
.h-2 { height: 0.5rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.h-32 { height: 8rem; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }
.h-screen { height: 100vh; }

/* Min/Max */
.min-h-screen { min-height: 100vh; }
.min-h-\[calc\(100vh-4rem\)\] { min-height: calc(100vh - 4rem); }
.min-h-\[calc\(100vh-12rem\)\] { min-height: calc(100vh - 12rem); }
.min-h-\[150px\] { min-height: 150px; }
.min-w-0 { min-width: 0; }
.min-w-\[600px\] { min-width: 600px; }
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-h-80 { max-height: 20rem; }
.max-h-\[200px\] { max-height: 200px; }
.max-h-\[300px\] { max-height: 300px; }
.max-h-\[400px\] { max-height: 400px; }
.max-h-\[90vh\] { max-height: 90vh; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.overflow-visible { overflow: visible; }

/* Text */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1.1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }
.whitespace-nowrap { white-space: nowrap; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.leading-loose { line-height: 2; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Text Colors */
.text-white { color: #ffffff; }
.text-white\/80 { color: rgba(255,255,255,0.8); }
.text-white\/90 { color: rgba(255,255,255,0.9); }
.text-primary { color: var(--chalk); }
.text-secondary { color: var(--chalk-dim); }
.text-muted { color: var(--chalk-faint); }
.text-cyan { color: var(--pylon); }
.text-violet { color: #A78BFA; }
.text-green { color: #34D399; }
.text-gold { color: var(--tungsten); }
.text-danger { color: #F43F5E; }
.text-orange { color: var(--pylon); }

/* Legacy text colors */
.text-gray-400 { color: var(--chalk-faint); }
.text-gray-500 { color: var(--chalk-faint); }
.text-gray-600 { color: var(--chalk-dim); }
.text-gray-700 { color: var(--chalk-dim); }
.text-gray-800 { color: var(--chalk); }
.text-gray-900 { color: var(--chalk); }
.text-primary-100 { color: var(--pylon); }
.text-primary-200 { color: var(--pylon); }
.text-primary-400 { color: var(--pylon); }
.text-primary-600 { color: var(--pylon); }
.text-primary-700 { color: var(--pylon); }
.text-red-300 { color: #FCA5A5; }
.text-red-500 { color: #F43F5E; }
.text-red-600 { color: #F43F5E; }
.text-red-800 { color: #991B1B; }
.text-green-600 { color: #34D399; }
.text-green-800 { color: #166534; }
.text-amber-600 { color: var(--tungsten); }
.text-amber-700 { color: #B45309; }
.text-yellow-700 { color: var(--tungsten); }
.text-yellow-800 { color: #854D0E; }

/* Background Colors */
.bg-primary { background-color: var(--sweep-far); }
.bg-secondary { background-color: var(--sweep-mid); }
.bg-surface { background-color: var(--sweep-lit); }
.bg-elevated { background-color: var(--sweep-lit); }
.bg-hover { background-color: rgba(244,246,242,.05); }
.bg-cyan\/10 { background-color: rgba(255,90,31,.1); }
.bg-cyan\/20 { background-color: rgba(255,90,31,.2); }
.bg-violet\/10 { background-color: rgba(167, 139, 250, 0.1); }
.bg-violet\/20 { background-color: rgba(167, 139, 250, 0.2); }
.bg-green\/10 { background-color: rgba(52, 211, 153, 0.1); }
.bg-green\/20 { background-color: rgba(52, 211, 153, 0.2); }
.bg-gold\/10 { background-color: rgba(255,160,90, 0.1); }
.bg-gold\/20 { background-color: rgba(255,160,90, 0.2); }
.bg-danger\/10 { background-color: rgba(244, 63, 94, 0.1); }
.bg-danger\/20 { background-color: rgba(244, 63, 94, 0.2); }

/* Legacy background colors */
.bg-white { background-color: var(--sweep-lit); }
.bg-white\/20 { background-color: rgba(244,246,242,.05); }
.bg-black\/50 { background-color: rgba(0,0,0,0.5); }
.bg-gray-50 { background-color: var(--sweep-far); }
.bg-gray-100 { background-color: var(--sweep-lit); }
.bg-gray-200 { background-color: var(--sweep-lit); }
.bg-gray-300 { background-color: var(--sweep-mid); }
.bg-gray-900 { background-color: var(--sweep-far); }
.bg-primary-50 { background-color: rgba(255,90,31,.1); }
.bg-primary-100 { background-color: rgba(255,90,31,.15); }
.bg-primary-500 { background-color: var(--pylon); }
.bg-primary-800 { background-color: var(--sweep-mid); }
.bg-accent-100 { background-color: rgba(167, 139, 250, 0.15); }
.bg-red-50 { background-color: rgba(244, 63, 94, 0.1); }
.bg-red-100 { background-color: rgba(244, 63, 94, 0.15); }
.bg-green-50 { background-color: rgba(52, 211, 153, 0.1); }
.bg-green-100 { background-color: rgba(52, 211, 153, 0.15); }
.bg-green-500 { background-color: #34D399; }
.bg-orange-100 { background-color: rgba(255,90,31,.15); }
.bg-purple-100 { background-color: rgba(167, 139, 250, 0.15); }
.bg-yellow-50 { background-color: rgba(255,160,90,.1); }
.bg-yellow-100 { background-color: rgba(255,160,90,.15); }
.bg-amber-50 { background-color: rgba(255,160,90,.1); }

/* Border */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-l { border-left-width: 1px; }
.border-r { border-right-width: 1px; }
.border-transparent { border-color: transparent; }
.border-white { border-color: white; }
.border-white\/10 { border-color: rgba(244,246,242,.1); }
.border-white\/20 { border-color: rgba(244,246,242,.2); }
.border-subtle { border-color: var(--hair); }
.border-cyan { border-color: var(--pylon); }
.border-violet { border-color: #A78BFA; }
.border-green { border-color: #34D399; }
.border-gold { border-color: var(--tungsten); }
.border-danger { border-color: #F43F5E; }

/* Legacy border colors */
.border-gray-100 { border-color: var(--hair); }
.border-gray-200 { border-color: var(--hair); }
.border-primary-100 { border-color: rgba(255,90,31,.3); }
.border-amber-200 { border-color: rgba(255,160,90,.3); }
.border-yellow-200 { border-color: rgba(255,160,90,.3); }
.border-red-200 { border-color: rgba(244, 63, 94, 0.3); }

.divide-y > * + * { border-top-width: 1px; }
.divide-gray-100 > * + * { border-color: var(--hair); }
.divide-subtle > * + * { border-color: var(--hair); }

/* Border Radius */
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* Shadow */
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.2); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }
.shadow-glow-cyan { box-shadow: 0 0 20px rgba(255,90,31,.15); }
.shadow-glow-violet { box-shadow: 0 0 20px rgba(167, 139, 250, 0.15); }
.shadow-glow-green { box-shadow: 0 0 20px rgba(52, 211, 153, 0.15); }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Transitions */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: background-color, border-color, color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-shadow { transition-property: box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-150 { transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* Transform */
.transform { transform: translateX(var(--tw-translate-x, 0)) translateY(var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }
.translate-y-0 { transform: translateY(0); }
.translate-y-1 { transform: translateY(0.25rem); }
.-translate-y-1 { transform: translateY(-0.25rem); }
.translate-y-2 { transform: translateY(0.5rem); }
.-translate-y-2 { transform: translateY(-0.5rem); }
.scale-100 { transform: scale(1); }
.scale-105 { transform: scale(1.05); }
.scale-110 { transform: scale(1.1); }
.rotate-0 { transform: rotate(0deg); }
.rotate-180 { transform: rotate(180deg); }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.cursor-default { cursor: default; }

/* Ring */
.ring-1 { box-shadow: 0 0 0 1px var(--tw-ring-color, currentColor); }
.ring-2 { box-shadow: 0 0 0 2px var(--tw-ring-color, currentColor); }
.ring-4 { box-shadow: 0 0 0 4px var(--tw-ring-color, currentColor); }
.ring-cyan { --tw-ring-color: var(--pylon); }
.ring-violet { --tw-ring-color: #A78BFA; }
.ring-primary-500 { --tw-ring-color: var(--pylon); }

/* Pointer Events */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* User Select */
.select-none { user-select: none; }
.select-text { user-select: text; }
.select-all { user-select: all; }

/* Appearance */
.appearance-none { appearance: none; }

/* Hover States */
.hover\:bg-surface:hover { background-color: var(--sweep-lit); }
.hover\:bg-elevated:hover { background-color: var(--sweep-lit); }
.hover\:bg-hover:hover { background-color: rgba(244,246,242,.05); }
.hover\:bg-gray-50:hover { background-color: var(--sweep-lit); }
.hover\:bg-gray-100:hover { background-color: var(--sweep-lit); }
.hover\:bg-gray-200:hover { background-color: var(--sweep-mid); }
.hover\:bg-white\/5:hover { background-color: rgba(244,246,242,.05); }
.hover\:bg-white\/10:hover { background-color: rgba(244,246,242,.1); }
.hover\:bg-primary-50:hover { background-color: rgba(255,90,31,.1); }
.hover\:bg-red-50:hover { background-color: rgba(244, 63, 94, 0.1); }
.hover\:bg-cyan\/20:hover { background-color: rgba(255,90,31,.2); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.2); }
.hover\:shadow-glow-cyan:hover { box-shadow: 0 0 20px rgba(255,90,31,.15); }
.hover\:text-primary:hover { color: var(--chalk); }
.hover\:text-cyan:hover { color: var(--pylon); }
.hover\:text-gray-600:hover { color: var(--chalk-dim); }
.hover\:text-primary-700:hover { color: var(--pylon); }
.hover\:text-red-700:hover { color: #F43F5E; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:border-cyan:hover { border-color: var(--pylon); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover\:-translate-y-2:hover { transform: translateY(-0.5rem); }

/* Focus States */
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--tw-ring-color, var(--pylon)); }
.focus\:ring-cyan:focus { --tw-ring-color: var(--pylon); }
.focus\:border-cyan:focus { border-color: var(--pylon); }

/* Active States */
.active\:scale-95:active { transform: scale(0.95); }

/* Group Hover */
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:translate-y-0 { transform: translateY(0); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }

/* Responsive - SM (640px) */
@media (min-width: 640px) {
  .sm\:inline { display: inline; }
  .sm\:block { display: block; }
  .sm\:flex { display: flex; }
  .sm\:hidden { display: none; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:justify-between { justify-content: space-between; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:gap-6 { gap: 1.5rem; }
  .sm\:gap-8 { gap: 2rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .sm\:mt-0 { margin-top: 0; }
  .sm\:w-32 { width: 8rem; }
  .sm\:w-40 { width: 10rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1.1; }
  .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
}

/* Responsive - MD (768px) */
@media (min-width: 768px) {
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:flex { display: flex; }
  .md\:grid { display: grid; }
  .md\:flex-row { flex-direction: row; }
  .md\:items-center { align-items: center; }
  .md\:justify-between { justify-content: space-between; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:gap-8 { gap: 2rem; }
  .md\:gap-12 { gap: 3rem; }
  .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1.1; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .md\:mb-0 { margin-bottom: 0; }
  .md\:mt-0 { margin-top: 0; }
  .md\:space-x-4 > * + * { margin-left: 1rem; }
}

/* Responsive - LG (1024px) */
@media (min-width: 1024px) {
  .lg\:hidden { display: none; }
  .lg\:block { display: block; }
  .lg\:flex { display: flex; }
  .lg\:grid { display: grid; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:items-center { align-items: center; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:gap-12 { gap: 3rem; }
  .lg\:gap-16 { gap: 4rem; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
  .lg\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .lg\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
  .lg\:text-5xl { font-size: 3rem; line-height: 1.1; }
  .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .lg\:text-7xl { font-size: 4.5rem; line-height: 1; }
  .lg\:max-h-\[500px\] { max-height: 500px; }
}

/* Responsive - XL (1280px) */
@media (min-width: 1280px) {
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .xl\:gap-16 { gap: 4rem; }
}

/* ============ Scrollbar Styling ============ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--sweep-far);
}

::-webkit-scrollbar-thumb {
  background: var(--sweep-lit);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--sweep-mid);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--sweep-lit) var(--sweep-far);
}
