/* Matched tiles for the two ways to choose a daily reading. */
.fortune-header { gap: .625rem; flex-wrap: wrap; }
.sign-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: .5rem;
  width: min(100%, 390px);
}
.fortune-picker-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  min-height: 54px;
  padding: .375rem .56rem;
  border: 1px solid #dce6d6;
  border-radius: 13px;
  background: #f5f8ef;
  color: #435c43;
  text-align: left;
  transition: background .16s ease, border-color .16s ease;
}
.fortune-picker-button:hover,
.fortune-picker-button[aria-expanded=true] {
  border-color: #aec1a5;
  background: #eaf1e4;
}
.fortune-picker-button:focus-visible { outline: 2px solid #6f8067; outline-offset: 2px; }
.fortune-picker-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 9px;
  background: #e8efdf;
  color: #526e49;
  font-size: 22px;
  line-height: 1;
}
.birthday-inline .fortune-picker-icon { background: #eeebf4; color: #6b5d7c; }
.fortune-picker-icon svg { width: 17px; height: 17px; }
.fortune-picker-text { display: grid; gap: 2px; min-width: 0; line-height: 1.15; }
.fortune-picker-text strong { color: #3a4e39; font-size: .88rem; white-space: nowrap; }
.fortune-picker-text small { color: #566752; font-size: .7rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fortune-picker-button .fortune-picker-chevron {
  width: 15px;
  height: 15px;
  color: #5b7252;
  transition: transform .18s ease;
}
.fortune-picker-button[aria-expanded=true] .fortune-picker-chevron { transform: rotate(180deg); }
@media(max-width: 700px) {
  .fortune-header .sign-picker { width: 100%; }
}
@media(max-width: 375px) {
  .sign-picker { gap: .375rem; }
  .fortune-picker-button { gap: .3rem; padding-inline: .35rem; }
  .fortune-picker-icon { width: 27px; height: 27px; font-size: 18px; }
  .fortune-picker-icon svg { width: 15px; height: 15px; }
  .fortune-picker-text strong { font-size: .8rem; }
  .fortune-picker-text small { font-size: .64rem; }
  .fortune-picker-button .fortune-picker-chevron { width: 13px; height: 13px; }
  .fortune-header .soft-label { display: none; }
}

/* Both daily-reading dialogs share a fixed shell and a viewport-relative anchor. */
.star-profile-dialog.fortune-picker-dialog {
  position: fixed;
  inset: max(8px, calc((100dvh - 600px) / 2)) 0 auto;
  width: min(390px, calc(100% - 26px));
  height: 278px;
  max-height: calc(100dvh - 16px);
  margin: 0 auto;
}
.fortune-picker-dialog .fortune-picker-shell { padding: 22px 20px 18px; }
.fortune-picker-shell .fortune-picker-dialog-title {
  margin: 0 38px .9rem 0;
  color: #39483a;
  font-size: 1.125rem;
  line-height: 1.4;
}
.fortune-picker-shell .sp-close { display: grid; place-items: center; color: #586b51; }
.fortune-picker-shell .sp-close svg { width: 16px; height: 16px; }
.fortune-picker-dialog .sp-birthday-head { padding: 0 0 14px; text-align: left; }
.fortune-picker-dialog .sp-birthday-head h2 { margin-bottom: .35rem; }
.fortune-picker-dialog .sp-birthday-head > p { color: #5b6f55; font-size: .75rem; }
.fortune-picker-dialog .sp-note { color: #5b6f55; font-size: .75rem; }
.fortune-picker-dialog .sp-date-label { color: #5b6f55; font-size: .75rem; }
.fortune-picker-dialog .sp-text { color: #5b6f55; }
.sign-picker-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
.sign-picker-option {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .22rem;
  min-height: 56px;
  padding: .3rem .15rem;
  border: 1px solid #e2e8dc;
  border-radius: 10px;
  background: #f7f8f2;
  color: #42563e;
  transition: background .16s ease, border-color .16s ease;
}
.sign-picker-option span { color: #5b7651; font-size: 19px; line-height: 1; }
.sign-picker-option strong { font-size: .8rem; white-space: nowrap; }
.sign-picker-option:hover { background: #ecf2e6; border-color: #b8c9af; }
.sign-picker-option.selected { background: #e7f0df; border-color: #91aa83; }
.sign-picker-option:focus-visible { outline: 2px solid #6f8067; outline-offset: 2px; }
@media (max-width: 375px) {
  .fortune-picker-dialog .fortune-picker-shell { padding-inline: 15px; }
  .sign-picker-grid { gap: .32rem; }
}
@media (max-height: 350px) {
  .fortune-picker-dialog .fortune-picker-shell { padding-block: 13px; }
  .fortune-picker-dialog .sp-birthday-head { padding-bottom: 7px; }
  .fortune-picker-dialog .sp-note { margin-top: 5px; }
  .sign-picker-option { min-height: 47px; }
}
