*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Architects Daughter', cursive;
  text-align: center;
  max-width: 80%;
  margin: 0 auto;
}

h1 {
  font-size: 48px;
  letter-spacing: 8px;
  margin-bottom: 12px;
}

.description {
  font-size: 18px;
  color: #555;
}

.btn-play {
  position: relative;
  display: inline-block;
  padding: 16px 48px;
  border: 3px solid #333;
  border-radius: 50px;
  background: white;
  font-family: 'Architects Daughter', cursive;
  font-size: 20px;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s;
  margin-top: 20px;
}

.btn-play:hover::before {
  opacity: 1;
}

.btn-play:hover {
  transform: scale(1.05);
}

/* Question page */
.question-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;

  .question-card {
    max-width: 680px;
    width: 100%;
    text-align: left;
  }

  .question-title {
    font-size: 32px;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-align: center;
  }

  .question-instruction {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 36px;
    text-align: center;
    color: #444;
  }

  .options-table {
    width: 100%;

    .option-row {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 12px 8px;
      border-bottom: 1px solid #eee;
    }

    .col-radio {
      width: 80px;
      text-align: center;
    }

    .option-text {
      flex: 1;
      font-size: 17px;
    }

    .option-radio {
      text-align: center;
      vertical-align: middle;
    }

    input.radio-circle {
      appearance: none;
      -webkit-appearance: none;
      display: inline-block;
      width: 40px;
      height: 40px;
      border: 2px solid #333;
      border-radius: 50%;
      cursor: pointer;
      transition: background 0.2s;
    }

    input.radio-circle.most:checked {
      background: #a8d0b3;
    }

    input.radio-circle.least:checked {
      background: #ecada6;
    }
  }
}

/* Question navigator */
#questions-navigator {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  align-items: center;

  .nav-btn {
    width: 8px;
    height: 8px;
    border: 2px solid #333;
    border-radius: 50%;
    background: white;
    font-family: 'Architects Daughter', cursive;
    font-size: 14px;
    color: #333;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
  }

  .nav-btn.active {
    background: #a8d0b3;
    border-color: #a8d0b3;
    width: 10px;
    height: 10px;
  }
}

.btn {
  display: block;
  margin: 36px auto 0;
  padding: 14px 48px;
  border: 3px solid #333;
  border-radius: 50px;
  background: white;
  font-family: 'Architects Daughter', cursive;
  font-size: 20px;
  color: #333;
  cursor: pointer;
  transition: transform 0.2s;
  width: fit-content;
  text-decoration: none;
}

.btn-next:hover {
  transform: scale(1.05);
}

.error-note {
  color: #e53935;
  font-size: 14px;
  text-align: center;
  margin-top: 16px;
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

.btn-group .btn-next,
.btn-group .btn-back,
.btn-group .btn-submit {
  margin: 0;
}

.btn-back {
  display: block;
  padding: 14px 48px;
  border: 3px solid #333;
  border-radius: 50px;
  background: white;
  font-family: 'Architects Daughter', cursive;
  font-size: 20px;
  color: #333;
  cursor: pointer;
  transition: transform 0.2s;
  width: fit-content;
}

.btn-back:hover {
  transform: scale(1.05);
}

.btn-back:disabled,
.btn-next:disabled {
  opacity: 0.3;
  cursor: default;
  transform: none;
}

/* Result page */
.result-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  gap: 40px;
  width: 100%;

  .result-header h1 {
    font-size: 48px;
    letter-spacing: 8px;
    margin-bottom: 12px;
  }

  .result-description {
    font-size: 18px;
    color: #555;
  }

  .result-error {
    font-size: 20px;
    color: #e53935;
  }

  .result-summary {
    width: 100%;
    max-width: 640px;

    .summary-row {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 24px;
      flex-wrap: wrap;
    }

    .summary-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
    }

    .summary-tag {
      font-size: 13px;
      font-weight: bold;
      letter-spacing: 2px;
      padding: 4px 14px;
      border-radius: 20px;
      text-transform: uppercase;
    }

    .most-tag {
      background: #a8d0b3;
      color: #1a4a2a;
    }

    .least-tag {
      background: #ecada6;
      color: #5a1a14;
    }

    .summary-type {
      font-size: 22px;
      font-weight: bold;
    }

    .summary-divider {
      font-size: 32px;
      color: #ccc;
    }

    .tension-badge {
      border: 2px dashed #f0a500;
      border-radius: 12px;
      padding: 20px 28px;
      text-align: center;
      background: #fffbf0;

      .tension-label {
        display: inline-block;
        font-size: 13px;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: #f0a500;
        margin-bottom: 10px;
      }

      p {
        font-size: 16px;
        color: #444;
        line-height: 1.6;
      }
    }
  }
}

.result-cards {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;

  .disc-card {
    width: 320px;
    border: 3px solid var(--card-color);
    border-radius: 16px;
    overflow: hidden;
    text-align: left;
    padding: 24px 28px;

    .card-header {
      background: var(--card-color);

      .card-role-tag {
        display: inline-block;
        font-size: 12px;
        letter-spacing: 2px;
        text-transform: uppercase;
        background: rgba(255,255,255,0.25);
        padding: 3px 10px;
        border-radius: 20px;
        margin-bottom: 10px;
      }

      .card-type {
        font-size: 56px;
        letter-spacing: 4px;
        margin: 0;
      }

      .card-label {
        font-size: 24px;
        opacity: 0.9;
        margin: 8px;
        text-align: center;
        
      }
    }

    .card-body {
      display: flex;
      flex-direction: column;
      gap: 18px;

      .card-section {
        color: #444;
        font-size: 15px;

        span {
          font-size: 18px;
          color: black;
        }
      }
    }
  }
}
