* {
  box-sizing: border-box;
}

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

.fixture-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 0.4em;
}


.game-box {
  width: 15vw;
  max-width: 150px; 
  aspect-ratio: 4 / 3; 
  background: #ecdccf;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  font-family: sans-serif;
  text-transform: uppercase;
  color: #ecdccf;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
}

.top-row {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-grow: 1;
  flex-direction: row;
}

.oppo-crest-cell {
  width: 50%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.oppo-crest {
  position: absolute;
  width: 300%; 
  height: auto;
  top: -40%;
  left: -66%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.9;
  transform: rotate(15deg);
}

.comp-icon {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 1.5em;
  height: 1.5em;
  background: #ecdccf;
  border-radius: 5px;
  z-index: 2;
}

.oppo-name {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  line-height: 0.5;
  overflow: hidden;
  white-space: nowrap;
  font-size: 1.25vw;
  padding: 4px 8px;
  flex-grow: 1;
  z-index: 3;
  height: 100%;
}

.round {
  font-weight: 900;
  font-size: 1em;
}

.round-num {
  font-size: 0.8em;
  padding: 4px 8px;
  background: #ecdccf;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 36%;
}

.round-num .label {
  font-size: 0.8em;
  margin-bottom: 2px;
}

.round-num .num {
  font-family: 'Anton', sans-serif;
  font-size: 6vw;
  font-weight: 900;
  line-height: 0.9;
  margin-left: -0.15em;
}

.game-content {
  flex: 1;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

.game-date {
  text-align: center;
  font-size: 0.6em;
  z-index: 3;
  font-weight: 900;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2em;
  max-height: 3em;
}

@media (max-width: 400px) {
  .fixture-grid {
    grid-template-columns: repeat(auto-fit, minmax(45vw, 1fr));
  }
}
