/* ==========================================================================
   Soccar Mania landing page
   One stylesheet, no framework. Palette and type sampled from the supplied
   key art: distressed cream slab type, gold brush strokes, near-black ground,
   the South African flag used only as a thin accent and never as a large fill.
   ========================================================================== */

/* ---------- fonts (self-hosted, latin subset) ---------- */
@font-face{font-family:"Anton";src:url("../fonts/anton-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Barlow";src:url("../fonts/barlow-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Barlow";src:url("../fonts/barlow-600.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Barlow";src:url("../fonts/barlow-800.woff2") format("woff2");font-weight:800;font-style:normal;font-display:swap}

/* ---------- tokens ---------- */
:root{
  --ink:#0b0a09;
  --charcoal:#141210;
  --charcoal-2:#1c1917;
  --raised:#232019;
  --gold:#e9b21f;
  --gold-deep:#c98b14;
  --cream:#f0e7d5;
  --cream-dim:#a99e8c;
  --sa-green:#007a4d;
  --sa-red:#de3831;
  --sa-blue:#002395;
  --sa-yellow:#ffb612;
  --line:rgba(240,231,213,.14);

  --display:"Anton",Impact,"Arial Narrow",sans-serif;
  --body:"Barlow","Segoe UI",system-ui,-apple-system,sans-serif;

  --wrap:1120px;
  --gutter:clamp(1.25rem,5vw,3rem);
  --section-y:clamp(4.5rem,11vw,8rem);
  --radius:4px;
  --header-h:68px;
}

/* ---------- base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body.sml{
  margin:0;
  background:var(--charcoal);
  color:var(--cream);
  font-family:var(--body);
  font-size:clamp(1rem,.96rem + .22vw,1.125rem);
  line-height:1.65;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
/* Base element rules are wrapped in :where() so they carry ZERO specificity.
   Without it, `body.sml a` (one class, two elements) outranks a single-class
   component like `.sml-btn`, and the result is not a subtle one: the hero
   button rendered gold text on a gold background, and the header crest ignored
   its own height and covered the navigation. Component classes must always
   win over a base rule, and this is what guarantees it. */
:where(body.sml) :where(img){max-width:100%;height:auto;display:block}
:where(body.sml) :where(a){color:var(--gold);text-underline-offset:3px}
:where(body.sml) :where(a):hover{color:var(--cream)}
body.sml :focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:2px}
body.sml h1,body.sml h2,body.sml h3{
  font-family:var(--display);font-weight:400;text-transform:uppercase;
  letter-spacing:.01em;line-height:.94;margin:0;
}

/* Film grain. One inline SVG, so no extra request. It sits above the ground
   and below the content, which lets photographs and flat fills share the same
   texture instead of the photos looking pasted on. */
body.sml::after{
  content:"";position:fixed;inset:0;z-index:1;pointer-events:none;opacity:.05;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Lifts content above the grain overlay. Wrapped in :where() for the same
   reason as the base rules above: at its original specificity of (0,1,1)
   this rule beat `.sml-header{position:fixed}` at (0,1,0), so the header
   computed to position:relative and scrolled away with the page, and the
   skip link dropped into the flow. Neither is visible in a screenshot of
   the top of the page, which is why it survived the first review. */
:where(body.sml)>*{position:relative;z-index:2}

.sml-skip{
  position:absolute;left:-9999px;top:0;z-index:100;
  background:var(--gold);color:var(--ink);padding:.75rem 1.25rem;font-weight:800;
}
.sml-skip:focus{left:.5rem;top:.5rem}

.sml-wrap{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:var(--gutter)}
.sml-vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* ---------- flag stripe: the only place the full flag palette appears ---- */
.sml-stripe{display:flex;height:4px;width:100%}
.sml-stripe span{flex:1}
.sml-stripe span:nth-child(1){background:var(--sa-green)}
.sml-stripe span:nth-child(2){background:var(--sa-yellow)}
.sml-stripe span:nth-child(3){background:var(--sa-red)}
.sml-stripe span:nth-child(4){background:var(--cream)}
.sml-stripe span:nth-child(5){background:var(--sa-blue)}
.sml-stripe span:nth-child(6){background:var(--gold)}

/* ---------- header ---------- */
.sml-header{
  position:fixed;inset:0 0 auto 0;z-index:60;
  background:transparent;
  transition:background .25s ease,box-shadow .25s ease,backdrop-filter .25s ease;
}
.sml-header.is-stuck{
  background:rgba(11,10,9,.92);
  backdrop-filter:saturate(1.4) blur(10px);
  box-shadow:0 1px 0 var(--line),0 12px 30px rgba(0,0,0,.45);
}
.sml-header__bar{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  height:var(--header-h);
}
.sml-brand{display:flex;align-items:center;gap:.7rem;text-decoration:none}
.sml-brand__txt{
  font-family:var(--display);text-transform:uppercase;color:var(--cream);
  font-size:1.25rem;letter-spacing:.05em;line-height:1;
}
.sml-brand__txt b{color:var(--gold);font-weight:400}

.sml-nav{display:flex;align-items:center;gap:.35rem}
.sml-nav a{
  font-family:var(--display);text-transform:uppercase;font-size:.95rem;
  letter-spacing:.06em;color:var(--cream);text-decoration:none;
  padding:.55rem .8rem;border-radius:var(--radius);position:relative;
}
.sml-nav a::after{
  content:"";position:absolute;left:.8rem;right:.8rem;bottom:.32rem;height:2px;
  background:var(--gold);transform:scaleX(0);transform-origin:left;
  transition:transform .2s ease;
}
.sml-nav a:hover::after,.sml-nav a:focus-visible::after{transform:scaleX(1)}
.sml-nav a:hover{color:var(--gold)}

.sml-burger{
  display:none;align-items:center;justify-content:center;gap:5px;flex-direction:column;
  width:46px;height:42px;background:transparent;border:1px solid var(--line);
  border-radius:var(--radius);cursor:pointer;
}
.sml-burger span{display:block;width:22px;height:2px;background:var(--cream);transition:transform .22s ease,opacity .18s ease}
.sml-burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.sml-burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.sml-burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

@media (max-width:900px){
  .sml-burger{display:flex}
  .sml-nav{
    position:absolute;left:0;right:0;top:var(--header-h);
    flex-direction:column;align-items:stretch;gap:0;
    background:rgba(11,10,9,.98);border-top:1px solid var(--line);
    padding:.5rem var(--gutter) 1.25rem;
    display:none;
  }
  .sml-nav.is-open{display:flex}
  .sml-nav a{padding:.95rem .25rem;border-bottom:1px solid var(--line);font-size:1.15rem}
  .sml-nav a::after{display:none}
}

/* ---------- hero ---------- */
.sml-hero{
  position:relative;min-height:min(94svh,860px);
  display:grid;place-items:center;text-align:center;
  padding:calc(var(--header-h) + 3rem) 0 clamp(3rem,8vw,6rem);
  isolation:isolate;
}
.sml-hero__media{position:absolute;inset:0;z-index:-2;overflow:hidden}
.sml-hero__media img{width:100%;height:100%;object-fit:cover;object-position:50% 58%}
.sml-hero::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:
    radial-gradient(120% 78% at 50% 34%,rgba(11,10,9,.20) 0%,rgba(11,10,9,.72) 62%,rgba(11,10,9,.94) 100%),
    linear-gradient(to bottom,rgba(11,10,9,.72) 0%,rgba(11,10,9,.18) 34%,rgba(11,10,9,.88) 88%,var(--charcoal) 100%);
}
/* The crest IS the wordmark, so a visible <h1> would print the name twice.
   The heading stays in the document for screen readers and for search. */
.sml-hero h1{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.sml-hero__crest{width:min(68vw,400px);margin:0 auto 1.5rem;filter:drop-shadow(0 18px 40px rgba(0,0,0,.6))}
.sml-hero__tag{
  font-family:var(--display);text-transform:uppercase;color:var(--gold);
  font-size:clamp(1.15rem,1rem + 1.6vw,2rem);letter-spacing:.16em;margin:0 0 1.1rem;
  text-shadow:0 2px 18px rgba(0,0,0,.7);
}
.sml-hero__lead{
  max-width:46ch;margin:0 auto;color:var(--cream);
  font-size:clamp(1.02rem,.98rem + .4vw,1.25rem);
  text-shadow:0 2px 16px rgba(0,0,0,.85);
}
.sml-hero__cta{margin-top:2rem;display:flex;flex-wrap:wrap;gap:.9rem;justify-content:center}

.sml-badge{
  display:inline-flex;align-items:center;gap:.6rem;
  font-family:var(--display);text-transform:uppercase;letter-spacing:.08em;
  font-size:1rem;padding:.85rem 1.5rem;border-radius:2px;
  border:2px solid var(--gold);color:var(--gold);background:rgba(11,10,9,.55);
}
.sml-btn{
  display:inline-flex;align-items:center;gap:.55rem;
  font-family:var(--display);text-transform:uppercase;letter-spacing:.08em;
  font-size:1rem;padding:.9rem 1.6rem;border-radius:2px;text-decoration:none;
  background:var(--gold);color:var(--ink);border:2px solid var(--gold);
  transition:transform .16s ease,background .16s ease;
}
.sml-btn:hover{background:var(--cream);border-color:var(--cream);color:var(--ink);transform:translateY(-2px)}

.sml-scroll{
  position:absolute;left:50%;bottom:1.4rem;transform:translateX(-50%);
  color:var(--cream-dim);font-size:.72rem;letter-spacing:.22em;text-transform:uppercase;
  text-decoration:none;display:flex;flex-direction:column;align-items:center;gap:.4rem;
}
.sml-scroll span{
  display:block;width:1px;height:26px;
  background:linear-gradient(var(--gold),transparent);
  animation:sml-drop 2s ease-in-out infinite;
}
@keyframes sml-drop{0%,100%{opacity:.25;transform:scaleY(.6)}50%{opacity:1;transform:scaleY(1)}}

/* ---------- sections ---------- */
.sml-sec{padding:var(--section-y) 0;position:relative}
.sml-sec--alt{background:var(--charcoal-2)}
.sml-sec--ink{background:var(--ink)}

/* Roomier under the heading than it needed to be when an eyebrow sat above it.
   Removing the eyebrows left the h2 sitting straight on the lede. */
.sml-sec h2{font-size:clamp(2.1rem,1.5rem + 3vw,3.6rem);margin:0 0 1.6rem;color:var(--cream)}
.sml-lede{max-width:62ch;color:var(--cream);font-size:clamp(1.02rem,1rem + .3vw,1.2rem);margin:0 0 1rem}
.sml-sec p{max-width:62ch}
.sml-muted{color:var(--cream-dim)}

.sml-split{display:grid;gap:clamp(2rem,5vw,4rem);align-items:center}
@media (min-width:900px){
  .sml-split{grid-template-columns:1.05fr .95fr}
  }
.sml-art{position:relative;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.sml-art img{width:100%}
.sml-art::after{content:"";position:absolute;inset:0;box-shadow:inset 0 0 90px rgba(11,10,9,.7);pointer-events:none}

/* The three words lifted straight off the client's key art. Left as pure
   typography on purpose: we have his words, not his gameplay detail, and a
   made-up explanation under each one would be an invented product claim. */
.sml-words{
  display:flex;flex-wrap:wrap;gap:.35em 1.1em;align-items:baseline;
  margin-top:clamp(2rem,5vw,3rem);padding-top:clamp(1.5rem,4vw,2.5rem);
  border-top:1px solid var(--line);
}
.sml-words b{
  font-family:var(--display);font-weight:400;text-transform:uppercase;
  font-size:clamp(1.6rem,1rem + 3.4vw,3.1rem);line-height:1;letter-spacing:.02em;
}
.sml-words b:nth-child(1){color:var(--cream)}
.sml-words b:nth-child(2){color:var(--gold)}
.sml-words b:nth-child(3){color:var(--sa-red)}

.sml-grid{display:grid;gap:1rem;margin-top:clamp(1.8rem,4vw,2.6rem)}
@media (min-width:560px){.sml-grid{grid-template-columns:repeat(2,1fr)}}
/* Five items in a two-column grid orphan the fifth on every tablet. Three
   columns reads as 3 + 2, which looks intended rather than left over. */
@media (min-width:760px){.sml-grid--5{grid-template-columns:repeat(3,1fr)}}
@media (min-width:1060px){.sml-grid--5{grid-template-columns:repeat(5,1fr)}}
.sml-card{
  background:var(--raised);border:1px solid var(--line);border-radius:var(--radius);
  padding:1.4rem 1.3rem 1.5rem;position:relative;overflow:hidden;
  transition:transform .18s ease,border-color .18s ease;
}
.sml-card:hover{transform:translateY(-3px);border-color:rgba(233,178,31,.5)}
/* The gold bar that used to run down the left of every card is gone for the
   same reason as above. Writing it as a pseudo-element did not make it a
   different decision. The cards are distinguished by their ground and by
   the heading, and the hover state carries the gold. */
/* The numerals are gone: respect, no bullying, humility, grace in defeat and
   building the community are a SET, not a sequence, and numbering a set is
   on the refusal list. What replaces them is a small gold rule, which
   separates without implying an order. */
.sml-card__n{
  display:block;width:22px;height:3px;background:var(--gold);
  margin-bottom:1rem;border-radius:2px;
}
.sml-card h3{font-size:1.12rem;margin:0 0 .35rem;color:var(--cream);letter-spacing:.02em}
.sml-card p{font-size:.96rem;color:var(--cream-dim);margin:0;max-width:none}

.sml-list{list-style:none;margin:1.4rem 0 0;padding:0;display:grid;gap:.85rem;max-width:62ch}
.sml-list li{position:relative;padding-left:1.9rem;color:var(--cream)}
.sml-list li::before{
  content:"";position:absolute;left:0;top:.62em;width:10px;height:10px;
  background:var(--gold);transform:rotate(45deg);
}

.sml-panel{
  background:var(--raised);border:1px solid var(--line);border-radius:var(--radius);
  padding:clamp(1.6rem,4vw,2.6rem);margin-top:clamp(1.6rem,4vw,2.2rem);
}
.sml-mail{
  display:inline-flex;align-items:center;gap:.6rem;font-family:var(--display);
  font-size:clamp(1.05rem,.95rem + .9vw,1.6rem);letter-spacing:.01em;
  color:var(--gold);text-decoration:none;word-break:break-word;
}
.sml-mail:hover{color:var(--cream)}
.sml-mail svg{width:22px;height:22px;flex:none}


/* ---------- footer ---------- */
.sml-footer{background:var(--ink);padding:clamp(2.4rem,6vw,3.4rem) 0 2rem;border-top:1px solid var(--line)}
.sml-footer__top{display:flex;flex-wrap:wrap;gap:1.4rem 2rem;align-items:center;justify-content:space-between}
.sml-footer img{height:54px;width:auto;flex:none}
.sml-footer nav{display:flex;flex-wrap:wrap;gap:.4rem 1.4rem}
.sml-footer nav a{
  color:var(--cream-dim);text-decoration:none;font-size:.92rem;
  font-weight:600;letter-spacing:.02em;
}
.sml-footer nav a:hover{color:var(--gold);text-decoration:underline}
.sml-footer__base{
  margin-top:1.8rem;padding-top:1.3rem;border-top:1px solid var(--line);
  display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;justify-content:space-between;
  color:var(--cream-dim);font-size:.85rem;
}

/* ---------- the legal documents ---------- */
.sml-legal{padding:calc(var(--header-h) + clamp(3rem,8vw,5.5rem)) 0 var(--section-y)}
.sml-legal h1{font-size:clamp(2.2rem,1.6rem + 3vw,3.4rem);margin:0 0 1.2rem;color:var(--cream)}
.sml-legal h2{font-size:clamp(1.3rem,1.1rem + .9vw,1.7rem);margin:2.6rem 0 .8rem;color:var(--gold)}
.sml-legal p{max-width:68ch;margin:0 0 1rem}
.sml-legal .sml-lede{font-size:clamp(1.05rem,1rem + .35vw,1.25rem);color:var(--cream);margin-bottom:2rem}
.sml-legal__meta{
  color:var(--cream-dim);font-size:.88rem;letter-spacing:.02em;
  margin:0 0 2rem;padding-bottom:1.1rem;border-bottom:1px solid var(--line);
}
.sml-legal .sml-list{margin:0 0 1.2rem;max-width:68ch}
.sml-legal .sml-list li{color:var(--cream)}
.sml-legal .sml-list li::before{top:.6em;width:8px;height:8px}
.sml-legal strong{color:var(--cream)}
/* The section padding on .sml-legal supplies the air before the footer. This
   only stops the final paragraph adding a second margin on top of it. */
.sml-legal>.sml-wrap>*:last-child{margin-bottom:0}

/* ---------- motion preference ---------- */
html{scroll-behavior:smooth}
body.sml [id]{scroll-margin-top:calc(var(--header-h) + 14px)}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  body.sml *,body.sml *::before,body.sml *::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
}

/* Nothing on this page may create a horizontal scrollbar. The header crest
   did exactly that before the specificity fix above, and a page that scrolls
   sideways on a phone reads as broken however good the rest of it is. */
body.sml{max-width:100%}
.sml-header__bar{min-width:0}
.sml-brand__txt{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}


/* The Proudly South African band. It was a wall of text on an empty ground,
   which made the most emotive line on the page the flattest thing on it.
   The hero photograph returns here, pushed far back, so the section has
   somewhere to sit without competing with the copy. */
.sml-sec--band{position:relative;isolation:isolate;text-align:center;overflow:hidden}
.sml-sec--band::before{
  content:"";position:absolute;inset:0;z-index:-2;
  background-image:url("../img/hero-1280.webp"); /* same file the hero already loaded, so this band costs nothing */
  background-size:cover;background-position:50% 62%;
  opacity:.28;
}
.sml-sec--band::after{
  content:"";position:absolute;inset:0;z-index:-1;
  background:radial-gradient(90% 70% at 50% 50%,rgba(11,10,9,.55) 0%,rgba(11,10,9,.92) 78%);
}
.sml-sec--band .sml-lede{margin-inline:auto}
.sml-sec--band h2{text-shadow:0 2px 24px rgba(0,0,0,.75)}

/* The liability limitation. South Africa's Consumer Protection Act section 49
   wants a term that limits a supplier's liability drawn to the reader's
   attention in a conspicuous manner, not just in plain language. It had the
   plain language and none of the conspicuousness. */
.sml-callout{
  border:1px solid rgba(233,178,31,.45);background:rgba(233,178,31,.07);
  border-radius:var(--radius);padding:clamp(1.1rem,3vw,1.6rem);
  margin:0 0 1.2rem;max-width:68ch;
}
.sml-callout strong{color:var(--cream)}

/* The legal pages carry a permanently solid header. Separate from .is-stuck,
   which landing.js owns and toggles on scroll. */
.sml-header--solid{
  background:rgba(11,10,9,.96);
  box-shadow:0 1px 0 var(--line);
}
/* One link, always visible, including on a phone. The shared .sml-nav is hidden
   below 900px and needs a burger to come back; these pages have no burger. */
.sml-nav--plain{position:static;display:flex;background:none;border:0;padding:0}
@media (max-width:900px){
  .sml-nav--plain{
    position:static;display:flex;flex-direction:row;
    background:none;border-top:0;padding:0;
  }
  .sml-nav--plain a{padding:.55rem .3rem;border-bottom:0;font-size:.95rem}
}

/* Contents list. A 10 KB contract needs a way in other than scrolling, and a
   Play reviewer looking for one specific clause is the likeliest reader. */
.sml-toc{
  border:1px solid var(--line);border-radius:var(--radius);
  background:var(--charcoal-2);padding:1.2rem 1.4rem;margin:0 0 2.4rem;max-width:68ch;
}
.sml-toc h2{
  font-size:.78rem !important;letter-spacing:.16em;color:var(--cream-dim) !important;
  margin:0 0 .7rem !important;font-family:var(--body);font-weight:800;
}
.sml-toc ol{margin:0;padding-left:1.2rem;columns:2;column-gap:2rem}
.sml-toc li{margin:0 0 .3rem;color:var(--cream-dim);font-size:.95rem}
.sml-toc a{color:var(--cream);text-decoration:none}
.sml-toc a:hover{color:var(--gold);text-decoration:underline}
@media (max-width:640px){.sml-toc ol{columns:1}}
