/**
 * Friendly season UI: fixed ticket posters for the Grid Schedule.
 *
 * Loaded only for competitions using the Friendly season UI template.
 */

@font-face {
  font-family: 'Aleagues Poster Display';
  src: url('../fonts/anton/Anton-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

.friendly-poster-defs {
  position: absolute;
  overflow: hidden;
}

/* Fixed 1672 x 941 ticket poster: every size inside the canvas is in cqw. */
.friendly-poster {
  --night: #05110b;
  --cream: #f1ecde;
  --paper: #efe5cf;
  --ink: #11251a;
  --orange: #ff6935;
  --stamp: #d4501c;
  --muted: rgba(241, 236, 222, 0.58);
  --hair: rgba(241, 236, 222, 0.16);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Helvetica Neue', Arial, sans-serif;
  --display: 'Aleagues Poster Display', Impact, sans-serif;
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  min-width: 0;
  border-radius: 0.4rem;
  box-shadow: 0 1.2rem 3rem rgba(5, 17, 11, 0.28);
  color: var(--cream);
  font-family: var(--sans);
  line-height: 1.4;
  transform: translateZ(0);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

/* The theme reset sets Montserrat on every element; poster text inherits instead. */
.friendly-poster * {
  font-family: inherit;
}

.friendly-poster:hover {
  box-shadow: 0 1.8rem 3.8rem rgba(5, 17, 11, 0.38);
  transform: translateY(-0.4rem);
}

.friendly-poster__link {
  position: absolute;
  inset: 0;
  z-index: 12;
  border-radius: inherit;
}

.friendly-poster__link:focus-visible {
  outline: 0.35rem solid var(--orange);
  outline-offset: 0.3rem;
}

.friendly-poster__canvas {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26cqw;
  aspect-ratio: 1672 / 941;
  overflow: hidden;
  border-radius: inherit;
  background: var(--night);
}

.friendly-poster__canvas::before {
  position: absolute;
  inset: 0;
  z-index: 8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  content: '';
  mix-blend-mode: overlay;
  opacity: 0.14;
  pointer-events: none;
}

.friendly-poster__canvas::after {
  position: absolute;
  inset: 0;
  z-index: 9;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 228, 186, 0.16) 50%, transparent 62%);
  content: '';
  pointer-events: none;
  transform: translateX(-110%);
}

.friendly-poster:hover .friendly-poster__canvas::after,
.friendly-poster:focus-within .friendly-poster__canvas::after {
  transform: translateX(110%);
  transition: transform 1100ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.friendly-poster__main {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 4.6cqw minmax(0, 1fr) 17cqw 8.6cqw;
  min-width: 0;
  min-height: 0;
}

.friendly-poster--scheduled .friendly-poster__main {
  grid-template-rows: 4.6cqw minmax(0, 1fr) 15cqw 8.6cqw;
}

/* Photo stack: image -> team-colour duotone -> halftone print -> legibility shade */
.friendly-poster__photo,
.friendly-poster__tint,
.friendly-poster__halftone,
.friendly-poster__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.friendly-poster__photo {
  z-index: -5;
  background: url('../images/match-schedule-poster-stadium.jpg') center 40% / cover no-repeat;
}

.friendly-poster__tint {
  z-index: -4;
  background: linear-gradient(90deg, var(--home-c), var(--away-c));
  mix-blend-mode: color;
  opacity: 0;
}

.friendly-poster__halftone {
  z-index: -3;
  background: radial-gradient(circle, rgba(5, 17, 11, 0.7) 0.11cqw, transparent 0.14cqw) 0 0 / 0.55cqw 0.55cqw;
  -webkit-mask-image: linear-gradient(100deg, #000 0%, rgba(0, 0, 0, 0.5) 40%, transparent 70%);
  mask-image: linear-gradient(100deg, #000 0%, rgba(0, 0, 0, 0.5) 40%, transparent 70%);
}

.friendly-poster__shade {
  z-index: -2;
  background: linear-gradient(180deg, rgba(5, 17, 11, 0.72) 0, rgba(5, 17, 11, 0.1) 14%, rgba(5, 17, 11, 0.15) 38%, rgba(5, 17, 11, 0.86) 60%, var(--night) 82%);
}

.friendly-poster--full-time .friendly-poster__photo {
  filter: grayscale(1) contrast(1.15) brightness(0.55);
}

.friendly-poster--full-time .friendly-poster__tint {
  opacity: 0.55;
}

.friendly-poster--penalty-shootout .friendly-poster__photo {
  background-image: url('../images/match-schedule-poster-action.jpg');
  background-position: center 30%;
  filter: grayscale(1) contrast(1.2) brightness(0.5);
}

.friendly-poster--penalty-shootout .friendly-poster__tint {
  background: linear-gradient(90deg, var(--home-c), var(--orange) 70%, var(--away-c));
  opacity: 0.6;
}

.friendly-poster__ghost {
  position: absolute;
  z-index: -1;
  margin: 0;
  color: transparent;
  font-family: var(--display);
  line-height: 0.78;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  -webkit-text-stroke: 0.1cqw rgba(241, 236, 222, 0.2);
}

.friendly-poster__ghost--home {
  top: 3.4cqw;
  left: -1cqw;
}

.friendly-poster__ghost--away {
  top: 15cqw;
  right: -1.4cqw;
  -webkit-text-stroke-color: rgba(255, 105, 53, 0.3);
}

.friendly-poster__ghost--s1 { font-size: 25cqw; }
.friendly-poster__ghost--s2 { font-size: 17cqw; }
.friendly-poster__ghost--s3 { font-size: 12.5cqw; }

/* Masthead */
.friendly-poster__masthead {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.6cqw;
  margin: 0 2.6cqw;
  border-bottom: 1px solid var(--hair);
}

.friendly-poster__wordmark {
  font: 2.3cqw/1 var(--display);
  letter-spacing: -0.01em;
}

.friendly-poster__wordmark span {
  color: var(--orange);
}

.friendly-poster__competition,
.friendly-poster__round {
  overflow: hidden;
  font-size: 1cqw;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.friendly-poster__competition {
  color: var(--muted);
}

.friendly-poster__round {
  max-width: 24cqw;
  text-align: right;
}

/* Hero */
.friendly-poster__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 2cqw;
  min-height: 0;
  padding: 1.2cqw 2.6cqw 0.6cqw;
}

.friendly-poster__team {
  display: grid;
  justify-items: start;
  min-width: 0;
}

.friendly-poster__team--home {
  order: -1;
}

.friendly-poster__team--away {
  justify-items: end;
  text-align: right;
}

.friendly-poster__crest {
  --crest-cut: polygon(20% 0, 80% 0, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0 80%, 0 20%);
  position: relative;
  display: grid;
  place-items: center;
  width: 7.4cqw;
  height: 7.4cqw;
  margin-bottom: 0.7cqw;
  filter: drop-shadow(0 0 0.7cqw rgba(255, 105, 53, 0.45)) drop-shadow(0 0.5cqw 0.8cqw rgba(0, 0, 0, 0.55));
}

.friendly-poster__crest::before,
.friendly-poster__crest::after {
  position: absolute;
  clip-path: var(--crest-cut);
  content: '';
}

.friendly-poster__crest::before {
  inset: 0;
  background: linear-gradient(150deg, var(--cream), var(--orange) 55%, rgba(255, 105, 53, 0.35));
}

.friendly-poster__crest::after {
  inset: 0.14cqw;
  background: radial-gradient(circle at 50% 35%, rgba(241, 236, 222, 0.16), transparent 70%), linear-gradient(180deg, #173222, var(--night));
}

.friendly-poster__crest img {
  position: relative;
  z-index: 1;
  width: 70%;
  height: 70%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 0.45cqw rgba(241, 236, 222, 0.55)) drop-shadow(0 0.3cqw 0.3cqw rgba(0, 0, 0, 0.6));
}

.friendly-poster__team-role {
  margin-bottom: 0.5cqw;
  padding: 0.15cqw 0.6cqw 0.15cqw 0.8cqw;
  background: var(--orange);
  color: var(--ink);
  font-size: 0.9cqw;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.friendly-poster__team-abbr {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-family: var(--display);
  font-size: 6.8cqw;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-shadow: 0 0.4cqw 1.6cqw rgba(0, 0, 0, 0.55);
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.friendly-poster__team-name {
  display: block;
  max-width: 100%;
  margin-top: 0.4cqw;
  overflow: hidden;
  color: rgba(241, 236, 222, 0.82);
  font: italic 1.35cqw/1.2 var(--serif);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Centre: rotating matchday ring (scheduled) */
.friendly-poster__ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 13cqw;
  height: 13cqw;
}

.friendly-poster__ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: friendly-poster-spin 40s linear infinite;
}

.friendly-poster__ring text {
  fill: var(--cream);
  font: 700 11.5px var(--sans);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.friendly-poster__vs {
  color: var(--orange);
  font: 5.6cqw/1 var(--display);
}

.friendly-poster__vs small {
  display: block;
  margin-top: -0.4cqw;
  color: var(--cream);
  font: italic 1.1cqw var(--serif);
  text-align: center;
}

/* Centre: split-flap score */
.friendly-poster__score {
  display: grid;
  justify-items: center;
  gap: 0.7cqw;
}

.friendly-poster__score-label {
  font-size: 0.95cqw;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.friendly-poster__tiles {
  --tw: 6.4cqw;
  --th: 9cqw;
  --tf: 8.6cqw;
  display: flex;
  align-items: center;
  gap: 1cqw;
}

.friendly-poster__tiles--2 { --tw: 4.7cqw; --th: 7.4cqw; --tf: 7cqw; }
.friendly-poster__tiles--3 { --tw: 3.5cqw; --th: 6cqw; --tf: 5.6cqw; }

.friendly-poster__tile-group {
  display: flex;
  gap: 0.35cqw;
}

.friendly-poster__tile {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--tw);
  height: var(--th);
  border-radius: 0.45cqw;
  background: linear-gradient(#173222 0 50%, #10261a 50%);
  box-shadow: inset 0 -0.2cqw 0 rgba(0, 0, 0, 0.45), 0 0.6cqw 1.4cqw rgba(0, 0, 0, 0.5);
  font: var(--tf)/1 var(--display);
}

.friendly-poster__tile::after {
  position: absolute;
  top: calc(50% - 0.06cqw);
  right: 0;
  left: 0;
  height: 0.12cqw;
  background: var(--night);
  content: '';
}

.friendly-poster__tiles-sep {
  width: 1.4cqw;
  height: 0.3cqw;
  background: var(--orange);
}

.friendly-poster__pen-score {
  display: flex;
  align-items: center;
  gap: 0.5cqw;
  font-size: 0.9cqw;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.friendly-poster__pen-score .friendly-poster__tile {
  --tw: 2.4cqw;
  --th: 3.3cqw;
  --tf: 3cqw;
  background: var(--orange);
  box-shadow: none;
  color: var(--ink);
}

.friendly-poster__pen-score .friendly-poster__tile::after {
  background: rgba(17, 37, 26, 0.35);
}

.friendly-poster__verdict {
  max-width: 26cqw;
  overflow: hidden;
  padding: 0.45cqw 1.6cqw;
  background: var(--cream);
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
  color: var(--ink);
  font-size: 1.05cqw;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.friendly-poster__verdict--long {
  font-size: 0.9cqw;
  letter-spacing: 0.08em;
}

.friendly-poster__verdict--neutral {
  background: transparent;
  box-shadow: inset 0 0 0 0.1cqw var(--cream);
  color: var(--cream);
}

/* Events: minute timeline + scorer columns, fixed height */
.friendly-poster__events {
  display: grid;
  grid-template-rows: 4.4cqw minmax(0, 1fr);
  min-height: 0;
  padding: 0 2.6cqw 0.8cqw;
}

.friendly-poster__timeline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1.2cqw;
}

.friendly-poster__timeline-end {
  color: var(--muted);
  font: 1.3cqw/1 var(--display);
  letter-spacing: 0.06em;
}

.friendly-poster__axis {
  position: relative;
  height: 100%;
}

.friendly-poster__axis::before {
  position: absolute;
  top: calc(50% - 0.07cqw);
  right: 0;
  left: 0;
  height: 0.14cqw;
  background: rgba(241, 236, 222, 0.35);
  content: '';
}

.friendly-poster__tick {
  position: absolute;
  top: 50%;
  width: 0.1cqw;
  height: 0.7cqw;
  background: rgba(241, 236, 222, 0.35);
  transform: translate(-50%, -50%);
}

.friendly-poster__tick--major {
  height: 1.6cqw;
  background: rgba(241, 236, 222, 0.55);
}

.friendly-poster__mark {
  position: absolute;
  top: 50%;
}

.friendly-poster__mark i {
  position: absolute;
  top: 0;
  left: 0;
  width: 0.95cqw;
  height: 0.95cqw;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.friendly-poster__mark--home i {
  background: var(--orange);
  box-shadow: 0 0 0 0.25cqw rgba(255, 105, 53, 0.25);
}

.friendly-poster__mark--away i {
  background: var(--night);
  box-shadow: inset 0 0 0 0.2cqw var(--cream);
}

.friendly-poster__mark b {
  position: absolute;
  left: 0;
  font-size: 0.95cqw;
  font-weight: 800;
  white-space: nowrap;
  transform: translateX(-50%);
}

.friendly-poster__mark--home b {
  bottom: 0.8cqw;
  color: var(--orange);
}

.friendly-poster__mark--away b {
  top: 0.8cqw;
}

.friendly-poster__timeline--dense .friendly-poster__mark b {
  display: none;
}

.friendly-poster__timeline--dense .friendly-poster__mark i {
  width: 0.7cqw;
  height: 0.7cqw;
}

.friendly-poster__pen-dots {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0.3cqw 0.8cqw;
  padding-left: 1.2cqw;
  border-left: 1px solid var(--hair);
}

.friendly-poster__pen-dots-label {
  grid-row: span 2;
  color: var(--orange);
  font: 1.6cqw/1 var(--display);
}

.friendly-poster__pen-row {
  display: flex;
  gap: calc(var(--dot) * 0.45);
}

.friendly-poster__pen-row i {
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.12cqw currentColor;
}

.friendly-poster__pen-row i.is-scored {
  background: currentColor;
}

.friendly-poster__pen-row--home {
  color: var(--orange);
}

.friendly-poster__pen-row--away {
  color: var(--cream);
}

.friendly-poster__scorers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4cqw;
  min-height: 0;
  padding-top: 0.7cqw;
  overflow: hidden;
  border-top: 1px solid var(--hair);
}

.friendly-poster__side {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.4cqw;
  min-width: 0;
  min-height: 0;
}

.friendly-poster__side-head {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.85cqw;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.friendly-poster__side ol {
  display: grid;
  align-content: start;
  gap: 0.3cqw 1.6cqw;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.friendly-poster__scorers--normal ol {
  font-size: 1.3cqw;
}

.friendly-poster__scorers--compact ol {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(6, auto);
  grid-auto-flow: column;
  row-gap: 0.15cqw;
  font-size: 0.96cqw;
}

.friendly-poster__goal {
  display: grid;
  grid-template-columns: 3.4em minmax(0, 1fr);
  align-items: baseline;
  gap: 0.5em;
  min-width: 0;
  line-height: 1.32;
}

.friendly-poster__side--away .friendly-poster__goal {
  grid-template-columns: minmax(0, 1fr) 3.4em;
  text-align: right;
}

.friendly-poster__side--away .friendly-poster__goal-min {
  order: 2;
}

.friendly-poster__goal-min {
  color: var(--orange);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.friendly-poster__goal-who {
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friendly-poster__goal-who small {
  margin-left: 0.45em;
  color: var(--muted);
  font-size: 0.86em;
  font-weight: 400;
}

.friendly-poster__goal--pen {
  margin: 0 -0.4em;
  padding: 0.1em 0.4em;
  background: rgba(255, 105, 53, 0.14);
}

.friendly-poster__goal--none .friendly-poster__goal-who,
.friendly-poster__goal--more .friendly-poster__goal-who {
  color: var(--muted);
  font: italic 400 1em var(--serif);
}

.friendly-poster__goal--more .friendly-poster__goal-min {
  color: var(--muted);
}

/* Scheduled: editorial billing line instead of events */
.friendly-poster__billing {
  display: grid;
  align-content: center;
  gap: 0.6cqw;
  min-width: 0;
  padding: 0 2.6cqw 0.6cqw;
}

.friendly-poster__billing-label {
  overflow: hidden;
  color: var(--orange);
  font-size: 0.95cqw;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.friendly-poster__billing h3 {
  display: grid;
  margin: 0;
  color: var(--cream);
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.friendly-poster__billing h3 span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friendly-poster__billing h3 em {
  color: var(--orange);
  font: italic 400 0.32em/1.2 var(--serif);
}

.friendly-poster__billing--s1 h3 { font-size: 4.6cqw; }
.friendly-poster__billing--s2 h3 { font-size: 3.6cqw; }
.friendly-poster__billing--s3 h3 { font-size: 2.8cqw; }
.friendly-poster__billing--s4 h3 { font-size: 2.3cqw; }

/* Sponsors: fixed-height strip, logos optically normalised */
.friendly-poster__sponsors {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  gap: 2.2cqw;
  min-height: 0;
  padding: 0.9cqw 2.6cqw 0.8cqw;
  border-top: 0.14cqw solid var(--orange);
  background: var(--night);
}

.friendly-poster__sp-group {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.45cqw;
  min-width: 0;
  min-height: 0;
}

.friendly-poster__sp-group + .friendly-poster__sp-group {
  padding-left: 2.2cqw;
  border-left: 1px solid var(--hair);
}

.friendly-poster__sp-label {
  color: var(--muted);
  font-size: 0.78cqw;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.friendly-poster__sp-logos {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-rows: var(--row-h);
  align-content: center;
  gap: 0.4cqw 1.2cqw;
  min-height: 0;
}

.friendly-poster__sp-logo {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
}

/* Partner logos sit on light tiles so dark brand marks stay readable on the night strip. */
.friendly-poster__sp-logos .friendly-poster__sp-logo {
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  box-sizing: border-box;
  padding: 0.15cqw 0.3cqw;
  border-radius: 0.35cqw;
  background: var(--cream);
  box-shadow: 0 0.25cqw 0.6cqw rgba(0, 0, 0, 0.45);
}

.friendly-poster__sp-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.friendly-poster__sp-logo img.friendly-poster__presenter {
  box-sizing: border-box;
  width: 5.4cqw;
  height: 5.4cqw;
  padding: 0.4cqw;
  border: 0.16cqw solid #fff;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 55%, var(--cream));
  box-shadow:
    0 0 0 0.22cqw var(--orange),
    0 0 1.6cqw rgba(255, 105, 53, 0.55),
    0 0 0.5cqw rgba(255, 255, 255, 0.45);
}

.friendly-poster__sp-fallback {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  padding: 0.2cqw 0.5cqw;
  border: 0.1cqw dashed rgba(17, 37, 26, 0.35);
  color: rgba(17, 37, 26, 0.72);
  font-size: 0.75cqw;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.friendly-poster__sp-more {
  color: var(--ink);
  font-size: 0.85cqw;
  font-weight: 800;
  white-space: nowrap;
}

.friendly-poster__sponsors--solo {
  align-items: center;
}

.friendly-poster__sp-tagline {
  justify-self: end;
  margin: 0;
  color: rgba(241, 236, 222, 0.8);
  font: italic 2cqw var(--serif);
}

/* Ticket stub */
.friendly-poster__stub {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  min-height: 0;
  padding: 2.4cqw 3.4cqw 2.2cqw 2.8cqw;
  background: radial-gradient(ellipse at 30% 0%, #f8f0de, transparent 70%), var(--paper);
  color: var(--ink);
  -webkit-mask: radial-gradient(circle at 0 0, transparent 1.6cqw, #000 1.65cqw) top / 100% 51% no-repeat, radial-gradient(circle at 0 100%, transparent 1.6cqw, #000 1.65cqw) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle at 0 0, transparent 1.6cqw, #000 1.65cqw) top / 100% 51% no-repeat, radial-gradient(circle at 0 100%, transparent 1.6cqw, #000 1.65cqw) bottom / 100% 51% no-repeat;
}

.friendly-poster__stub::before {
  position: absolute;
  top: 2.4cqw;
  bottom: 2.4cqw;
  left: 0.5cqw;
  width: 0.32cqw;
  background: radial-gradient(circle, var(--night) 46%, transparent 52%) 0 0 / 0.32cqw 1.05cqw repeat-y;
  content: '';
}

.friendly-poster__stub-top {
  display: flex;
  justify-content: space-between;
  gap: 1cqw;
  font-size: 0.8cqw;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.friendly-poster__stub-date {
  margin-top: 1.5cqw;
}

.friendly-poster__weekday {
  color: var(--stamp);
  font-size: 1.45cqw;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.friendly-poster__day {
  display: block;
  font: 7.2cqw/1 var(--display);
  letter-spacing: -0.01em;
}

.friendly-poster__year {
  font-size: 1.2cqw;
  font-weight: 700;
  letter-spacing: 0.5em;
}

.friendly-poster__stub-date--empty .friendly-poster__day {
  color: rgba(17, 37, 26, 0.3);
}

.friendly-poster__stub-rule {
  margin: 1.3cqw 0 1cqw;
  border-top: 0.12cqw dashed rgba(17, 37, 26, 0.38);
}

.friendly-poster__stub-row {
  display: grid;
  gap: 0.3cqw;
  min-height: 0;
}

.friendly-poster__stub-label {
  color: rgba(17, 37, 26, 0.6);
  font-size: 0.78cqw;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.friendly-poster__time {
  font: 4.2cqw/1 var(--display);
}

.friendly-poster__venue {
  display: -webkit-box;
  overflow: hidden;
  font-size: 1.3cqw;
  font-weight: 800;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.friendly-poster__stub-note {
  color: rgba(17, 37, 26, 0.62);
  font: italic 1.15cqw/1.2 var(--serif);
}

.friendly-poster__stub-ground {
  align-self: start;
  margin-top: 1.2cqw;
}

.friendly-poster__stub-foot {
  display: grid;
  gap: 0.4cqw;
}

.friendly-poster__stub-code {
  font-size: 0.8cqw;
  font-weight: 800;
  letter-spacing: 0.3em;
}

.friendly-poster__barcode {
  display: flex;
  height: 3cqw;
}

.friendly-poster__barcode i {
  background: var(--ink);
}

.friendly-poster__barcode i:nth-child(even) {
  background: transparent;
}

.friendly-poster__stub-side {
  position: absolute;
  top: 2.4cqw;
  right: 0.9cqw;
  bottom: 2.4cqw;
  overflow: hidden;
  color: rgba(17, 37, 26, 0.5);
  font-size: 0.72cqw;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  writing-mode: vertical-rl;
}

/* Rubber stamp over the stub once the match is played */
.friendly-poster__stamp {
  position: absolute;
  right: 3.4cqw;
  bottom: 3.6cqw;
  z-index: 7;
  width: 12cqw;
  height: 12cqw;
  color: var(--stamp);
  filter: url(#friendly-poster-rough);
  mix-blend-mode: multiply;
  opacity: 0.88;
  pointer-events: none;
  transform: rotate(-16deg);
}

.friendly-poster__stamp svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.friendly-poster__stamp text {
  fill: currentColor;
}

.friendly-poster__stamp-ring {
  font: 800 13px var(--sans);
  letter-spacing: 1px;
}

.friendly-poster__stamp-big {
  font: 58px var(--display);
}

.friendly-poster__stamp-small {
  font: 800 12px var(--sans);
  letter-spacing: 2px;
}

@keyframes friendly-poster-spin {
  to {
    transform: rotate(360deg);
  }
}

.friendly-poster.search-hidden {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .friendly-poster,
  .friendly-poster__canvas::after,
  .friendly-poster__ring svg {
    animation: none;
    transition: none;
  }
}
