:root {
  --bg: #f8f3df;
  --paper: #fffaf0;
  --ink: #24301f;
  --muted: #68715d;
  --green: #1f4d2b;
  --green-2: #12351e;
  --fairway: #dfe8c8;
  --gold: #c89b3c;
  --orange: #f05a28;
  --line: #c8c0a4;
  --shadow: 0 22px 60px rgba(36, 48, 31, .16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(240,90,40,.12), transparent 26rem),
    radial-gradient(circle at 90% 10%, rgba(31,77,43,.16), transparent 28rem),
    linear-gradient(180deg, #fff9e9, var(--bg));
}
a { color: inherit; }
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255,250,240,.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(200,192,164,.74);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -.04em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--green-2);
  color: var(--gold);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.2);
}
.nav-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }
.nav-links a, .button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  background: rgba(255,255,255,.46);
  transition: .16s ease;
}
.nav-links a:hover, .button:hover { color: var(--orange); transform: translateY(-1px); }
.button.primary { background: var(--ink); color: #fffaf0; border-color: var(--ink); }
.button.primary:hover { color: #ffd37b; }
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(42px, 8vw, 92px) clamp(18px, 4vw, 34px) 34px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(24px, 5vw, 62px);
  align-items: center;
}
.eyebrow, .pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,250,240,.72);
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .08em;
}
h1 {
  font-size: clamp(46px, 10vw, 116px);
  line-height: .86;
  margin: 18px 0;
  letter-spacing: -.075em;
}
.hero-copy { font-size: clamp(18px, 2vw, 23px); line-height: 1.45; color: var(--muted); max-width: 670px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 16px;
  transform: rotate(1deg);
}
.hero-card img { width: 100%; display: block; border-radius: 20px; aspect-ratio: 4/3; object-fit: cover; }
.caption { color: var(--muted); font-style: italic; font-size: 13px; margin: 12px 6px 2px; }
.section { max-width: 1180px; margin: 0 auto; padding: 42px clamp(18px, 4vw, 34px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section h2 { font-size: clamp(30px, 5vw, 56px); line-height: .96; letter-spacing: -.055em; margin: 0; }
.section-sub { color: var(--muted); line-height: 1.6; max-width: 650px; margin: 10px 0 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat-card, .feature-card, .panel, .honor-card, .spot-card {
  background: rgba(255,250,240,.86);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(36,48,31,.07);
}
.stat-card.leader { outline: 3px solid rgba(200,155,60,.28); background: #fff6d8; }
.card-kicker { color: var(--orange); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 900; }
.player-line { display: flex; align-items: center; gap: 10px; }
.avatar-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--green-2);
  color: #fff3cc;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: -.04em;
}
.player-line h3 { margin: 10px 0 4px; font-size: 28px; letter-spacing: -.05em; }
.stat-card p { color: var(--muted); min-height: 44px; }
.big-metric { font-size: 54px; line-height: 1; font-weight: 950; letter-spacing: -.07em; }
.metric-label { color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 900; letter-spacing: .08em; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.mini-grid span { background: var(--fairway); border-radius: 12px; padding: 10px; color: var(--muted); }
.mini-grid b { color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
table { border-collapse: collapse; width: 100%; min-width: 720px; }
th, td { padding: 13px 15px; border-bottom: 1px solid rgba(200,192,164,.58); text-align: left; vertical-align: top; }
th { background: var(--green-2); color: #fff3cc; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
td { color: #394331; font-weight: 650; }
td small { display: block; color: var(--muted); font-weight: 600; margin-top: 3px; }
tr:last-child td { border-bottom: 0; }
.winner { color: var(--orange); font-weight: 950; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; }
.flow-arrow { display: grid; place-items: center; color: var(--orange); font-size: 34px; font-weight: 900; }
.feature-card h3, .panel h3, .spot-card h3 { margin: 8px 0; font-size: 25px; letter-spacing: -.04em; }
.feature-card p, .panel p, .spot-card p { color: var(--muted); line-height: 1.6; }
.callout { background: var(--ink); color: #fffaf0; border-radius: 24px; padding: 28px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.callout p { color: #d7d0ba; }
.callout .button { background: #fffaf0; color: var(--ink); }
.footer { margin-top: 40px; padding: 30px clamp(18px, 4vw, 56px); background: var(--green-2); color: #d7d0ba; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.footer a { color: #ffe19b; text-decoration: none; }
.spot-hero { max-width: 1180px; margin: 0 auto; padding: 42px clamp(18px, 4vw, 34px); display: grid; grid-template-columns: .82fr 1.18fr; gap: 26px; align-items: center; }
.spot-hero img { width: 100%; border-radius: 30px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.spot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.honor-card { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: center; }
.honor-card img, .no-photo { width: 170px; height: 210px; object-fit: cover; object-position: top; border-radius: 16px; border: 1px solid var(--line); background: var(--fairway); display: grid; place-items: center; font-size: 72px; font-weight: 900; color: var(--green); }
.honor-card h2 { margin: 12px 0 2px; font-size: 36px; letter-spacing: -.05em; }
.honor-card h3 { margin: 0 0 10px; color: var(--green); }
.honor-card p { color: var(--muted); line-height: 1.6; }
.tracker-layout { display: grid; grid-template-columns: 1fr; gap: 18px; }
.formula { font-family: 'JetBrains Mono', ui-monospace, monospace; background: var(--green-2); color: #fff3cc; padding: 18px; border-radius: 16px; overflow-x: auto; }
.warning { border-left: 5px solid var(--orange); background: #fff1df; padding: 16px 18px; border-radius: 14px; color: #5d3a25; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery figure { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.gallery figcaption { padding: 9px 11px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
@media (max-width: 820px) {
  .hero, .spot-hero { grid-template-columns: 1fr; }
  .grid-3, .spot-grid, .gallery { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
  .honor-card { grid-template-columns: 1fr; }
  .honor-card img, .no-photo { width: 100%; height: auto; aspect-ratio: 4/3; }
  .callout { grid-template-columns: 1fr; }
}


/* Clan Builder */
.clan-hero { grid-template-columns: 1.08fr .92fr; }
.clan-hero h1 { font-size: clamp(44px, 8vw, 92px); }
.clan-ticket { transform: rotate(-1deg); min-height: 300px; display: flex; flex-direction: column; justify-content: center; }
.clan-ticket h2 { font-size: clamp(32px, 5vw, 58px); line-height: .95; letter-spacing: -.055em; margin: 16px 0 4px; }
.clan-callout { background: linear-gradient(135deg, var(--green-2), #2c3c21); }
.clan-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; margin: 18px 0; }
.clan-form-grid label, .clan-round-form label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.clan-form-grid input, .clan-round-form input, .clan-round-form select {
  width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px; background: var(--paper); color: var(--ink); font: inherit; font-weight: 750; outline-color: var(--orange);
}
.clan-actions { align-items: center; }
.import-label { cursor: pointer; display: inline-flex; align-items: center; }
.import-label input { display: none; }
.clan-status { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; }
.clan-member-grid { margin-top: 18px; }
.clan-round-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; margin: 18px 0; }
.clan-round-form .member-score-fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.clan-round-form button { width: fit-content; }
.clan-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.clan-tools button { border: 1px solid var(--line); border-radius: 999px; background: #fffaf0; padding: 7px 10px; font-weight: 900; cursor: pointer; }
.clan-tools button:hover { color: var(--orange); }
.empty-state { padding: 20px; background: var(--paper); border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); font-weight: 750; }
@media (max-width: 820px) {
  .clan-form-grid, .clan-round-form, .clan-round-form .member-score-fields { grid-template-columns: 1fr; }
}


/* Steve 70 video */
.video-hero h1 { font-size: clamp(44px, 8vw, 94px); }
.quote-card { transform: rotate(-1deg); align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.quote-card h2 { font-size: clamp(28px, 4vw, 54px); line-height: .95; letter-spacing: -.055em; margin: 16px 0 4px; }
.video-shell { background: #0d130d; border: 1px solid var(--line); border-radius: 28px; padding: clamp(10px, 2vw, 18px); box-shadow: var(--shadow); }
.video-shell video { display: block; width: 100%; max-height: 78vh; border-radius: 20px; background: #060806; }
.video-callout { margin-top: 18px; background: linear-gradient(135deg, var(--green-2), #3b2817); }


/* Portal / Federation update */
.portal-hero h1 { font-size: clamp(44px, 8vw, 96px); }
.founding-card { transform: rotate(-1deg); }
.founding-card h2 { font-size: clamp(32px, 5vw, 58px); line-height: .95; letter-spacing: -.055em; margin: 16px 0 10px; }
.founding-card p { color: var(--muted); line-height: 1.65; font-weight: 700; }
.portal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.profile-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 16px; align-items: start; }
.profile-card {
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.profile-top { display: flex; align-items: center; gap: 15px; margin-bottom: 14px; }
.avatar-badge.big { width: 68px; height: 68px; border-radius: 18px; font-size: 22px; }
.profile-card h2 { margin: 10px 0 2px; font-size: clamp(34px, 5vw, 62px); line-height: .92; letter-spacing: -.06em; }
.profile-card p { color: var(--muted); line-height: 1.55; }
.profile-bio { font-weight: 750; }
.lost-ball-banner {
  background: var(--orange);
  color: white;
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 12px;
  margin-bottom: 16px;
}
.qr-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: center; margin-top: 18px; }
.qr-wrap img { width: 220px; height: 220px; border: 1px solid var(--line); border-radius: 18px; background: white; padding: 8px; }
.profile-url { word-break: break-all; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; background: var(--fairway); border-radius: 12px; padding: 10px; }
.profile-picker-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
@media (max-width: 820px) {
  .portal-grid, .profile-layout, .qr-wrap { grid-template-columns: 1fr; }
  .qr-wrap img { width: 100%; height: auto; max-width: 260px; }
}
