:root {
  --ink: #15263a;
  --blue: #1658ad;
  --cobalt: #064e9f;
  --coral: #ed6a4d;
  --clay: #b8492e;
  --sun: #f2cf57;
  --paper: #fffdf8;
  --mist: #e9f0f3;
  --muted: #66717b;
  --line: rgba(21,38,58,0.17);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
body::selection { color: var(--ink); background: var(--sun); }

.site-header { position: fixed; z-index: 20; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 17px clamp(18px,4vw,64px); color: var(--paper); transition: 180ms ease; }
.site-header.is-scrolled { padding-block: 10px; color: var(--ink); background: rgba(255,253,248,0.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; text-transform: uppercase; }
.brand span { display: grid; width: 42px; aspect-ratio: 1; place-items: center; background: var(--sun); color: var(--ink); font-size: 0.72rem; transform: rotate(-4deg); }
.brand b { font-size: 0.84rem; }
.site-nav { display: flex; gap: clamp(16px,2.5vw,34px); }
.site-nav a { position: relative; padding-block: 7px; font-size: 0.74rem; font-weight: 850; text-transform: uppercase; }
.site-nav a::after { position: absolute; right: 0; bottom: 2px; left: 0; height: 3px; background: var(--sun); content: ""; transform: scaleX(0); transition: transform 180ms ease; }
.site-nav a:hover::after,.site-nav a.is-active::after { transform: scaleX(1); }
.menu-toggle { display: none; border: 0; padding: 8px; background: transparent; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 4px 0; background: currentColor; }

.hero { position: relative; min-height: 84svh; display: grid; align-items: end; overflow: hidden; padding: 120px clamp(20px,6vw,88px) 62px; color: var(--paper); background: linear-gradient(90deg, rgba(11,43,74,0.86), rgba(11,43,74,0.25) 48%, rgba(11,43,74,0.04)), url("assets/noemi-hero.png") center / cover no-repeat; }
.hero::before { position: absolute; top: 0; bottom: 0; left: 47%; width: 12px; background: rgba(242,207,87,0.72); content: ""; transform: skew(-8deg); }
.hero-copy { position: relative; z-index: 1; max-width: 720px; }
.eyebrow,.section-mark { margin: 0 0 16px; color: var(--coral); font-size: 0.74rem; font-weight: 900; text-transform: uppercase; }
.hero .eyebrow { color: var(--sun); }
h1,h2,h3,p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(4rem,9vw,8.5rem); font-weight: 950; line-height: 0.78; text-transform: uppercase; }
.tagline { margin-bottom: 28px; color: rgba(255,253,248,0.84); font-size: clamp(1.15rem,2vw,1.6rem); font-weight: 600; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; border: 1px solid currentColor; border-radius: 4px; padding: 12px 18px; font-size: 0.76rem; font-weight: 900; text-transform: uppercase; transition: transform 180ms ease, box-shadow 180ms ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(21,38,58,0.2); }
.button-blue { color: var(--paper); border-color: var(--blue); background: var(--blue); }
.button-coral { color: var(--paper); border-color: var(--coral); background: var(--coral); }
.rank-card { position: absolute; right: clamp(20px,6vw,88px); bottom: 60px; z-index: 1; width: 184px; padding: 24px; color: var(--ink); background: var(--sun); box-shadow: 12px 12px 0 var(--blue); }
.rank-card span,.rank-card small { display: block; font-size: 0.67rem; font-weight: 900; text-transform: uppercase; }
.rank-card strong { display: block; margin: 12px 0 8px; font-size: 5rem; line-height: 0.8; }

.scoreline { display: grid; grid-template-columns: repeat(4,1fr); color: var(--paper); background: var(--cobalt); }
.scoreline article { min-height: 126px; padding: 24px clamp(18px,3vw,40px); border-right: 1px solid rgba(255,255,255,0.22); border-bottom: 6px solid var(--coral); }
.scoreline article:nth-child(2) { border-bottom-color: var(--sun); }
.scoreline article:nth-child(3) { border-bottom-color: #63a878; }
.scoreline article:last-child { border-right: 0; border-bottom-color: #7eb7d7; }
.scoreline span { display: block; margin-bottom: 24px; color: rgba(255,255,255,0.68); font-size: 0.7rem; font-weight: 850; text-transform: uppercase; }
.scoreline strong { font-size: clamp(1.7rem,3vw,3.1rem); line-height: 1; }

.section { padding: clamp(76px,10vw,140px) clamp(20px,6vw,88px); }
.section-mark { margin-bottom: 48px; color: var(--blue); }
.about { display: grid; grid-template-columns: 130px minmax(0,1fr) minmax(260px,0.48fr); gap: clamp(28px,6vw,82px); align-items: start; }
.about .section-mark { margin: 0; }
h2 { margin-bottom: 0; font-size: clamp(2.8rem,6vw,6.4rem); font-weight: 900; line-height: 0.9; text-transform: uppercase; }
.about-main .lead { margin: 34px 0 18px; color: var(--blue); font-size: clamp(1.35rem,2.5vw,2.15rem); font-weight: 750; line-height: 1.28; }
.about-main > p:not(.lead), .game-head > p, .results-grid > div:first-child > p:last-child, .team > div:last-child > p { max-width: 680px; color: var(--muted); }
.facts { margin: 0; border-top: 3px solid var(--coral); }
.facts div { padding: 15px 0; border-bottom: 1px solid var(--line); }
dt { color: var(--coral); font-size: 0.68rem; font-weight: 900; text-transform: uppercase; }
dd { margin: 3px 0 0; font-weight: 700; }

.game { color: var(--paper); background: var(--cobalt); }
.game .section-mark,.game .eyebrow { color: var(--sun); }
.game-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,0.5fr); gap: 40px; align-items: end; margin-bottom: 48px; }
.game-head > p { color: rgba(255,255,255,0.68); }
.pattern-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.pattern-grid article { min-height: 280px; display: flex; flex-direction: column; padding: 28px; color: var(--ink); background: var(--paper); }
.pattern-grid article:nth-child(2) { background: var(--sun); }
.pattern-grid article:nth-child(3) { color: var(--paper); background: var(--coral); }
.pattern-grid span { font-size: 0.7rem; font-weight: 900; }
.pattern-grid h3 { margin: auto 0 12px; font-size: 1.2rem; text-transform: uppercase; }
.pattern-grid p { margin-bottom: 0; color: inherit; opacity: 0.7; }

.results { background: var(--mist); }
.results-grid { display: grid; grid-template-columns: minmax(0,0.8fr) minmax(360px,1fr); gap: clamp(36px,8vw,120px); align-items: start; }
.results-grid > div:first-child { position: sticky; top: 100px; }
.results-grid > div:first-child > p:last-child { margin-top: 28px; }
.result-stack { border-top: 3px solid var(--ink); }
.result-stack article { padding: 24px 6px; border-bottom: 1px solid var(--line); }
.result-stack span { color: var(--blue); font-size: 0.7rem; font-weight: 900; text-transform: uppercase; }
.result-stack h3 { margin: 16px 0 5px; font-size: clamp(1.35rem,2.4vw,2.15rem); text-transform: uppercase; }
.result-stack strong { color: var(--coral); font-size: 0.78rem; text-transform: uppercase; }

.matches { background: var(--paper); }
.matches-head { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 46px; }
.prize { min-width: 290px; padding: 22px; color: var(--paper); background: var(--blue); transform: rotate(1.5deg); }
.prize span,.prize small { display: block; font-size: 0.67rem; font-weight: 850; text-transform: uppercase; }
.prize strong { display: block; margin-block: 8px; font-size: clamp(2.2rem,4vw,4rem); line-height: 1; }
.table-wrap { overflow-x: auto; border-top: 3px solid var(--ink); }
table { width: 100%; min-width: 760px; border-collapse: collapse; }
caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
th,td { padding: 18px 14px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 0.68rem; text-transform: uppercase; }
td { font-size: 0.9rem; font-weight: 650; }
.win,.loss { display: inline-grid; width: 29px; aspect-ratio: 1; place-items: center; border-radius: 50%; color: var(--paper); font-size: 0.7rem; }
.win { background: var(--blue); } .loss { background: var(--coral); }
.earnings { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 36px; border: 1px solid var(--line); }
.earnings div { min-height: 116px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border-right: 1px solid var(--line); }
.earnings div:last-child { border-right: 0; }
.earnings span { color: var(--muted); font-size: 0.67rem; font-weight: 850; text-transform: uppercase; }
.earnings strong { font-size: clamp(1.3rem,2.4vw,2.25rem); }

.team { display: grid; grid-template-columns: 130px minmax(0,1fr) minmax(280px,0.5fr); gap: clamp(28px,6vw,82px); align-items: end; color: var(--ink); background: var(--sun); }
.team .section-mark { margin: 0; color: var(--ink); }
.team .eyebrow { color: var(--clay); }
.team h2 { font-size: clamp(2.8rem,5.5vw,5.8rem); }
.team > div:last-child > p { color: rgba(21,38,58,0.72); }
footer { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 42px; padding: 28px clamp(20px,6vw,88px); color: rgba(255,255,255,0.6); background: #0b2b4a; font-size: 0.75rem; }
footer p { margin: 0; } footer p:first-child { max-width: 820px; }

@media (max-width: 920px) {
  .menu-toggle { display: block; z-index: 2; }
  .site-nav { position: absolute; top: 100%; right: 16px; left: 16px; display: none; flex-direction: column; gap: 0; padding: 8px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 12px; }
  .about { grid-template-columns: 1fr 1fr; }
  .about .section-mark { grid-column: 1 / -1; }
  .game-head,.results-grid { grid-template-columns: 1fr; }
  .results-grid > div:first-child { position: static; }
  .pattern-grid { grid-template-columns: 1fr; }
  .pattern-grid article { min-height: 230px; }
  .earnings { grid-template-columns: 1fr 1fr; }
  .earnings div:nth-child(2) { border-right: 0; }
  .earnings div { border-bottom: 1px solid var(--line); }
  .team { grid-template-columns: 1fr 1fr; }
  .team .section-mark { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .brand b { display: none; }
  .hero { min-height: 80svh; background-position: 64% center; }
  .hero::after { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(11,43,74,0.03),rgba(11,43,74,0.76)); content: ""; }
  .rank-card { display: none; }
  .scoreline { grid-template-columns: 1fr 1fr; }
  .scoreline article:nth-child(2) { border-right: 0; }
  .about,.team { grid-template-columns: 1fr; }
  .about .section-mark,.team .section-mark { grid-column: auto; }
  .matches-head { align-items: stretch; flex-direction: column; }
  .prize { min-width: 0; width: 100%; }
  footer { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition-duration: 0.01ms !important; } }
