/* /tools/how-many-points-to-win-catan: answer card, picker, per-game tables. Mobile first. */

.ptw-answer {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 20px;
  align-items: start;
}

/* The big "10 victory points" answer */
.ptw-big {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  color: #2e2018;
}
.ptw-big strong {
  font-size: clamp(72px, 14vw, 104px);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.05em;
  background: #ffb900;
  border-radius: 28px;
  padding: 6px 18px 10px;
}
.ptw-big span {
  font-size: 18px;
  font-weight: 600;
  color: #8b5e3c;
}

/* Quick facts: label left, points right */
.ptw-facts,
.ptw-exp {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.ptw-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid #e5ddd2;
  font-size: 15px;
}
.ptw-facts dt {
  color: #7a6a5c;
}
.ptw-facts dd {
  margin: 0;
  font-weight: 700;
  color: #2e2018;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Picker fields */
.ptw-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ptw-field > span,
.ptw-field legend span {
  font-size: 14px;
  font-weight: 600;
  color: #3b302b;
}
.ptw-field legend {
  padding: 0;
  margin-bottom: 6px;
}
.ptw-field[hidden] {
  display: none;
}
.ptw-select {
  height: 48px;
  padding-right: 36px;
  font-size: 16px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238b5e3c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.ptw-field .nk-seg {
  align-self: flex-start;
  max-width: 100%;
}
.ptw-field .nk-seg input:disabled + span {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Picker result */
.ptw-result {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fbf3df;
}
.ptw-result-pts {
  margin: 0;
  font-size: 48px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #2e2018;
}
[data-out][hidden] {
  display: none;
}

/* One card per game */
.ptw-games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 20px;
  align-items: start;
}
.ptw-game {
  padding: clamp(20px, 3vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ptw-table th[scope='row'] {
  text-align: left;
  padding-left: 0;
  font-weight: 400;
}
.ptw-table td {
  vertical-align: top;
  font-size: 18px;
}
.ptw-row-name {
  display: block;
  font-weight: 600;
  color: #2e2018;
}
.ptw-row-note {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.45;
  color: #7a6a5c;
}

/* Ways to score */
.ptw-ways {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.ptw-way-pts {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #2e2018;
}
.ptw-exp > div {
  padding: 14px 0;
  border-top: 1px solid #e5ddd2;
}
.ptw-exp dt {
  font-weight: 700;
  color: #2e2018;
  margin-bottom: 4px;
}
.ptw-exp dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #7a6a5c;
}
