body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #f6f8fc;
  color: #002e6d;
  font-size: 18px;
}
#centerCol {
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
  min-height: 100vh;
  box-sizing: border-box;
  padding: 24px 8px 40px 8px;
  background: #fff;
  box-shadow: 0 4px 22px #002e6d18;
}
h1 {
  font-size: 2.2em;
  margin: 0 0 25px 0;
  text-align: center;
}
#nameField {
  margin-bottom: 20px;
  max-width: 330px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#nameField label {
  text-align: center;
  font-weight: bold;
  color: #003982;
  margin-bottom: 2px;
}
#sarjaTitle {
  margin-top: 30px;
  margin-bottom: 30px;
  font-size: 1.5em;
  text-align: center;
}
.sarjataso-radiot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 auto 30px auto;
  max-width: 480px;
  background: #f6f8fc;
  padding: 16px 6px 18px 6px;
  border-radius: 8px;
}
.sarjataso-radiot label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1.06em;
  background: #fff;
  padding: 13px 7px 13px 8px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid #e0e6ee;
  box-shadow: 0 1px 6px #e0e6ee33;
  transition: background 0.13s, border 0.13s;
  position: relative;
  min-height: 56px;
}
.sarjataso-radiot label:nth-child(even) {
  background: #f2f6fc;
}
.sarjataso-radiot label:hover,
.sarjataso-radiot input[type="radio"]:focus-visible + .sarjatiedot {
  background: #eaf1fb;
  border-color: #b6d1fa;
}
.sarjataso-radiot input[type="radio"] {
  display: none;
}
.sarjataso-radiot label.selected {
  border: 2.5px solid #002e6d;
  background: #eaf1fb !important;
  color: #002e6d;
  font-weight: bold;
}
.sarjatiedot {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-left: 8px;
}
.sarjanimi {
  font-weight: bold;
  font-size: 1.08em;
  display: block;
  line-height: 1.22;
  margin-bottom: 1px;
}
.sarjatasoInfo {
  color: #666;
  font-size: 0.98em;
  font-style: italic;
  line-height: 1.22;
  margin-top: 0;
  margin-bottom: 0;
  display: block;
}
.sarjatasoInfo:empty {
  display: none;
}
.virheviesti {
  color: #d32f2f;
  margin-bottom: 10px;
  font-size: 1em;
  min-height: 1.2em;
  text-align: left;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}
input[aria-invalid="true"] {
  border: 2px solid #d32f2f !important;
  background: #fff6f6;
}
input[type="button"] {
  padding: 13px 26px;
  font-size: 1.23em;
  cursor: pointer;
  background-color: #002e6d;
  color: #fff;
  border: none;
  border-radius: 5px;
  margin-top: 20px;
  transition: background 0.18s, color 0.18s;
}
input[type="button"]:hover {
  background: #fff;
  color: #002e6d;
  border: 1px solid #002e6d;
}
h2 {
  font-size: 1.23em;
  margin-top: 30px;
  margin-bottom: 10px;
  text-align: center;
}
#lopullisetPisteet {
  font-size: 2em;
  font-weight: bold;
  display: block;
  margin: 20px auto;
  color: #002e6d;
}
@media (max-width: 600px) {
  .sarjataso-radiot {
    padding: 2vw 0;
    max-width: 99vw;
  }
  .sarjataso-radiot label {
    font-size: 1.06em;
    padding: 12px 2px 13px 8px;
    border-radius: 8px;
    min-height: 62px;
  }
  .sarjanimi {
    font-size: 1em;
  }
  .sarjatasoInfo {
    font-size: 0.97em;
  }
}
input[type="number"] {
  width: 90px;
  padding: 11px 8px;
  font-size: 1.12em;
  border: 1.5px solid #b6d1fa;
  border-radius: 6px;
  margin: 7px 0 18px 0;
  box-sizing: border-box;
  background: #f6f8fc;
  color: #002e6d;
  transition: border 0.15s, background 0.15s;
}
input[type="number"]:focus {
  border: 2px solid #002e6d;
  background: #fff;
  outline: none;
}
label[for="ika"],
label[for="valmennusvuodet"] {
  display: block;
  margin-top: 6px;
  font-size: 1.04em;
  color: #003982;
  font-weight: bold;
  margin-bottom: 2px;
}
input[type="button"] {
  display: block;
  margin: 20px auto 0 auto;
}
.input-field-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.input-field-group label {
  text-align: center;
}
.input-field-group {
  margin-bottom: 18px;
  width: 100%;
  max-width: 330px;
  margin-left: auto;
  margin-right: auto;
}
#pisteetWrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #b6d1fa;
  border-radius: 15px;
  background: #f2f6fc;
  box-shadow: 0 1px 12px #002e6d11;
  padding: 18px 12px 20px 12px;
  max-width: 360px;
  margin: 26px auto 22px auto;
}
#pisteetWrapper h2 {
  margin: 0 0 8px 0;
  font-size: 1.15em;
}
#lopullisetPisteet {
  font-size: 2.3em;
  font-weight: bold;
  margin: 0 auto;
  color: #002e6d;
  text-align: center;
}
#aiemmatPisteKortit {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 18px;
}
.piste-kortti {
  background: #eaf1fb;
  border: 1.5px solid #b6d1fa;
  border-radius: 13px;
  box-shadow: 0 2px 10px #002e6d13;
  padding: 16px 22px 12px 22px;
  min-width: 180px;
  max-width: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
  font-size: 1em;
}
.piste-kortti h3 {
  font-size: 1.14em;
  color: #003982;
  margin: 0 0 7px 0;
}
.piste-kortti .pistemaara {
  font-size: 1.4em;
  font-weight: bold;
  color: #002e6d;
  margin-top: 6px;
}
.piste-kortti p {
  margin: 0;
  font-size: 0.98em;
}
.choice-radiot {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-bottom: 22px;
}
.choice-label {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid #e0e6ee;
  border-radius: 8px;
  box-shadow: 0 1px 6px #e0e6ee33;
  padding: 13px 24px;
  font-size: 1.14em;
  cursor: pointer;
  transition: background 0.13s, border 0.13s;
  position: relative;
  min-width: 130px;
  justify-content: center;
  font-weight: 500;
  user-select: none;
}
.choice-label input[type="radio"] {
  display: none;
}
.choice-label.selected,
.choice-label:hover,
.choice-label input[type="radio"]:focus-visible + .choice-teksti {
  border: 2.5px solid #002e6d;
  background: #eaf1fb !important;
  font-weight: bold;
}
.choice-teksti {
  display: block;
  padding-left: 2px;
}
.pieni-btn {
  padding: 8px 18px;
  font-size: 1em;
  cursor: pointer;
  background-color: #002e6d;
  color: #fff;
  border: none;
  border-radius: 5px;
  margin-top: 10px;
  transition: background 0.18s, color 0.18s;
}
.pieni-btn:hover {
  background: #fff;
  color: #002e6d;
  border: 1px solid #002e6d;
}
input[type="text"] {
  width: 90%;
  max-width: 330px;
  padding: 11px 8px;
  font-size: 1.12em;
  border: 1.5px solid #b6d1fa;
  border-radius: 6px;
  margin: 7px 0 18px 0;
  box-sizing: border-box;
  background: #f6f8fc;
  color: #002e6d;
  transition: border 0.15s, background 0.15s;
}
input[type="text"]:focus {
  border: 2px solid #002e6d;
  background: #fff;
  outline: none;
}
.sarjataso-radiot label.selected .sarjatasoInfo {
  color: #002e6d;
  font-weight: normal;
}