.today-fortune-page {
  --today-accent: #8f5d7d;
  --today-deep: #5f3e54;
  --today-pale: #f8f0f5;
  --today-gold: #b59657;
  --today-line: #eadde5;
}

.today-hero,
.today-tool,
.today-overview,
.today-method-note {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.today-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 22px;
}

.today-hero-copy,
.today-hero-note,
.today-tool-main,
.today-tool-side,
.today-method-note {
  border: 1px solid var(--today-line);
  background: #fff;
  box-shadow: 0 16px 42px rgba(76, 49, 68, 0.08);
}

.today-hero-copy {
  padding: clamp(30px, 5vw, 62px);
  background:
    radial-gradient(circle at 90% 15%, rgba(181, 150, 87, 0.12), transparent 26%),
    linear-gradient(135deg, #fff 0%, #fbf6f9 100%);
}

.today-eyebrow,
.today-section-heading > span,
.today-side-kicker,
.today-result-card > span {
  display: block;
  color: var(--today-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.today-hero h1 {
  margin: 12px 0 18px;
  color: var(--today-deep);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.18;
}

.today-lead {
  max-width: 720px;
  margin: 0;
  color: #4d4148;
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 2;
}

.today-date {
  margin: 22px 0 0;
  color: var(--today-accent);
  font-weight: 800;
}

.today-hero-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  background: var(--today-deep);
  color: #fff;
}

.today-hero-note strong {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 21px;
}

.today-hero-note p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
}

.today-tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  margin-top: 34px;
}

.today-tool-main {
  min-width: 0;
  padding: clamp(24px, 4vw, 44px);
}

.today-tool-side {
  align-self: start;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.today-section-heading {
  margin-bottom: 24px;
}

.today-section-heading h2 {
  margin: 8px 0 0;
  color: var(--today-deep);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.35;
}

.today-saved-profile {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px solid #dfc9d6;
  border-radius: 14px;
  background: var(--today-pale);
}

.today-saved-profile span {
  display: block;
  color: #7f6876;
  font-size: 12px;
}

.today-saved-profile strong {
  display: block;
  margin-top: 4px;
  color: var(--today-deep);
  font-size: 20px;
}

.today-saved-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.today-form {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--today-line);
  border-radius: 18px;
  background: #fffdfd;
}

.today-form.is-loading {
  opacity: 0.78;
}

.today-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.today-field-wide {
  grid-column: 1 / -1;
}

.today-field label:not(.today-checkbox) {
  display: block;
  margin-bottom: 7px;
  color: #4e3e48;
  font-size: 13px;
  font-weight: 800;
}

.today-field input,
.today-field select {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid #d9ccd4;
  border-radius: 10px;
  background: #fff;
  color: #352d32;
  font: inherit;
}

.today-field input {
  padding: 0 13px;
}

.today-field select {
  padding: 0 40px 0 13px;
}

.today-field input:focus,
.today-field select:focus {
  outline: 3px solid rgba(143, 93, 125, 0.16);
  border-color: var(--today-accent);
}

.today-field input:disabled,
.today-field select:disabled {
  background: #f3eff1;
  color: #8b8186;
}

.today-field small {
  display: block;
  margin-top: 7px;
  color: #80747a;
  line-height: 1.6;
}

.today-checkbox {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 10px;
  color: #5e5158;
  font-size: 13px;
  line-height: 1.6;
}

.today-checkbox input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--today-accent);
}

.today-target-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--today-line);
}

.today-date-buttons,
.today-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.today-save-option {
  margin-top: 22px;
  font-weight: 700;
}

.today-privacy-note {
  margin: 6px 0 0 27px;
  color: #81767c;
  font-size: 12px;
  line-height: 1.7;
}

.today-form-actions {
  margin-top: 24px;
}

.today-primary-button,
.today-secondary-button,
.today-text-button,
.today-overview-select {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.today-primary-button {
  min-height: 50px;
  padding: 0 27px;
  border-radius: 999px;
  background: var(--today-accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(111, 66, 94, 0.2);
  font-weight: 800;
}

.today-primary-button:hover {
  background: var(--today-deep);
}

.today-primary-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.today-secondary-button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid #d8c8d1;
  border-radius: 999px;
  background: #fff;
  color: var(--today-deep);
  font-size: 13px;
  font-weight: 700;
}

.today-secondary-button:hover {
  border-color: var(--today-accent);
  background: var(--today-pale);
}

.today-text-button {
  padding: 7px 8px;
  background: transparent;
  color: #75636e;
  font-size: 12px;
  text-decoration: underline;
}

.today-error {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #e7b6bd;
  border-radius: 10px;
  background: #fff2f3;
  color: #8a3443;
  line-height: 1.7;
}

.today-error:empty {
  display: none;
}

.today-side-card {
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--today-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(76, 49, 68, 0.07);
}

.today-side-card h2 {
  margin: 8px 0 14px;
  color: var(--today-deep);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 21px;
}

.today-side-card p {
  margin: 0 0 12px;
  color: #62565d;
  line-height: 1.85;
}

.today-side-notice {
  background: #faf7ef;
  border-color: #e7ddc7;
}

.today-result {
  scroll-margin-top: 90px;
  margin-top: 32px;
  padding-top: 30px;
  border-top: 1px solid var(--today-line);
}

.today-result-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.today-result-header > div:first-child > span {
  color: var(--today-accent);
  font-size: 13px;
  font-weight: 800;
}

.today-result-header h2 {
  margin: 8px 0;
  color: var(--today-deep);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(27px, 4.2vw, 42px);
  line-height: 1.35;
}

.today-result-position {
  margin: 0;
  color: #6d5e66;
}

.today-theme-badge {
  flex: 0 0 auto;
  max-width: 220px;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--today-deep);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
}

.today-summary {
  margin: 24px 0 0;
  padding: 20px 22px;
  border-left: 4px solid var(--today-gold);
  background: #fcfaf6;
  color: #4f454a;
  font-size: 16px;
  line-height: 2;
}

.today-score-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.today-score-card {
  min-width: 0;
  padding: 18px 15px;
  border: 1px solid var(--today-line);
  border-radius: 14px;
  background: #fff;
}

.today-score-card h3 {
  margin: 0;
  color: #54454e;
  font-size: 14px;
}

.today-score-stars {
  margin-top: 10px;
  color: var(--today-gold);
  font-size: clamp(17px, 2.2vw, 22px);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.today-score-card strong {
  display: block;
  margin-top: 8px;
  color: var(--today-accent);
  font-size: 12px;
}

.today-score-card p {
  margin: 10px 0 0;
  color: #685b62;
  font-size: 13px;
  line-height: 1.75;
}

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

.today-result-card {
  padding: 22px;
  border: 1px solid var(--today-line);
  border-radius: 16px;
  background: #fff;
}

.today-result-card h3 {
  margin: 7px 0 12px;
  color: var(--today-deep);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 20px;
}

.today-result-card p,
.today-result-card li {
  color: #5f5359;
  line-height: 1.85;
}

.today-result-card p {
  margin: 0;
}

.today-result-card ul {
  margin: 0;
  padding-left: 1.25em;
}

.today-caution-card {
  background: #fff9f5;
  border-color: #ead5c8;
}

.today-action-card {
  background: var(--today-pale);
  border-color: #dfcbd7;
}

.today-one-line {
  margin: 24px 0 0;
  padding: 26px;
  border: 0;
  border-radius: 14px;
  background: var(--today-deep);
  color: #fff;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(19px, 3vw, 27px);
  line-height: 1.7;
  text-align: center;
}

.today-details {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--today-line);
  border-radius: 12px;
  background: #fff;
}

.today-details summary {
  cursor: pointer;
  color: var(--today-deep);
  font-weight: 800;
}

.today-details dl {
  display: grid;
  grid-template-columns: minmax(150px, 0.6fr) minmax(0, 1fr);
  gap: 0;
  margin: 18px 0 0;
}

.today-details dt,
.today-details dd {
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid #eee5ea;
}

.today-details dt {
  color: #66555f;
  font-weight: 800;
}

.today-details dd {
  color: #564c51;
}

.today-details p {
  margin: 16px 0 0;
  color: #756a70;
  font-size: 13px;
  line-height: 1.8;
}

.today-overview {
  margin-top: 50px;
}

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

.today-overview-card {
  padding: 21px;
  border: 1px solid var(--today-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(76, 49, 68, 0.05);
}

.today-overview-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.today-overview-top strong {
  color: var(--today-deep);
  font-size: 17px;
}

.today-overview-top span {
  color: var(--today-gold);
  white-space: nowrap;
}

.today-overview-position {
  margin: 10px 0 0;
  color: var(--today-accent);
  font-size: 12px;
  font-weight: 800;
}

.today-overview-card > p:not(.today-overview-position) {
  min-height: 3.4em;
  margin: 12px 0 0;
  color: #60545b;
  line-height: 1.7;
}

.today-overview-select {
  margin-top: 15px;
  padding: 0;
  background: transparent;
  color: var(--today-accent);
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.today-method-note {
  margin-top: 44px;
  margin-bottom: 40px;
  padding: clamp(24px, 4vw, 40px);
}

.today-method-note h2 {
  margin: 0 0 14px;
  color: var(--today-deep);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 27px;
}

.today-method-note p {
  margin: 0 0 12px;
  color: #5f545a;
  line-height: 1.95;
}

@media (max-width: 980px) {
  .today-hero,
  .today-tool {
    grid-template-columns: 1fr;
  }

  .today-tool-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .today-side-card {
    margin: 0;
  }

  .today-score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .today-score-overall {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .today-hero,
  .today-tool,
  .today-overview,
  .today-method-note {
    width: min(100% - 20px, 1180px);
  }

  .today-form-grid,
  .today-target-row,
  .today-tool-side,
  .today-result-grid,
  .today-overview-grid {
    grid-template-columns: 1fr;
  }

  .today-saved-profile,
  .today-result-header {
    flex-direction: column;
  }

  .today-theme-badge {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
  }

  .today-score-grid {
    grid-template-columns: 1fr;
  }

  .today-score-overall {
    grid-column: auto;
  }

  .today-details dl {
    grid-template-columns: 1fr;
  }

  .today-details dt {
    padding-bottom: 3px;
    border-bottom: 0;
  }

  .today-details dd {
    padding-top: 3px;
  }
}
