/* =========================================================
   LOCAL FONTS
========================================================= */

@font-face {
  font-family: "Bebas Neue";
  src: url("../fonts/bebas-neue-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}


/* =========================================================
   GLOBAL
========================================================= */

:root {
  --black: #060606;
  --panel: #0c0c0c;
  --cream: #f2eee5;
  --yellow: #f3c500;
  --line: #262626;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--black);
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}


/* =========================================================
   DASHBOARD
========================================================= */

.dashboard {
  width: 100%;
  min-height: 100vh;
  height: 100vh;

  display: grid;
  grid-template-columns: 1.05fr .95fr;
  grid-template-rows: 1fr 96px;

  overflow: hidden;

  background: #050505;
}


/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;
  min-width: 0;

  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,.18),
      rgba(0,0,0,.05) 60%,
      rgba(0,0,0,.25)
    ),
    url("../images/hero-home.jpg") center / cover no-repeat,
    radial-gradient(
      circle at 50% 30%,
      #2d2d2d,
      #080808 70%
    );

  border-right: 1px solid var(--line);
}

.club-logo {
  position: absolute;
  left: 38px;
  top: 28px;

  width: 190px;
  max-height: 104px;

  object-fit: contain;
  object-position: left top;

  z-index: 2;
}

.hero-copy {
  position: absolute;
  left: 54px;
  bottom: 58px;

  width: calc(100% - 108px);
  max-width: 590px;
}

.kicker {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: clamp(58px, 5vw, 106px);
  font-weight: 900;

  line-height: .78;
  letter-spacing: -.025em;
}

.competition {
  margin-top: 34px;

  color: var(--yellow);

  font-size: 20px;
  line-height: 1;
  letter-spacing: .05em;
}

.date {
  margin-top: 16px;

  font-family: "Big Shoulders Display", sans-serif;
  font-size: 52px;
  font-weight: 900;

  line-height: 1;
  text-transform: uppercase;
}

.time {
  margin-top: 4px;

  color: #fff;

  font-size: 34px;
  line-height: 1;
}

.location {
  margin-top: 9px;

  color: #fff;

  font-size: 20px;
  line-height: 1;
}

.matchup {
  margin-top: 28px;
  padding-top: 18px;

  border-top: 1px solid rgba(243,197,0,.55);

  font-family: "Big Shoulders Display", sans-serif;
  font-size: clamp(42px, 2.8vw, 58px);
  font-weight: 900;

  line-height: .92;
  letter-spacing: -.02em;

  text-transform: uppercase;
}

.matchup span {
  display: block;

  margin: 10px 0;

  color: var(--yellow);

  font-family: "Bebas Neue", sans-serif;
  font-size: 24px;
  font-weight: 400;
}


/* =========================================================
   LAST RESULT
========================================================= */

.last-result {
  display: flex;
  flex-direction: column;
  gap: 4px;

  max-width: 520px;

  margin-top: 22px;
  padding-top: 14px;

  border-top: 1px solid rgba(255,255,255,.16);

  text-transform: uppercase;
}

.last-result small {
  color: #8c8c8c;

  font-size: 13px;
  letter-spacing: .12em;
}

.last-result strong {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 23px;
  font-weight: 800;

  line-height: 1.05;
}


/* =========================================================
   MATCHDAY MODE
========================================================= */

.matchday-mode .kicker {
  color: var(--yellow);
}

.matchday-mode .hero {
  box-shadow: inset 0 0 0 1px rgba(243,197,0,.12);
}


/* =========================================================
   TILES
========================================================= */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr auto;

  gap: 12px;
  padding: 18px;

  min-width: 0;
  min-height: 0;
}

.tile {
  position: relative;

  min-width: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 24px;

  overflow: hidden;

  border: 1px solid #343434;

  background: #090909;

  transition:
    transform .2s ease,
    border-color .2s ease;
}

.tile:hover {
  transform: translateY(-3px);
  border-color: #656565;
}

.tile > span:not(.tile-arrow) {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: clamp(30px, 2.35vw, 45px);
  font-weight: 900;

  line-height: .9;
}

.tile small {
  margin-top: 12px;

  color: #9e9e9e;

  font-size: 15px;
  letter-spacing: .04em;
}

.tile.accent {
  color: #050505;

  border-color: var(--yellow);
  background: var(--yellow);
}

.tile.accent small {
  color: #050505;
}


/* =========================================================
   ROBUST ARROWS
   Uses CSS mask instead of ↗ emoji rendering
========================================================= */

.tile b {
  position: absolute;
  right: 20px;
  bottom: 16px;

  width: 28px;
  height: 28px;

  display: block;

  font-size: 0;

  color: var(--yellow);

  background: currentColor;

  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 18L18 6M9 6H18V15' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E")
    center / contain no-repeat;

  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 18L18 6M9 6H18V15' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.tile.accent b {
  color: #050505;
}


/* =========================================================
   STATEMENT / FEATURE
========================================================= */

.statement {
  grid-column: 1 / -1;

  min-height: 118px;

  justify-content: center;

  color: var(--yellow);

  font-style: italic;
}

.statement > span:not(.tile-arrow) {
  font-size: clamp(26px, 1.75vw, 37px);
  line-height: 1.05;
}

.feature-active {
  position: relative;

  justify-content: flex-end;

  overflow: hidden;
}

.feature-active .feature-type {
  position: absolute;
  left: 24px;
  top: 18px;

  margin: 0;

  color: var(--yellow);

  letter-spacing: .14em;
}

.feature-active .feature-subtitle {
  margin-top: 8px;

  color: #d7d7d7;
}


/* =========================================================
   DASHBOARD FOOTER
========================================================= */

.footer {
  grid-column: 1 / -1;

  min-height: 96px;

  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;

  padding: 12px 42px;

  border-top: 1px solid #2a2a2a;

  background: #050505;
}

.footer-text {
  display: flex;
  flex-direction: column;
}

.footer-text small,
.built small {
  color: #888;

  font-size: 12px;
  letter-spacing: .1em;
}

.footer-text strong {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 27px;

  letter-spacing: .02em;
}

.footer-logo {
  justify-self: center;

  max-width: 150px;
  max-height: 58px;
}

.built {
  justify-self: end;

  display: flex;
  align-items: center;
  gap: 14px;
}

.built img {
  width: 118px;
  max-height: 42px;

  object-fit: contain;
}


/* =========================================================
   FOOTER LEGAL
========================================================= */

.footer-legal {
  grid-column: 1 / -1;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;

  margin-top: 6px;

  color: #777;

  font-size: 12px;
  letter-spacing: .06em;
}

.footer-legal a {
  color: #777;

  transition: color .2s ease;
}

.footer-legal a:hover {
  color: #fff;
}

.footer-legal span {
  opacity: .5;
}


/* =========================================================
   SPIELE PAGE
========================================================= */

.games-page {
  min-height: 100vh;

  background: var(--cream);
  color: #0a0a0a;
}


/* =========================================================
   SPIELE HEADER
========================================================= */

.games-header {
  position: sticky;
  top: 0;
  z-index: 10;

  height: 72px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  padding: 0 30px;

  background: #050505;
  color: #fff;
}

.games-header > a:first-child {
  justify-self: start;
}

.games-header > span {
  justify-self: end;
}

.games-header-logo {
  width: 118px;
  max-height: 48px;

  object-fit: contain;
}


/* =========================================================
   SPIELE CONTENT
========================================================= */

.games-wrap {
  width: 100%;
  max-width: 1460px;

  margin: 0 auto;
  padding: 58px 32px 90px;
}

.games-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;

  padding-bottom: 25px;

  border-bottom: 1px solid #111;
}

.games-title h1 {
  margin: 18px 0 0;

  font-family: "Big Shoulders Display", sans-serif;
  font-size: 150px;
  font-weight: 900;

  line-height: .8;
}

.kicker.dark {
  color: #777;

  font-size: 22px;
  letter-spacing: .12em;
}

.games-title p {
  max-width: 430px;

  margin: 0;

  color: #555;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;

  line-height: 1.5;
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-top: 45px;
}

.section-head h2 {
  margin: 0;

  font-family: "Big Shoulders Display", sans-serif;
  font-size: 46px;
  font-weight: 900;

  line-height: 1;
}

.games-list {
  border-top: 1px solid #111;
}


/* =========================================================
   GAME ROW DESKTOP
========================================================= */

.game-row {
  display: grid;
  grid-template-columns: 185px 1fr 220px;
  align-items: center;

  gap: 25px;

  padding: 20px 0;

  border-bottom: 1px solid rgba(0,0,0,.2);
}

.game-meta {
  display: flex;
  flex-direction: column;
}

.game-meta b {
  font-size: 16px;
}

.game-row small {
  margin-top: 5px;

  color: #777;

  font-size: 12px;
}

.teams {
  display: grid;
  grid-template-columns: 1fr 135px 1fr;
  align-items: center;

  gap: 20px;

  font-family: "Big Shoulders Display", sans-serif;
  font-size: 30px;
  font-weight: 800;

  line-height: 1;
}

.teams span:last-child {
  text-align: right;
}

.score {
  text-align: center;

  font-size: 31px;

  line-height: 1;
  white-space: nowrap;
}

.game-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;

  gap: 10px;
}

.venue {
  color: #666;

  text-align: right;
}

.match-post {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 11px;

  border: 1px solid #151515;

  background: #111;
  color: #fff;

  font-size: 13px;
  letter-spacing: .04em;

  white-space: nowrap;

  transition:
    background .2s ease,
    color .2s ease,
    border-color .2s ease;
}

.match-post:hover {
  border-color: var(--yellow);

  background: var(--yellow);
  color: #050505;
}

.results {
  margin-top: 60px;
}


/* =========================================================
   SPIELE LEGAL FOOTER
========================================================= */

.games-legal {
  display: flex;
  justify-content: flex-end;
  gap: 10px;

  margin-top: 70px;
  padding-top: 24px;

  border-top: 1px solid rgba(0,0,0,.2);

  color: #777;

  font-size: 12px;
  letter-spacing: .06em;
}

.games-legal a {
  color: #777;
}

.games-legal a:hover {
  color: #111;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

  .dashboard {
    height: auto;
    min-height: 100vh;

    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;

    overflow: visible;
  }

  .hero {
    min-height: 72vh;

    border-right: 0;
  }

  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .statement {
    grid-column: 1 / -1;
  }

  .footer {
    height: auto;

    grid-template-columns: 1fr;

    gap: 18px;

    text-align: left;
  }

  .footer-logo,
  .built {
    justify-self: start;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

  /* -------------------------------------------------------
     DASHBOARD
  ------------------------------------------------------- */

  .dashboard {
    display: block;

    height: auto;
    min-height: 100vh;

    overflow: visible;
  }


  /* HERO */

  .hero {
    position: relative;

    width: 100%;
    min-height: 100svh;

    padding: 158px 24px 42px;

    border-right: 0;

    background-position: center center;
  }

  .club-logo {
    left: 24px;
    top: 26px;

    width: 92px;
    max-height: 90px;
  }

  .hero-copy {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;

    width: 100%;
    max-width: none;
  }

  .hero .kicker {
    font-size: clamp(64px, 17vw, 84px);

    line-height: .84;
    letter-spacing: -.025em;
  }

  .competition {
    margin-top: 30px;

    font-size: 17px;

    line-height: 1.05;
  }

  .date {
    margin-top: 18px;

    font-size: 50px;

    line-height: .95;
  }

  .time {
    margin-top: 7px;

    font-size: 30px;

    line-height: 1;
  }

  .location {
    margin-top: 11px;

    font-size: 17px;

    line-height: 1;
  }

  .matchup {
    margin-top: 28px;
    padding-top: 20px;

    font-size: clamp(36px, 10vw, 48px);

    line-height: .95;
  }

  .matchup span {
    margin: 9px 0;

    font-size: 20px;
  }

  .last-result {
    margin-top: 23px;
    padding-top: 15px;
  }

  .last-result small {
    font-size: 12px;
  }

  .last-result strong {
    font-size: 20px;
  }


  /* -------------------------------------------------------
     DASHBOARD TILES
  ------------------------------------------------------- */

  .tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 10px;
    padding: 12px;
  }

  .tile {
    min-height: 180px;

    padding: 20px;
  }

  .tile > span:not(.tile-arrow) {
    font-size: clamp(27px, 7.5vw, 37px);

    line-height: .92;
  }

  .tile small {
    margin-top: 9px;

    font-size: 12px;
  }

  .tile b {
    right: 17px;
    bottom: 16px;

    width: 26px;
    height: 26px;
  }


  /* STATEMENT */

  .statement {
    grid-column: 1 / -1;

    min-height: 135px;
  }

  .statement > span:not(.tile-arrow) {
    font-size: clamp(24px, 6.5vw, 34px);

    line-height: 1.05;
  }


  /* -------------------------------------------------------
     DASHBOARD FOOTER
  ------------------------------------------------------- */

  .footer {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 26px;

    padding: 30px 24px;
  }

  .footer-text {
    grid-column: 1 / -1;
  }

  .footer-text strong {
    font-size: 24px;
  }

  .footer-logo {
    justify-self: start;

    width: 130px;
  }

  .built {
    justify-self: end;
    align-self: center;

    gap: 8px;
  }

  .built img {
    width: 95px;
  }

  .footer-legal {
    grid-column: 1 / -1;

    justify-content: flex-start;

    margin-top: 4px;
  }


  /* =====================================================
     SPIELE MOBILE
  ===================================================== */

  .games-header {
    height: 108px;

    grid-template-columns: 1fr auto 1fr;

    padding: 0 20px;
  }

  .games-header > a:first-child {
    justify-self: start;

    font-size: 15px;

    white-space: nowrap;
  }

  .games-header-logo {
    width: 92px;
    max-height: 92px;

    object-fit: contain;
  }

  .games-header > span {
    justify-self: end;

    font-size: 15px;

    line-height: 1.05;

    text-align: right;
    white-space: nowrap;
  }


  /* PAGE INTRO */

  .games-wrap {
    width: 100%;
    max-width: none;

    padding: 52px 24px 80px;
  }

  .games-title {
    display: block;

    padding-bottom: 38px;
  }

  .games-title .kicker.dark {
    font-size: 22px;

    line-height: 1;
    letter-spacing: .1em;
  }

  .games-title h1 {
    margin: 14px 0 26px;

    font-size: 88px;

    line-height: .82;
  }

  .games-title p {
    max-width: 100%;

    margin: 0;

    font-size: 16px;

    line-height: 1.45;
  }


  /* SECTION HEAD */

  .section-head {
    align-items: flex-end;

    margin-top: 42px;
    padding-bottom: 8px;
  }

  .section-head h2 {
    font-size: 42px;

    line-height: .9;
  }

  .section-head span {
    font-size: 18px;

    line-height: 1;
  }


  /* GAME */

  .game-row {
    display: block;

    padding: 28px 0 32px;
  }

  .game-meta {
    margin-bottom: 25px;
  }

  .game-meta b {
    font-size: 19px;

    line-height: 1;
  }

  .game-row small {
    display: block;

    margin-top: 7px;

    font-size: 15px;

    line-height: 1.2;
    letter-spacing: .07em;
  }


  /* TEAM / SCORE / TEAM */

  .teams {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 11px;

    font-family: "Big Shoulders Display", sans-serif;
    font-weight: 900;
  }

  .teams span,
  .teams span:last-child {
    width: 100%;

    font-size: 31px;

    line-height: 1;

    text-align: left;
  }

  .score {
    width: 100%;

    font-size: 25px;

    line-height: 1;

    text-align: left;

    white-space: nowrap;
  }


  /* LOCATION + REPORT */

  .game-actions {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 14px;

    margin-top: 25px;
  }

  .venue {
    color: #666;

    font-size: 16px;

    line-height: 1.15;
    letter-spacing: .05em;

    text-align: left;
  }

  .match-post {
    padding: 10px 13px;

    font-size: 13px;
  }

  .results {
    margin-top: 50px;
  }

  .games-legal {
    justify-content: flex-start;

    margin-top: 50px;
  }
}