* {
  font-family: 'Gabarito', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body { height: 100%; }

body {
  background-color: #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100dvh;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 20px;
}

section {
  background-color: #ddd;
  padding: 40px 50px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  width: min(100%, 960px);
}

.tabs {
  width: min(100%, 960px);
  background: #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  padding: 0;
}

.tab-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #ccc;
  gap: 0;
}

.tab-controls label {
  text-align: center;
  padding: 14px 10px;
  cursor: pointer;
  font-weight: 700;
  border-right: 1px solid #999;
  user-select: none;
}

.tab-controls label:last-child { border-right: 0; }

.tab-content { padding: 24px 28px; }

input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }

#tab-scores:checked ~ .tab-controls label[for="tab-scores"],
#tab-stats:checked  ~ .tab-controls label[for="tab-stats"] {
  background: #ddd;
}

.panel { display: none; }
#tab-scores:checked ~ .tab-content .panel.scores { display: block; }
#tab-stats:checked  ~ .tab-content .panel.stats  { display: block; }

.table { width: min(100%, 960px); }

table {
  border-collapse: collapse;
  width: 100%;
  background-color: #ccc;
  border: 5px solid #333;
  text-align: center;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
  font-size: clamp(16px, 2.2vw, 18px);
  margin: 10px 0;
}

thead th {
  background-color: #aaa;
  font-weight: bold;
  padding: 10px;
  border: 3px solid #333;
}

td { border: 3px solid #333; padding: 10px; }

tbody th {
  font-weight: normal;
  text-align: left;
  padding-left: 10px;
  border: 3px solid #333;
}

tbody tr:nth-child(even) { background-color: #ddd; }

a { color: blue; text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; }

.menu-button {
  background-color: rgba(0, 128, 0, 0.8);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 14px 22px;
  font-size: clamp(16px, 3.5vw, 18px);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-top: 12px;
}

.menu-button:hover { background-color: green; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  width: 100%;
  margin-bottom: 10px;
}

.stat {
  background: #ccc;
  border: 3px solid #333;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  min-width: 0;
}

.stat h3 { font-size: 0.95rem; margin-bottom: 6px; }
.stat p { font-size: clamp(1rem, 4vw, 1.25rem); font-weight: 700; }

@media (max-width: 480px){
  section { padding: 28px 20px; width: 100%; }
  .tab-content { padding: 20px; }
}

@media (min-width: 768px){
  section { padding: 48px 56px; }
}
