/* WP Today Fortune */

.wptf-home,
.wptf-app {
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  color: #171d22;
}

.wptf-home {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 16px;
}

.wptf-home__head {
  text-align: center;
  margin-bottom: 18px;
}

.wptf-home__head p {
  margin: 0 0 6px;
  color: #96712a;
  font-size: 0.78rem;
  font-weight: 800;
}

.wptf-home__head h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  line-height: 1.35;
}

.wptf-home__head span {
  display: block;
  color: #5b6470;
  line-height: 1.7;
}

.wptf-shell {
  background: #fbfaf7;
  border: 1px solid #d8d2c4;
  border-radius: 8px;
  padding: 18px;
}

.wptf-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.wptf-tab,
.wptf-small-btn,
.wptf-share {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid #d8d2c4;
  background: #fff;
  color: #171d22;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.wptf-tab {
  padding: 8px 13px;
}

.wptf-tab.active,
.wptf-tab:hover {
  border-color: #a98535;
  background: #f2eee4;
  color: #6f5520;
}

.wptf-birth-box {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e4dece;
  border-radius: 8px;
}

.wptf-birth-box label {
  color: #4d5660;
  font-size: 0.9rem;
  font-weight: 700;
}

.wptf-birth-box input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d8d2c4;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.95rem;
}

.wptf-small-btn {
  padding: 8px 14px;
  background: #151e26;
  color: #fff;
  border-color: #151e26;
}

.wptf-loading,
.wptf-error {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 160px;
  gap: 10px;
  color: #5b6470;
}

.wptf-start-box {
  display: grid;
  gap: 8px;
  min-height: 150px;
  align-content: center;
  justify-items: center;
  text-align: center;
  color: #5b6470;
  background: #fff;
  border: 1px solid #e4dece;
  border-radius: 8px;
  padding: 22px;
}

.wptf-start-box strong {
  color: #171d22;
  font-size: 1.18rem;
  line-height: 1.35;
}

.wptf-start-box p {
  margin: 0;
  max-width: 520px;
  line-height: 1.75;
}

.wptf-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #d8d2c4;
  border-top-color: #a98535;
  border-radius: 50%;
  animation: wptf-spin 0.8s linear infinite;
}

@keyframes wptf-spin {
  to { transform: rotate(360deg); }
}

.wptf-result {
  display: grid;
  gap: 16px;
}

.wptf-result__header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid #d8d2c4;
  padding-bottom: 14px;
}

.wptf-date {
  margin: 0 0 6px;
  color: #96712a;
  font-size: 0.84rem;
  font-weight: 800;
}

.wptf-result__header h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.35;
}

.wptf-score {
  display: grid;
  place-items: center;
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 1px solid #d8bd74;
  background: #151e26;
  color: #fff;
}

.wptf-score strong {
  font-size: 1.75rem;
  line-height: 1;
}

.wptf-score span {
  color: #d8bd74;
  font-size: 0.76rem;
  font-weight: 800;
}

.wptf-score.excellent { background: #1f5a4a; }
.wptf-score.good { background: #18242e; }
.wptf-score.steady { background: #3f3827; }
.wptf-score.care { background: #4d5660; }

.wptf-summary {
  margin: 0;
  color: #3f4650;
  font-size: 1rem;
  line-height: 1.85;
}

.wptf-reading-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wptf-reading-card {
  background: #fff;
  border: 1px solid #e4dece;
  border-radius: 8px;
  padding: 15px;
}

.wptf-reading-card span {
  display: block;
  color: #96712a;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 7px;
}

.wptf-reading-card p {
  margin: 0;
  color: #333b44;
  line-height: 1.75;
}

.wptf-lucky {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: #d8d2c4;
  border: 1px solid #d8d2c4;
}

.wptf-lucky div {
  background: #fff;
  padding: 12px;
  min-height: 76px;
}

.wptf-lucky span {
  display: block;
  color: #5b6470;
  font-size: 0.75rem;
  margin-bottom: 5px;
}

.wptf-lucky strong {
  color: #171d22;
  font-size: 0.96rem;
}

.wptf-actions {
  display: flex;
  justify-content: center;
}

.wptf-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: #151e26;
  color: #fff;
  border-color: #151e26;
}

.wptf-note {
  margin: 0;
  color: #5b6470;
  font-size: 0.84rem;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .wptf-result__header,
  .wptf-birth-box {
    grid-template-columns: 1fr;
  }

  .wptf-result__header {
    align-items: flex-start;
  }

  .wptf-reading-grid,
  .wptf-lucky {
    grid-template-columns: 1fr;
  }
}
