/* Colors from your mockups, defined once and reused everywhere */
:root {
  --bg: #10151C;
  --card: #1A212B;
  --text: #E8ECF1;
  --muted: #9AA6B4;
  --accent: #F2A93B;
  --line: #1F2732;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.eyebrow {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}

h1 {
  margin: 6px 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 34px;
}

.subtitle {
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--muted);
}

.section-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.board {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.rank {
  width: 28px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--muted);
}

.info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.name { font-size: 15px; font-weight: 600; }
.meta { font-size: 12px; color: var(--muted); }

.start {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  color: #1B1206;
  font: 700 17px Inter, sans-serif;
  cursor: pointer;
}

.start:active { transform: scale(0.98); }

.filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 0 -20px 12px;
  padding: 0 20px 4px;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }

.filter {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #3A4656;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: 600 13px Inter, sans-serif;
  cursor: pointer;
}

.filter.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* ---------- Pick your team screen ---------- */

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.section-note {
  font-size: 12px;
  color: var(--muted);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

.team {
  min-height: 64px;
  padding: 10px 12px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: var(--card);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  font-family: Inter, sans-serif;
  cursor: pointer;
}

.team.selected {
  border-color: var(--accent);
  background: rgba(242, 169, 59, 0.14);
}

.team-name { font-size: 14px; font-weight: 600; }
.team-picks { font-size: 12px; font-weight: 600; color: var(--muted); }
.team.selected .team-picks { color: var(--accent); }

.rounds {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 24px;
}

.round {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font: 600 16px "Space Grotesk", sans-serif;
  cursor: pointer;
}

.round.selected {
  background: var(--text);
  color: var(--bg);
}

.start:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Keeps the button visible while you scroll the team list */
#setup-screen .start {
  position: sticky;
  bottom: 16px;
}
/* ---------- Draft screen ---------- */

.status {
  margin: 4px 0 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--card);
  font-weight: 600;
}

.status.on-clock {
  background: var(--accent);
  color: #1B1206;
}

.feed {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.feed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.feed-item.mine .name { color: var(--accent); }

.feed-pick {
  width: 32px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
/* ---------- Your pick ---------- */

.clock-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.clock-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.clock-via { font-size: 12px; font-weight: 600; }

.clock-team {
  margin: 6px 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(27, 18, 6, 0.14);
  font-size: 12px;
  font-weight: 700;
}

.chip.top { background: #1B1206; color: var(--accent); }

.hints {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: -8px 0 20px;
}

.hint {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border-radius: 12px;
  background: var(--card);
  min-width: 0;
}

.hint-pos { font-size: 11px; font-weight: 700; color: var(--accent); }
.hint-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hint-meta { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.player .info { flex: 1; min-width: 0; }

.need-tag {
  padding: 2px 5px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
}

.draft-button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: #2A3442;
  color: var(--text);
  font: 600 14px Inter, sans-serif;
  cursor: pointer;
}

.draft-button:active { background: var(--accent); color: #1B1206; }

.my-class { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.my-class .meta { color: var(--muted); font-size: 12px; }
/* ---------- Pick ticker ---------- */

.ticker {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -20px 24px;
  padding: 0 20px 4px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.ticker::-webkit-scrollbar { display: none; }

.tick {
  flex: 0 0 auto;
  width: 132px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--card);
}

.tick.mine { border-color: var(--accent); }
.tick.empty { width: auto; color: var(--muted); font-size: 13px; }

.tick-top { font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tick-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tick-bottom { font-size: 11px; font-weight: 600; color: var(--muted); }

/* Value label colors */
.label.steal { color: #6CD39A; }
.label.value { color: #5FB3F9; }
.label.fair  { color: #B4BFCC; }
.label.reach { color: #F2876B; }
/* ---------- Grades screen ---------- */

.grade-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 10px 0 24px;
  padding: 18px;
  border-radius: 20px;
  background: var(--card);
}

.grade-letter {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #1B1206;
  font: 700 60px "Space Grotesk", sans-serif;
}

.grade-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; line-height: 1.5; }
.grade-team { font: 700 22px "Space Grotesk", sans-serif; }

.label-pill {
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}
.label-pill.steal { background: rgba(108, 211, 154, 0.16); color: #6CD39A; }
.label-pill.value { background: rgba(95, 179, 249, 0.16); color: #5FB3F9; }
.label-pill.fair  { background: #222A35; color: #B4BFCC; }
.label-pill.reach { background: rgba(242, 135, 107, 0.16); color: #F2876B; }

.grades {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 6px;
}

.grade-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #161C24;
}
.grade-row.mine { border-color: var(--accent); }

.grade-small { width: 24px; font: 700 18px "Space Grotesk", sans-serif; }
.grade-row-name { flex: 1; font-size: 14px; }
.grade-row-avg { font: 600 13px "Space Grotesk", sans-serif; color: var(--muted); }

.grade-small.grade-a { color: #6CD39A; }
.grade-small.grade-b { color: #5FB3F9; }
.grade-small.grade-c { color: #B4BFCC; }
.grade-small.grade-d { color: var(--accent); }
.grade-small.grade-f { color: #F2876B; }

.results-buttons {
  display: flex;
  gap: 10px;
  position: sticky;
  bottom: 16px;
}

.results-buttons .start { flex: 1; }

.secondary {
  flex: 1;
  min-height: 54px;
  border: 1px solid #3A4656;
  border-radius: 16px;
  background: var(--bg);
  color: var(--text);
  font: 600 15px Inter, sans-serif;
  cursor: pointer;
}
/* ---------- Trading ---------- */

/* Anything marked hidden stays hidden, even if a rule below says display: flex */
[hidden] { display: none !important; }

.action-bar {
  position: sticky;
  bottom: 16px;
  display: flex;
  margin-top: 16px;
}

.status.traded { background: #1E3A2B; color: #6CD39A; }

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(7, 9, 12, 0.7);
}

.sheet {
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 10px 16px 28px;
  border-radius: 26px 26px 0 0;
  background: #161C24;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sheet-handle {
  align-self: center;
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: #3A4656;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sheet-title { margin: 0; font: 700 22px "Space Grotesk", sans-serif; }

.close-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #222A35;
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
}

.sheet-worth {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.sheet-worth b { color: var(--text); font-family: "Space Grotesk", sans-serif; }

.offer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10px;
  padding: 14px;
  border-radius: 16px;
  background: #1E2630;
}

.offer-top, .offer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.offer-team { font-size: 16px; font-weight: 600; }
.offer-diff { font: 600 14px "Space Grotesk", sans-serif; color: #6CD39A; }

.offer-picks { display: flex; flex-wrap: wrap; gap: 6px; }

.offer-pick {
  padding: 6px 10px;
  border-radius: 9px;
  background: #2A3442;
  font: 600 14px "Space Grotesk", sans-serif;
}

.accept-button {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #1B1206;
  font: 700 14px Inter, sans-serif;
  cursor: pointer;
}
/* ---------- Trade tabs ---------- */

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #0F141A;
}

.tab {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: 600 14px Inter, sans-serif;
  cursor: pointer;
}

.tab.active {
  background: var(--text);
  color: var(--bg);
}

.offer.unaffordable { opacity: 0.5; }
/* ---------- Pause button ---------- */

.action-bar { gap: 10px; }

.secondary.paused {
  background: var(--accent);
  border-color: var(--accent);
  color: #1B1206;
}

.secondary:disabled { opacity: 0.4; cursor: default; }

/* ---------- Big-head GMs ---------- */

.gm { display: block; max-width: none; }

/* a GM on a tile in their team color */
.avatar {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
}

/* Team picker: GM on the left of each card */
.team { flex-direction: row; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; }
.team .avatar { width: 46px; height: 52px; }
.team-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

/* Draft screen header with your GM in the corner */
.draft-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.draft-heading { min-width: 0; }
.draft-heading h1 { margin-bottom: 0; }
.my-gm {
  flex: 0 0 auto;
  width: 64px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.my-gm:empty { display: none; }

/* Status line with a GM next to it */
.status-row { display: flex; align-items: center; gap: 12px; }
.status .avatar { width: 40px; height: 46px; }
.status-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.status-quote { font-size: 13px; font-weight: 500; color: var(--muted); }
.status.traded .status-quote { color: #A8E6C3; }
.status.reaction { border: 1px solid #2A3442; }

/* On the clock: your GM in the banner with a speech bubble */
.status.on-clock { overflow: hidden; }
.clock-body { display: flex; align-items: flex-end; gap: 4px; }
.clock-main { flex: 1; min-width: 0; }
.clock-gm { flex: 0 0 auto; margin: 0 -10px -14px 0; }
.clock-quote {
  position: relative;
  display: inline-block;
  margin: 12px 0 0;
  padding: 7px 10px;
  border-radius: 12px;
  background: #FFFFFF;
  color: #1B1206;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.clock-quote::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: 9px;
  border: 7px solid transparent;
  border-left-color: #FFFFFF;
  border-right: 0;
}

/* Pick ticker: the drafting team's GM reacts to each pick */
.tick { flex-direction: row; align-items: center; gap: 8px; width: 170px; padding: 6px 10px 6px 6px; }
.tick .avatar { width: 32px; height: 38px; border-radius: 8px; }
.tick-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* Trade offers: the other team's GM, on the phone */
.offer-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.offer .avatar { width: 40px; height: 46px; }

/* Grades: your GM reacts to your grade */
.grade-card { align-items: flex-end; gap: 12px; padding: 14px 16px 0; overflow: hidden; }
.grade-gm { flex: 0 0 auto; line-height: 0; }
.grade-side {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 16px;
}
.grade-top { display: flex; align-items: center; gap: 12px; }
.grade-top .grade-letter { width: 56px; height: 56px; border-radius: 14px; font-size: 36px; }
.grade-top .grade-team { font-size: 18px; line-height: 1.15; }
.grade-letter.grade-a { background: #6CD39A; color: #0E2418; }
.grade-letter.grade-b { background: #5FB3F9; color: #0B2238; }
.grade-letter.grade-c { background: #B4BFCC; color: #1A212B; }
.grade-letter.grade-d { background: var(--accent); color: #1B1206; }
.grade-letter.grade-f { background: #F2876B; color: #2E0F08; }
.gm-quote {
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: #FFFFFF;
  color: #1B1206;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.grade-row { padding: 4px 12px 4px 6px; }
.grade-row .avatar { width: 30px; height: 36px; border-radius: 8px; }

.clock-main .clock-via { display: block; margin: -4px 0 10px; }

/* Bottom button bars cover the list scrolling behind them */
.action-bar,
.results-buttons {
  bottom: 0;
  padding: 12px 0 16px;
  background: var(--bg);
  box-shadow: 0 -10px 14px var(--bg);
}

/* A grayed-out button stays solid, so the list doesn't show through */
.secondary:disabled { opacity: 1; color: #5B6573; border-color: #2A3442; }

/* ---------- Home page ---------- */

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* the logo: mascot head on an orange tile + the name */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.brand-tile {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.brand-tile img { flex: 0 0 auto; width: 42px; height: 48px; margin-bottom: -8px; }
.brand-word {
  font: italic 900 20px/1 Inter, sans-serif;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-word span { color: var(--accent); }

.brand-tile.small { width: 32px; height: 32px; border-radius: 8px; }
.brand-tile.small img { width: 33px; height: 38px; margin-bottom: -6px; }
.brand-word.small { font-size: 16px; }

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(16, 21, 28, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.header-cta {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #1B1206;
  font: 700 14px Inter, sans-serif;
  cursor: pointer;
}

/* hero: big headline, buttons, and the mascot celebrating */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(55% 40% at 50% 88%, rgba(242, 169, 59, 0.24), transparent 70%),
    radial-gradient(45% 30% at 0% 0%, rgba(255, 255, 255, 0.08), transparent 70%),
    radial-gradient(45% 30% at 100% 0%, rgba(255, 255, 255, 0.06), transparent 70%),
    linear-gradient(180deg, #131B26 0%, var(--bg) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "rest" "art";
  padding-top: 30px;
}
.hero-head { grid-area: head; }
.hero-rest { grid-area: rest; }
.hero-art {
  grid-area: art;
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.hero-art img {
  display: block;
  width: min(100%, 360px);
  height: auto;
}

.hero-title {
  margin: 10px 0 16px;
  font: italic 900 clamp(42px, 12.4vw, 84px)/0.94 Inter, sans-serif;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero-title span { color: var(--accent); }

.hero-sub {
  max-width: 34em;
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.5;
  color: #B9C3CF;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-start,
.hero-how {
  min-height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  font: 700 16px Inter, sans-serif;
  cursor: pointer;
}
.hero-start { flex: 1 1 auto; border: 0; background: var(--accent); color: #1B1206; }
.hero-how { flex: 0 0 auto; border: 1px solid #3A4656; background: transparent; color: var(--text); font-weight: 600; }
.hero-start:active, .hero-how:active, .header-cta:active { transform: scale(0.98); }

/* "Back to your draft": floats at the bottom so you see it wherever you are on the page */
.resume {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 30;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 32px);
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font: 700 15px Inter, sans-serif;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
.resume::before { content: "↩"; font-size: 17px; }
.resume:active { transform: translateX(-50%) scale(0.98); }

.hero-stats {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* how it works */
.how { padding: 40px 0 16px; scroll-margin-top: 64px; }
.home-h2 {
  margin: 0 0 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  font-weight: 700;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.step {
  display: flex;
  align-items: stretch;
  gap: 12px;
  min-height: 116px;
  padding: 16px 0 0 16px;
  border-radius: 18px;
  background: var(--card);
  overflow: hidden;
}
.step-num {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #1B1206;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 16px "Space Grotesk", sans-serif;
}
.step-text { flex: 1; min-width: 0; padding-bottom: 16px; }
.step h3 { margin: 4px 0 6px; font-size: 17px; }
.step p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.step-gm {
  flex: 0 0 auto;
  align-self: flex-end;
  width: 84px;
  height: 100px;
  border-radius: 14px 0 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.step-gm:empty { display: none; }

/* choose your team */
.choose { padding: 28px 0 40px; }
.home-h2-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.home-h2-row .home-h2 { white-space: nowrap; }
@media (max-width: 419px) {
  .home-h2-row .section-note { display: none; }
}
.home-teams {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.home-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 0 4px 9px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: var(--card);
  color: var(--text);
  font-family: Inter, sans-serif;
  cursor: pointer;
  overflow: hidden;
}
.home-team .avatar {
  width: calc(100% + 8px);
  height: 72px;
  margin: 0 -4px 6px;
  border-radius: 0;
}
.home-team .avatar img { width: 60px; height: 72px; }
.home-team-name {
  max-width: 100%;
  font-size: 11.5px;
  letter-spacing: -0.01em;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-team-name.long { font-size: 10.5px; }
.home-team-picks { font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.home-team:hover, .home-team:focus-visible { border-color: var(--accent); }
.home-team:hover .home-team-picks { color: var(--accent); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 44px; }
.footer-row { display: flex; align-items: center; gap: 18px; }
.footer-logo { flex: 0 0 auto; width: 96px; height: auto; }
.footer-text p { margin: 0 0 6px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.footer-text b { color: var(--text); }

/* back to the home page from the setup screen */
.app-bar { display: flex; align-items: center; margin: -10px 0 18px; }
.app-home {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
}

/* small phones: shorter header button, both hero buttons on one row */
@media (max-width: 380px) {
  .cta-long { display: none; }
  .header-cta { padding: 0 14px; }
  .brand { gap: 8px; }
  .brand-tile { width: 36px; height: 36px; }
  .brand-tile img { width: 38px; height: 43px; margin-bottom: -7px; }
  .brand-word { font-size: 18px; }
  .hero-start, .hero-how { font-size: 15px; padding: 0 14px; }
}
/* small phones: three teams per row so every name fits */
@media (max-width: 389px) {
  .home-teams { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 600px) {
  .home-teams { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .home-team-name { font-size: 12px; letter-spacing: 0; }
  .home-team-name.long { font-size: 11px; }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 440px;
    grid-template-areas: "head art" "rest art";
    column-gap: 32px;
    padding-top: 56px;
  }
  .hero-head { align-self: end; }
  .hero-rest { align-self: start; padding-bottom: 64px; }
  .hero-art { align-self: end; margin-top: 0; }
  .hero-art img { width: 440px; }
  .hero-sub { font-size: 18px; }
  .hero-start { flex: 0 0 auto; }
  .hero {
    background:
      radial-gradient(34% 55% at 78% 60%, rgba(242, 169, 59, 0.24), transparent 70%),
      radial-gradient(35% 40% at 0% 0%, rgba(255, 255, 255, 0.08), transparent 70%),
      radial-gradient(35% 40% at 100% 0%, rgba(255, 255, 255, 0.06), transparent 70%),
      linear-gradient(180deg, #131B26 0%, var(--bg) 100%);
  }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .home-teams { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
  .home-team .avatar { height: 84px; }
  .home-team .avatar img { width: 70px; height: 84px; }
  .home-team-name.long { font-size: 12px; }
  .how { padding-top: 56px; }
}
