/* PITCH26 — nation crests and kit weave. GENERATED by scripts/apply-fanzone-phase13.js.
   The flag, held in a national frame; the shirt pattern, kept to an edge band so no text
   ever sits on it. SITE-CRITICAL. */

/* The crest sits before the hero eyebrow on the hub and every game page. */
html[data-fz-nation]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) :is(.eyebrow, .fz-hero-eyebrow)::before {
  content: ""; display: inline-block; vertical-align: -0.28em;
  width: 1.35em; height: 1.35em; margin-right: 0.55em;
  background-image: var(--fz-flag);
  background-size: cover; background-position: center;
  box-shadow: 0 0 0 2px var(--fz-accent), 0 0 0 3px var(--fz-page);
  clip-path: var(--fz-crest);
}

/* The weave runs along the foot of every card, 6px tall, never behind content. */
html[data-fz-nation][data-fz-nation]:not([data-p26-locked="true"]) :is(body.fz-page, body.fz-hub) :is(.fz-card, .fz-card-item, .fz-game-card, .fz-set-card, .fz-feature-card, .fz-profile-card) {
  /* fz-skins paints the card surface with an !important shorthand, and a shorthand resets
     background-image. The weave is decorative and must sit on that surface, so it is
     important too. */
  background-image: var(--fz-weave) !important;
  background-repeat: repeat-x !important;
  background-size: auto 6px !important;
  background-position: left bottom !important;
}

/* algeria — hexagon crest, twill weave */
html[data-fz-nation="algeria"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

/* argentina — shield crest, stripes weave */
html[data-fz-nation="argentina"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(50% 0, 100% 0, 100% 58%, 50% 100%, 0 58%, 0 0);
  --fz-weave: repeating-linear-gradient(90deg, var(--fz-accent) 0 6px, transparent 6px 14px);
}

/* australia — chevron crest, twill weave */
html[data-fz-nation="australia"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

/* austria — square crest, twill weave */
html[data-fz-nation="austria"]:not([data-p26-locked="true"]) {
  --fz-crest: inset(0 0 0 0);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

/* belgium — square crest, twill weave */
html[data-fz-nation="belgium"]:not([data-p26-locked="true"]) {
  --fz-crest: inset(0 0 0 0);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

/* bosnia-herzegovina — chevron crest, twill weave */
html[data-fz-nation="bosnia-herzegovina"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

/* brazil — arch crest, solid weave */
html[data-fz-nation="brazil"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(0 22%, 50% 0, 100% 22%, 100% 100%, 0 100%);
  --fz-weave: linear-gradient(90deg, var(--fz-accent), var(--fz-accent-2));
}

/* canada — shield crest, twill weave */
html[data-fz-nation="canada"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(50% 0, 100% 0, 100% 58%, 50% 100%, 0 58%, 0 0);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

/* cape-verde-islands — lozenge crest, twill weave */
html[data-fz-nation="cape-verde-islands"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

/* colombia — roundel crest, sash weave */
html[data-fz-nation="colombia"]:not([data-p26-locked="true"]) {
  --fz-crest: circle(50% at 50% 50%);
  --fz-weave: linear-gradient(115deg, transparent 40%, var(--fz-accent) 40% 58%, transparent 58%);
}

/* croatia — checks crest, hoops weave */
html[data-fz-nation="croatia"]:not([data-p26-locked="true"]) {
  --fz-crest: inset(0 0 0 0);
  --fz-weave: repeating-linear-gradient(0deg, var(--fz-accent) 0 2px, transparent 2px 6px);
}

/* curacao — lozenge crest, twill weave */
html[data-fz-nation="curacao"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

/* czechia — chevron crest, twill weave */
html[data-fz-nation="czechia"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

/* congo-dr — lozenge crest, twill weave */
html[data-fz-nation="congo-dr"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

/* ecuador — roundel crest, twill weave */
html[data-fz-nation="ecuador"]:not([data-p26-locked="true"]) {
  --fz-crest: circle(50% at 50% 50%);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

/* egypt — hexagon crest, twill weave */
html[data-fz-nation="egypt"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

/* england — shield crest, twill weave */
html[data-fz-nation="england"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(50% 0, 100% 0, 100% 58%, 50% 100%, 0 58%, 0 0);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

/* france — square crest, solid weave */
html[data-fz-nation="france"]:not([data-p26-locked="true"]) {
  --fz-crest: inset(0 0 0 0);
  --fz-weave: linear-gradient(90deg, var(--fz-accent), var(--fz-accent-2));
}

/* germany — square crest, solid weave */
html[data-fz-nation="germany"]:not([data-p26-locked="true"]) {
  --fz-crest: inset(0 0 0 0);
  --fz-weave: linear-gradient(90deg, var(--fz-accent), var(--fz-accent-2));
}

/* ghana — lozenge crest, sash weave */
html[data-fz-nation="ghana"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  --fz-weave: linear-gradient(115deg, transparent 40%, var(--fz-accent) 40% 58%, transparent 58%);
}

/* haiti — lozenge crest, twill weave */
html[data-fz-nation="haiti"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

/* iran — hexagon crest, twill weave */
html[data-fz-nation="iran"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

/* iraq — hexagon crest, twill weave */
html[data-fz-nation="iraq"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

/* ivory-coast — lozenge crest, sash weave */
html[data-fz-nation="ivory-coast"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  --fz-weave: linear-gradient(115deg, transparent 40%, var(--fz-accent) 40% 58%, transparent 58%);
}

/* japan — roundel crest, hoops weave */
html[data-fz-nation="japan"]:not([data-p26-locked="true"]) {
  --fz-crest: circle(50% at 50% 50%);
  --fz-weave: repeating-linear-gradient(0deg, var(--fz-accent) 0 2px, transparent 2px 6px);
}

/* jordan — hexagon crest, twill weave */
html[data-fz-nation="jordan"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

/* mexico — pennant crest, sash weave */
html[data-fz-nation="mexico"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
  --fz-weave: linear-gradient(115deg, transparent 40%, var(--fz-accent) 40% 58%, transparent 58%);
}

/* morocco — hexagon crest, twill weave */
html[data-fz-nation="morocco"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

/* netherlands — square crest, twill weave */
html[data-fz-nation="netherlands"]:not([data-p26-locked="true"]) {
  --fz-crest: inset(0 0 0 0);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

/* new-zealand — chevron crest, hoops weave */
html[data-fz-nation="new-zealand"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%);
  --fz-weave: repeating-linear-gradient(0deg, var(--fz-accent) 0 2px, transparent 2px 6px);
}

/* norway — pennant crest, twill weave */
html[data-fz-nation="norway"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

/* panama — lozenge crest, twill weave */
html[data-fz-nation="panama"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

/* paraguay — roundel crest, stripes weave */
html[data-fz-nation="paraguay"]:not([data-p26-locked="true"]) {
  --fz-crest: circle(50% at 50% 50%);
  --fz-weave: repeating-linear-gradient(90deg, var(--fz-accent) 0 6px, transparent 6px 14px);
}

/* portugal — shield crest, solid weave */
html[data-fz-nation="portugal"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(50% 0, 100% 0, 100% 58%, 50% 100%, 0 58%, 0 0);
  --fz-weave: linear-gradient(90deg, var(--fz-accent), var(--fz-accent-2));
}

/* qatar — hexagon crest, twill weave */
html[data-fz-nation="qatar"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

/* saudi-arabia — hexagon crest, twill weave */
html[data-fz-nation="saudi-arabia"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

/* scotland — shield crest, twill weave */
html[data-fz-nation="scotland"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(50% 0, 100% 0, 100% 58%, 50% 100%, 0 58%, 0 0);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

/* senegal — lozenge crest, twill weave */
html[data-fz-nation="senegal"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

/* south-africa — chevron crest, twill weave */
html[data-fz-nation="south-africa"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

/* south-korea — roundel crest, hoops weave */
html[data-fz-nation="south-korea"]:not([data-p26-locked="true"]) {
  --fz-crest: circle(50% at 50% 50%);
  --fz-weave: repeating-linear-gradient(0deg, var(--fz-accent) 0 2px, transparent 2px 6px);
}

/* spain — square crest, solid weave */
html[data-fz-nation="spain"]:not([data-p26-locked="true"]) {
  --fz-crest: inset(0 0 0 0);
  --fz-weave: linear-gradient(90deg, var(--fz-accent), var(--fz-accent-2));
}

/* sweden — pennant crest, twill weave */
html[data-fz-nation="sweden"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

/* switzerland — square crest, twill weave */
html[data-fz-nation="switzerland"]:not([data-p26-locked="true"]) {
  --fz-crest: inset(0 0 0 0);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

/* tunisia — hexagon crest, twill weave */
html[data-fz-nation="tunisia"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

/* turkey — hexagon crest, twill weave */
html[data-fz-nation="turkey"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

/* united-states — shield crest, twill weave */
html[data-fz-nation="united-states"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(50% 0, 100% 0, 100% 58%, 50% 100%, 0 58%, 0 0);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

/* uruguay — shield crest, stripes weave */
html[data-fz-nation="uruguay"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(50% 0, 100% 0, 100% 58%, 50% 100%, 0 58%, 0 0);
  --fz-weave: repeating-linear-gradient(90deg, var(--fz-accent) 0 6px, transparent 6px 14px);
}

/* uzbekistan — hexagon crest, twill weave */
html[data-fz-nation="uzbekistan"]:not([data-p26-locked="true"]) {
  --fz-crest: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  --fz-weave: repeating-linear-gradient(135deg, var(--fz-accent) 0 3px, var(--fz-accent-2) 3px 6px);
}

