@charset "UTF-8";

body {
  background: #f3f4f8;
  color: #1b2b4b;
}

/* 전체 */
.random-draw-page {
  padding: 18px 16px 40px;
}

.random-draw-wrap {
  max-width: 1280px;
  margin: 0 auto;
  background: #f7f7f8;
  border: 1px solid #e5e8f0;
  border-radius: 28px;
  padding: 34px 28px 32px;
  box-shadow: 0 10px 30px rgba(31, 48, 87, 0.06);
}

/* 헤더 */
.random-draw-header {
  text-align: center;
  margin-bottom: 28px;
}

.utility-label {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: 2px;
  color: #6e7fa3;
  font-weight: 700;
}

.random-draw-header h1 {
  margin: 0;
  font-size: 56px;
  line-height: 1.1;
  font-weight: 800;
  color: #1f3158;
}

.utility-desc {
  margin: 14px 0 0;
  font-size: 28px;
  color: #66789c;
  font-weight: 500;
}

/* 상단 2열 */
.random-draw-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
  margin-bottom: 26px;
}

.draw-panel,
.history-panel {
  background: #ffffff;
  border: 1px solid #e3e7f0;
  border-radius: 26px;
  padding: 28px;
}

/* 왼쪽 */
.result-box {
  min-height: 180px;
  border-radius: 24px;
  border: 1px solid #d9e2f6;
  background: #edf2fb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 92px;
  font-weight: 800;
  color: #0f1d39;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.result-state {
  margin: 0 0 24px;
  text-align: center;
  font-size: 26px;
  color: #5c7096;
  font-weight: 600;
}

.range-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: end;
  margin-bottom: 22px;
}

.input-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 700;
  color: #1f3158;
}

.input-group input {
  width: 100%;
  height: 68px;
  border-radius: 18px;
  border: 1px solid #d6ddea;
  background: #ffffff;
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  color: #12203d;
  outline: none;
}

.input-group input:focus,
.small-input:focus,
.select-row select:focus,
.exclude-box:focus {
  border-color: #6d8eff;
  box-shadow: 0 0 0 5px rgba(109, 142, 255, 0.14);
}

.tilde {
  font-size: 34px;
  font-weight: 800;
  color: #516685;
  padding: 0 4px 16px;
}

.quick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.chip-btn {
  min-width: 88px;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #d4dced;
  background: #ffffff;
  color: #1f3158;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.chip-btn:hover {
  background: #f2f6ff;
  border-color: #bfd0f8;
}

.action-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
  min-width: 180px;
  height: 64px;
  border: none;
  border-radius: 18px;
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.primary-btn {
  background: linear-gradient(90deg, #5f89ff 0%, #635be9 100%);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(98, 107, 234, 0.24);
}

.primary-btn:hover {
  transform: translateY(-1px);
}

.secondary-btn {
  background: #eef1f6;
  color: #ff4a63;
}

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

/* 오른쪽 */
.panel-title {
  margin: 0 0 20px;
  font-size: 34px;
  font-weight: 800;
  color: #1f3158;
}

.option-checks {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.check-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 600;
  color: #24385c;
  cursor: pointer;
}

.check-item input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #6482f7;
}

.repeat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.small-input {
  width: 88px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid #d6ddea;
  background: #ffffff;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  color: #12203d;
  outline: none;
}

.repeat-text {
  font-size: 20px;
  color: #4f6487;
  font-weight: 600;
}

.select-row {
  margin-bottom: 12px;
}

.select-row label {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #1f3158;
}

.select-row select {
  width: 100%;
  height: 58px;
  border-radius: 14px;
  border: 1px solid #d6ddea;
  background: #ffffff;
  padding: 0 16px;
  font-size: 18px;
  color: #1f3158;
  outline: none;
}

.mt-32 {
  margin-top: 30px;
}

.exclude-box {
  width: 100%;
  min-height: 150px;
  border-radius: 16px;
  border: 1px solid #d6ddea;
  background: #fbfcff;
  padding: 16px;
  font-size: 18px;
  color: #1f3158;
  resize: vertical;
  outline: none;
}

.exclude-box::placeholder {
  color: #97a6c2;
}

.help-text {
  margin: 10px 0 0;
  font-size: 15px;
  color: #7487a8;
}

/* 기록 */
.history-panel h2 {
  margin: 0 0 12px;
  font-size: 36px;
  font-weight: 800;
  color: #1f3158;
}

.history-summary {
  margin: 0 0 18px;
  font-size: 20px;
  color: #42567c;
}

.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #f4f7fc;
  border: 1px solid #e1e8f5;
  font-size: 22px;
  color: #16305a;
  font-weight: 700;
}

.history-index {
  min-width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(90deg, #5f89ff 0%, #635be9 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
}

/* 여러 개 결과 칩 */
.result-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  padding: 18px 20px;
}

.result-chip {
  min-width: 78px;
  height: 78px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5f89ff 0%, #635be9 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(96, 123, 248, 0.22);
}

@media (max-width: 1100px) {
  .random-draw-header h1 {
    font-size: 42px;
  }

  .utility-desc {
    font-size: 22px;
  }

  .random-draw-grid {
    grid-template-columns: 1fr;
  }

  .result-box {
    font-size: 72px;
  }
}

@media (max-width: 768px) {
  .random-draw-wrap {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .draw-panel,
  .history-panel {
    padding: 20px;
    border-radius: 20px;
  }

  .result-box {
    min-height: 140px;
    font-size: 54px;
  }

  .result-state {
    font-size: 20px;
  }

  .range-inputs {
    grid-template-columns: 1fr;
  }

  .tilde {
    display: none;
  }

  .input-group label {
    font-size: 18px;
  }

  .input-group input {
    height: 58px;
    font-size: 26px;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
    min-width: 0;
    height: 56px;
    font-size: 20px;
  }

  .panel-title,
  .history-panel h2 {
    font-size: 28px;
  }

  .check-item {
    font-size: 18px;
  }

  .history-list li {
    font-size: 18px;
  }

  .result-chip {
    min-width: 60px;
    height: 60px;
    font-size: 22px;
  }
}

