@charset "UTF-8";

.pyeong-page {
  max-width: 1220px;
  margin: 0 auto;
  padding: 8px 0 42px;
}

.pyeong-page .utility-top {
  padding: 34px 20px 30px;
  text-align: center;
}

.pyeong-page .utility-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fffbeb, #eff6ff);
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.pyeong-page .utility-title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.pyeong-page .utility-desc {
  max-width: 860px;
  margin: 18px auto 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.8;
}

.pyeong-summary-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.pyeong-summary-guide-item {
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.pyeong-summary-guide-item::before {
  content: "";
  display: block;
  width: 38px;
  height: 4px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #2563eb);
}

.pyeong-summary-guide-item strong {
  display: block;
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.pyeong-summary-guide-item span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}

.pyeong-card,
.pyeong-result-card,
.exclusive-area-card,
.pyeong-history-card {
  margin-bottom: 24px;
  padding: 30px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.pyeong-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 26px;
}

.pyeong-card-head h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.pyeong-card-head p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.pyeong-status-badge,
.pyeong-result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fffbeb, #eff6ff);
  color: #92400e;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.pyeong-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 26px;
}

.pyeong-input-box {
  min-width: 0;
}

.pyeong-equals {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  color: #d97706;
  font-size: 30px;
  font-weight: 900;
  user-select: none;
}

.pyeong-page .utility-field-label {
  display: block;
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
}

.pyeong-page .utility-input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pyeong-page .utility-input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.pyeong-page .utility-input::placeholder {
  color: #94a3b8;
}

.quick-area {
  margin-bottom: 26px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}

.pyeong-panel-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.pyeong-panel-head strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.4;
}

.pyeong-panel-head span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}

.quick-group + .quick-group {
  margin-top: 22px;
}

.quick-group-title {
  margin: 0 0 12px;
  color: #92400e;
  font-size: 13px;
  font-weight: 900;
}

.quick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 999px;
  background: #ffffff;
  color: #92400e;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: all 0.18s ease;
}

.quick-btn:hover {
  border-color: rgba(245, 158, 11, 0.36);
  background: #fffbeb;
  transform: translateY(-1px);
}

.pyeong-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 22px;
}

.pyeong-page .utility-btn {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 800;
}

.pyeong-page .utility-btn-primary {
  border-color: #0f172a;
  background: linear-gradient(135deg, #0f172a, #92400e);
  color: #ffffff;
}

.pyeong-page .utility-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(146, 64, 14, 0.22);
}

.pyeong-message-box {
  padding: 20px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 20px;
  background: linear-gradient(135deg, #fffbeb, #eff6ff);
  color: #92400e;
  font-size: 14px;
  line-height: 1.8;
}

.result-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.result-item,
.exclusive-result-item {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
}

.result-item-accent {
  border-color: rgba(245, 158, 11, 0.22);
  background: linear-gradient(135deg, #fffbeb, #eff6ff);
}

.result-label,
.exclusive-result-item span {
  display: block;
  margin-bottom: 12px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.result-item strong,
.exclusive-result-item strong {
  display: block;
  color: #0f172a;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.result-item-accent strong {
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.02em;
}

.result-note {
  margin: 18px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.result-note strong {
  color: #0f172a;
}

.exclusive-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  margin-bottom: 20px;
}

.exclusive-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.exclusive-radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
}

.exclusive-radio:hover {
  border-color: rgba(245, 158, 11, 0.28);
  background: #fffbeb;
  color: #92400e;
}

.exclusive-radio input {
  margin: 0;
  accent-color: #f59e0b;
}

.exclusive-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 20px;
}

.exclusive-result-item {
  background: linear-gradient(135deg, #f8fafc, #ffffff);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-empty {
  padding: 22px;
  border: 1px dashed rgba(148, 163, 184, 0.26);
  border-radius: 20px;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.history-item strong {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.5;
}

.history-item span {
  display: block;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.history-copy-btn {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 999px;
  background: #ffffff;
  color: #92400e;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
}

.history-copy-btn:hover {
  background: #fffbeb;
  transform: translateY(-1px);
}

.pyeong-page .help-panel {
  margin-top: 30px;
}

.pyeong-page .help-panel > h2 {
  margin: 0 0 18px;
  color: #0f172a;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.pyeong-page .help-box {
  border-radius: 24px;
}

.pyeong-page .help-toggle-box summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #0f172a;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}

.pyeong-page .help-toggle-box summary::-webkit-details-marker {
  display: none;
}

.pyeong-page .help-toggle-box summary::after {
  content: "+";
  flex: 0 0 auto;
  color: #64748b;
  font-size: 1.2rem;
  font-weight: 700;
}

.pyeong-page .help-toggle-box[open] summary::after {
  content: "−";
}

.pyeong-page .help-toggle-content {
  margin-top: 14px;
}

.pyeong-page .help-toggle-content p {
  margin: 0;
  color: #334155;
  line-height: 1.8;
}

@media (max-width: 1080px) {
  .pyeong-summary-card,
  .result-list,
  .exclusive-result-grid {
    grid-template-columns: 1fr;
  }

  .exclusive-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .pyeong-card-head {
    grid-template-columns: 1fr;
  }

  .pyeong-grid {
    grid-template-columns: 1fr;
  }

  .pyeong-equals {
    min-height: auto;
    padding: 4px 0;
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .pyeong-page {
    padding: 0 0 28px;
  }

  .pyeong-page .utility-top {
    padding: 26px 14px 24px;
  }

  .pyeong-page .utility-title {
    font-size: 34px;
  }

  .pyeong-card,
  .pyeong-result-card,
  .exclusive-area-card,
  .pyeong-history-card {
    padding: 22px;
    border-radius: 22px;
  }

  .quick-area {
    padding: 20px;
    border-radius: 22px;
  }

  .pyeong-btn-row {
    flex-direction: column;
  }

  .pyeong-btn-row .utility-btn,
  .pyeong-card-head .utility-btn {
    width: 100%;
  }

  .history-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .pyeong-card,
  .pyeong-result-card,
  .exclusive-area-card,
  .pyeong-history-card {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .quick-area {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .quick-btn,
  .exclusive-radio {
    width: 100%;
    justify-content: center;
  }

  .result-item,
  .exclusive-result-item {
    padding: 20px 18px;
    border-radius: 20px;
  }
}