body.dream-number-page {
  --radius: 14px;
  --dream-gap: 10px;
  --primary: #e6007a;
  background: #ffcc99 !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: normal !important;
  padding: 0 var(--dream-gap) !important;
  overflow-x: hidden;
}

body.dream-number-page .logo {
  width: 100%;
  margin-top: 5px;
  margin-bottom: 10px;
  border-radius: var(--radius);
}

.dream-page {
  width: 100%;
  margin: 0;
  padding: 0;
}

.dream-box {
  background: #fc9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 29, 29, 0.7);
  margin-bottom: 10px;
  padding: 14px 12px;
  text-align: center;
}

.dream-box.dream-hero-box {
  margin-top: 10px;
}

.dream-hero-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--primary);
}

.dream-hero-sub {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #222;
  line-height: 1.55;
}

.dream-date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.dream-cal-icon {
  font-size: 18px;
  line-height: 1;
}

.dream-date-text {
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
}

.dream-date-hint {
  margin: 0;
  font-size: 11px;
  color: #222;
  font-weight: 500;
}

.dream-search-box {
  text-align: left;
}

.dream-search-label {
  display: block;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  color: #d40000;
  line-height: 1.4;
}

.dream-search-form {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.dream-search-input-wrap {
  position: relative;
  flex: 1 1 auto;
}

.dream-search-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 29, 29, 0.25);
  border-radius: 999px;
  background: #fff8f1;
  padding: 12px 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #111;
  outline: none;
}

.dream-search-input::placeholder {
  color: #888;
}

.dream-search-btn {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.35);
}

.dream-search-empty {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #d40000;
  text-align: center;
}

.dream-search-empty[hidden] {
  display: none !important;
}

.dream-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.dream-card {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 72px;
  padding: 8px 8px 8px 6px;
  border: 1px solid rgba(255, 29, 29, 0.35);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #fff8f1 100%);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dream-card.is-hidden {
  display: none;
}

.dream-card-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f3f4f6;
  font-size: 18px;
  line-height: 1;
}

.dream-card-body {
  flex: 1 1 auto;
  min-width: 0;
}

.dream-card-title {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: #111;
  line-height: 1.25;
  letter-spacing: 0.2px;
}

.dream-card-sub {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  font-weight: 500;
  color: #666;
  line-height: 1.3;
}

.dream-card-numbers {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dream-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.dream-num-ank {
  border: 1.5px solid #60a5fa;
  color: #2563eb;
  background: #eff6ff;
}

.dream-num-jodi {
  background: linear-gradient(180deg, #ff1d6a 0%, #e6007a 100%);
  color: #fff;
  border: 0;
  min-width: 28px;
  width: auto;
  padding: 0 6px;
  border-radius: 999px;
}

.dream-guide-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: #d40000;
  line-height: 1.3;
  text-align: left;
}

.dream-guide-box {
  text-align: left;
}

.dream-guide-box p {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.55;
  color: #222;
  font-weight: 500;
}

.dream-guide-box p:last-child {
  margin-bottom: 0;
}

.dream-guide-box strong {
  color: #111;
  font-weight: 800;
}

.dream-guide-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.dream-guide-list li {
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: #222;
  font-weight: 500;
}

.dream-faq-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
  text-align: left;
}

.dream-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dream-faq-item {
  border: 1px solid rgba(255, 29, 29, 0.25);
  border-radius: 10px;
  background: #fff8f1;
  overflow: hidden;
}

.dream-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #111;
  text-align: left;
  cursor: pointer;
  line-height: 1.4;
}

.dream-faq-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #4f8cff 0%, #2563eb 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.28s ease;
}

.dream-faq-item.is-open .dream-faq-icon {
  transform: rotate(45deg);
}

.dream-faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease 0.04s;
}

.dream-faq-answer-inner {
  overflow: hidden;
  min-height: 0;
}

.dream-faq-answer-inner p {
  margin: 0;
  padding: 0 12px 12px;
  font-size: 11px;
  line-height: 1.55;
  color: #333;
  font-weight: 500;
}

.dream-faq-item.is-open .dream-faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.dream-footer {
  margin: 10px 0 100px;
}

.dream-footer-info {
  text-align: left;
}

.dream-footer-zone {
  text-align: center;
}

.dream-footer-zone-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
}

.dream-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.dream-footer-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 29, 29, 0.7);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}

.dream-footer-zone-sub {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
}

body.dream-number-page .dream-refresh-btn,
body.dream-number-page .vip-zone-btn {
  position: fixed;
  bottom: 12px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid rgba(255, 29, 29, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

body.dream-number-page .dream-refresh-btn {
  right: 12px;
  left: auto;
  background: #fff8f1;
  color: #111;
}

body.dream-number-page .vip-zone-btn {
  left: 12px;
  right: auto;
  transform: none;
  background: #ff0016;
  color: #fff;
  border-color: #ff0016;
}

@media screen and (max-width: 480px) {
  .dream-hero-title {
    font-size: 18px;
  }

  .dream-grid {
    gap: 6px;
  }

  .dream-card {
    min-height: 68px;
    padding: 7px 6px;
    gap: 6px;
  }

  .dream-card-title {
    font-size: 9px;
  }

  .dream-card-sub {
    font-size: 8px;
  }

  .dream-num {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }
}

@media screen and (max-width: 360px) {
  .dream-grid {
    grid-template-columns: 1fr;
  }
}
