:root {
  --bg-gradient: linear-gradient(135deg, #2c3e50, #4ca1af);
  --font-sans: Arial, sans-serif;
  --text-light: #e8e8e8;
  --text-main: #fff;
  --highlight: #ffeb3b;
  --hl-shadow: 0 0 10px rgba(255, 235, 59, 0.7), 0 0 20px rgba(255, 235, 59, 0.5);
}
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; width: 100vw; height: 100vh; overflow-x: hidden; overflow-y: auto;
}
body {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-gradient);
  font-family: var(--font-sans);
}

.container {
  display: flex; flex-direction: column; width: 100%; height: 100%;
}

.logo {
  display: block; width: 90vw; max-width: 100%; margin: 1vh auto 0;
}

#scoreboard {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  white-space: nowrap;
  min-width: 0;
  padding: 0 2vw;
}
#player1, #player2 {
  text-align: center;
  color: var(--text-main);
  flex-shrink: 1;
  min-width: 0;
}
#player1 h2, #player2 h2 {
  font-size: clamp(2rem, 2vw, 6rem);
  margin: 0 1vw;
  color: var(--text-light);
  white-space: nowrap;
}

#score1, #score2 {
  font-size: clamp(3rem, 5vw, 8rem);
  color: var(--highlight);
  font-weight: bold;
  text-shadow: var(--hl-shadow);
  margin: 0 1vw;
  flex-shrink: 1;
  min-width: 0;
  line-height: 1;
}

.int {
  font-size: clamp(3rem, 5vw, 12rem);
  line-height: 1;
}

#colon {
  font-size: clamp(3rem, 5vw, 12rem);
  color: var(--highlight);
  font-weight: bold;
  text-shadow: var(--hl-shadow);
  margin: 0 0vw;
}

.dot, .frac {
  font-size: 0.4em;
  margin-left: 0.1rem;
  line-height: 1;
}

.paren {
  font-size: 0.4em;
  margin-left: 0.6rem;
  line-height: 1;
}

#season h3 {
  font-size: clamp(0.75rem, 2.5vw, 3.5rem);
  font-weight: bold;
  color: var(--text-main);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
  margin: 0 0 1vh 2vw;
}

#stats-bar {
  width: calc(100% - 4vw);
  margin: 0 2vw 2vh;
  padding: 0vh 4vw;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(1rem, 2vw, 2.5rem);
  color: white;
}
.player-stat {
  text-align: center;
}
.function-icon-wrapper {
  text-align: center; font-size: clamp(0.5rem, 1vw, 6rem); color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.function-icon {
  width: clamp(40px, 2vw, 10rem);
  transform-origin: bottom center;
  transition: transform 0.3s ease-in-out; cursor: pointer; display: block;
}
.function-icon:hover {
  transform: scale(8);
}