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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f6fa;
  color: #2d3436;
  min-height: 100vh;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.subtitle {
  color: #636e72;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* Input section */
.input-section {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-bottom: 20px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.input-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #636e72;
}

.input-group input {
  border: 1.5px solid #dfe6e9;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1rem;
  transition: border-color 0.2s;
  width: 100%;
  appearance: none;
}

.input-group input:focus {
  outline: none;
  border-color: #0984e3;
}

.button-row {
  display: flex;
  gap: 10px;
}

.btn-primary {
  flex: 1;
  background: #0984e3;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #0773c6;
}

.btn-secondary {
  background: #dfe6e9;
  color: #636e72;
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #b2bec3;
}

/* Result section */
.result-section {
  margin-bottom: 20px;
}

.result-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  text-align: center;
}

.result-card.over {
  border: 2px solid #d63031;
}

.size-badge {
  font-size: 2.8rem;
  font-weight: 800;
  color: #0984e3;
  margin-bottom: 6px;
  line-height: 1;
}

.result-card.over .size-badge {
  color: #d63031;
}

.size-detail {
  font-size: 0.9rem;
  color: #636e72;
  margin-bottom: 16px;
}

.price-label {
  font-size: 0.8rem;
  color: #b2bec3;
  margin-bottom: 8px;
  font-weight: 600;
}

.price-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f5f6fa;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.price-row.current {
  background: #dfe6ff;
  font-weight: 700;
  font-size: 1rem;
}

.price-row .region {
  color: #636e72;
}

.price-row .price {
  color: #0984e3;
  font-weight: 600;
}

.price-row.current .price {
  color: #2d3436;
}

.note {
  font-size: 0.78rem;
  color: #b2bec3;
  text-align: left;
}

/* Size chart */
.size-chart {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.size-chart h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #636e72;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

thead th {
  background: #f5f6fa;
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  color: #636e72;
  border-bottom: 2px solid #dfe6e9;
}

tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid #f0f0f0;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr.highlight {
  background: #eff5ff;
  font-weight: 700;
}

@media (max-width: 480px) {
  .input-row {
    grid-template-columns: 1fr 1fr;
  }

  h1 {
    font-size: 1.3rem;
  }

  .size-badge {
    font-size: 2.2rem;
  }

  thead th, tbody td {
    padding: 6px 6px;
    font-size: 0.82rem;
  }
}
