@font-face {
    font-family: "Eurostile Unicase LT W04 Rg";
    src: url("https://db.onlinewebfonts.com/t/e2aba67a61a20987775ae4a14c15dd81.eot");
    src: url("https://db.onlinewebfonts.com/t/e2aba67a61a20987775ae4a14c15dd81.eot?#iefix") format("embedded-opentype"),
         url("https://db.onlinewebfonts.com/t/e2aba67a61a20987775ae4a14c15dd81.woff2") format("woff2"),
         url("https://db.onlinewebfonts.com/t/e2aba67a61a20987775ae4a14c15dd81.woff") format("woff"),
         url("https://db.onlinewebfonts.com/t/e2aba67a61a20987775ae4a14c15dd81.ttf") format("truetype"),
         url("https://db.onlinewebfonts.com/t/e2aba67a61a20987775ae4a14c15dd81.svg#Eurostile Unicase LT W04 Rg") format("svg");
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
}
body {
  background: #181818;
  color: #fff;
  font-family: "Eurostile Unicase LT W04 Rg", sans-serif;
}

/* Container */
#container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.header {
  text-align: center;
  margin: 20px 0;
}
#logo-container {
  text-align: center;
  margin: 20px auto;
}
#logo {
  width: 180px;
  display: inline-block;
}
.headline {
  font-size: 24px;
  margin: 10px 0;
}

/* Stats Section Grid */
.stats-section {
  margin-bottom: 20px;
}
.stats-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

/* Stat Boxes */
.stat-box {
  border: 1px solid rgba(255,255,255,0.25);
  padding: 15px;
  text-align: center;
}
.stat-title {
  font-size: 10px;
  opacity: 0.5;
  margin-bottom: 8px;
}
/* Allow grid items to shrink below content width */
.stat-box,
.rank-box {
  min-width: 0;
}

/* Truncate overflowing text in .stat-value */
.stat-value {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Rank Box (full-width) */
.rank-box {
  grid-column: 1 / -1;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rank-box .stat-title {
  white-space: pre-line;
  text-align: left;
  font-size: 10px;
  opacity: 0.5;
  line-height: 1.2;
  margin-bottom: 0;
}
.rank-box .stat-number {
  font-size: 1.4em;
  font-weight: bold;
  text-align: center;
}
.rank-box .ordinal-suffix {
  font-size: 0.6em;
  vertical-align: top;
}
.rank-box .stat-subtext {
  font-size: 10px;
  opacity: 0.5;
  text-align: right;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px 0;
}
.back-link {
  color: #fff;
  text-decoration: none;
  font-size: 12px;
}
.back-link:hover {
  opacity: 0.8;
}

/* Responsive */
@media screen and (max-width: 768px) {
  #container { padding: 10px; }
  #logo { width: 140px; margin-bottom: 20px; }
  .headline { font-size: 16px; margin-top: 20px; }
}


/* Games Table styling (common for desktop and mobile) */
.games-table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
    margin-bottom: 20px;
    line-height: normal;
}

.games-table th:nth-child(1),
.games-table td:nth-child(1) {
    width: 60%;
}

.games-table th:nth-child(2),
.games-table td:nth-child(2) {
    width: 40%;
}

.games-table th,
.games-table td {
    padding: 16px 10px;
    text-align: left;
}

.games-table th {
    background-color: #242424;
    border-bottom: 2px solid #A657E7;
    text-align: center;
}

.games-table tr:nth-child(even) {
    background-color: #242424;
}

.games-table tr:nth-child(odd) {
    background-color: #181818;
}

/* Make entire row clickable */
.games-table tbody tr {
    cursor: pointer;
}

/* Make .section-heading match .headline */
.section-heading {
  font-size: 16px;
  text-align: center;
  margin: 60px 0 20px;
}

.games-table th:nth-child(2),
.games-table td:nth-child(2) {
  text-align: right;
}

.games-table th:first-child {
  text-align: left;
}



/* Button row: span full width of grid, then center its contents */
.season-buttons {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem 0 0.8rem;
}

/* Button styling */
.season-buttons button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  padding: 0.5rem 1rem;
  border: 1px solid #A657E7;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: "Eurostile Unicase LT W04 Rg", sans-serif;
  transition: background-color 0.2s;
}

.season-buttons button.active {
  background-color: #A657E7;
}