/* src/client/tarot/TarotReading.css */
.tarot-step {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  font-family: Nunito, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
}

.tarot-step-title {
  margin: 0;
  font-family: Outfit, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.tarot-help {
  opacity: .8;
  margin: 0;
  font-size: .85rem;
}

.tarot-loading {
  opacity: .6;
  font-style: italic;
}

.tarot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .5rem;
}

.tarot-tile {
  text-align: left;
  cursor: pointer;
  color: inherit;
  background: #eff1f314;
  border: 1px solid #eff1f31f;
  border-radius: 12px;
  padding: .7rem;
  transition: background .15s;
  font-family: inherit;
}

.tarot-tile:hover {
  background: #eff1f324;
}

.tarot-tile-name {
  font-weight: 600;
}

.tarot-tile-detail {
  opacity: .7;
  font-size: .8rem;
}

.tarot-themes {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.tarot-theme-pill, .tarot-mode-pill {
  color: inherit;
  cursor: pointer;
  background: #eff1f30f;
  border: 1px solid #eff1f31a;
  border-radius: 999px;
  padding: .3rem .7rem;
  font-family: inherit;
  font-size: .8rem;
}

.tarot-theme-pill.is-active, .tarot-mode-pill.is-active {
  background: #eff1f338;
  border-color: #eff1f347;
}

.tarot-question {
  color: inherit;
  resize: vertical;
  background: #eff1f30f;
  border: 1px solid #eff1f31f;
  border-radius: 10px;
  padding: .5rem .7rem;
  font-family: inherit;
}

.tarot-actions {
  display: flex;
  gap: .5rem;
}

.tarot-btn, .tarot-btn-ghost {
  cursor: pointer;
  border: 1px solid #eff1f32e;
  border-radius: 999px;
  padding: .45rem .9rem;
  font-family: inherit;
  font-size: .85rem;
}

.tarot-btn {
  color: inherit;
  background: #eff1f338;
}

.tarot-btn:hover {
  background: #eff1f34d;
}

.tarot-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.tarot-btn-ghost {
  color: inherit;
  background: none;
}

.tarot-btn-ghost:hover {
  background: #eff1f314;
}

.tarot-position-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.tarot-position-tab {
  text-align: left;
  color: inherit;
  cursor: pointer;
  background: #eff1f30f;
  border: 1px solid #eff1f31f;
  border-radius: 10px;
  padding: .45rem .7rem;
  font-family: inherit;
}

.tarot-position-tab.is-active {
  background: #eff1f333;
}

.tarot-position-tab-label {
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .7;
  font-size: .7rem;
}

.tarot-position-tab-card {
  font-size: .85rem;
}

.tarot-picker-modes {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.tarot-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  overflow-y: auto;
  gap: .5rem;
  max-height: 340px;
  padding: .25rem;
}

.tarot-card-pick {
  color: inherit;
  cursor: pointer;
  text-align: center;
  background: #eff1f30f;
  border: 1px solid #eff1f31f;
  border-radius: 8px;
  padding: .3rem;
  font-family: inherit;
  font-size: .7rem;
}

.tarot-card-pick img {
  aspect-ratio: .6;
  object-fit: cover;
  border-radius: 4px;
  width: 100%;
  height: auto;
}

.tarot-card-pick.is-chosen {
  background: #eff1f338;
  border-color: #eff1f366;
}

.tarot-card-pick.is-used {
  opacity: .4;
  cursor: not-allowed;
}

.tarot-reversed {
  display: inline-flex;
  align-items:  center;
  gap: .4rem;
  font-size: .85rem;
}

.tarot-empty {
  grid-column: 1 / -1;
  opacity: .5;
  font-size: .85rem;
  font-style: italic;
}

.tarot-error {
  color: #ff8b8b;
  margin: 0;
  font-size: .85rem;
}

.tarot-field {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  font-size: .85rem;
}

.tarot-field input {
  color: inherit;
  background: #eff1f30f;
  border: 1px solid #eff1f31f;
  border-radius: 8px;
  padding: .35rem .6rem;
  font-family: inherit;
}

.tarot-field-note {
  opacity: .6;
}

.tarot-positions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.tarot-position {
  display: flex;
  align-items:  flex-start;
  gap: .75rem;
}

.tarot-card-img {
  aspect-ratio: .6;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  width: 100px;
  height: auto;
}

.tarot-card-img.is-reversed {
  transform: rotate(180deg);
}

.tarot-position-body {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  font-size: .85rem;
}

.tarot-position-label {
  font-weight: 600;
}

.tarot-position-text {
  margin: 0;
}

.tarot-observations {
  opacity: .85;
  margin: 0;
  padding-left: 1.1rem;
  font-size: .8rem;
}

.tarot-synthesis {
  background: #eff1f30f;
  border: 1px solid #eff1f31f;
  border-radius: 10px;
  padding: .6rem .8rem;
}

.tarot-synthesis h4 {
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .7;
  margin: 0 0 .3rem;
  font-family: Outfit, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
  font-size: .85rem;
}

.tarot-synthesis p {
  white-space: pre-wrap;
  margin: 0;
  font-size: .9rem;
}

.tarot-cursor {
  animation: tarot-blink 1s steps(2, end) infinite;
  margin-left: 2px;
}

@keyframes tarot-blink {
  to {
    opacity: 0;
  }
}

.tarot-spread-section {
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .75;
  margin: 0;
  font-family: Outfit, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
  font-size: .75rem;
}

.tarot-spread-section--all {
  margin-top: .25rem;
}

.tarot-tile--recommended {
  border-color: #eff1f338;
}

.tarot-tile--other {
  opacity: .65;
}

.tarot-tile--other:hover {
  opacity: 1;
}

.tarot-spread-diagram {
  display: block;
  background: #eff1f30a;
  border: 1px solid #eff1f314;
  border-radius: 10px;
  width: 100%;
  height: auto;
}

.tarot-laydown-list {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin: 0;
  padding-left: 1.4rem;
  font-size: .85rem;
}

.tarot-laydown-label {
  font-weight: 600;
}

.tarot-laydown-meaning {
  opacity: .75;
}

.tarot-confirm {
  display: flex;
  background: #eff1f30f;
  border: 1px solid #eff1f329;
  border-radius: 10px;
  flex-direction: column;
  gap: .5rem;
  padding: .6rem .8rem;
}

.tarot-confirm-text {
  margin: 0;
  font-size: .85rem;
}

.tarot-btn--danger {
  color: #ff9090;
  background: #ff64642e;
  border-color: #ff64644d;
}

.tarot-btn--danger:hover {
  background: #ff646447;
}

.tarot-reading-header {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.tarot-question-echo {
  opacity: .7;
  margin: 0;
  font-size: .85rem;
  font-style: italic;
}

.tarot-chart-summary {
  display: flex;
  opacity: .85;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem;
  font-size: .82rem;
}

.tarot-chart-line {
  font-variant: small-caps;
  letter-spacing: .04em;
}

.tarot-btn-link {
  color: inherit;
  font: inherit;
  text-decoration: underline dotted;
  opacity: .7;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-size: .78rem;
}

.tarot-btn-link:hover {
  opacity: 1;
}

.tarot-chart-detail {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  background: #eff1f30a;
  border: 1px solid #eff1f31a;
  border-radius: 8px;
  gap: .15rem .6rem;
  width: 100%;
  margin: .2rem 0 0;
  padding: .4rem .6rem;
  font-size: .8rem;
}

.tarot-chart-detail li {
  white-space: nowrap;
}

.tarot-chart-planet {
  opacity: .9;
  font-weight: 600;
}

.tarot-city-picked {
  display: flex;
  background: #eff1f30f;
  border: 1px solid #eff1f329;
  border-radius: 8px;
  justify-content: space-between;
  align-items:  center;
  gap: .5rem;
  padding: .45rem .6rem;
}

.tarot-city-suggestions {
  list-style: none;
  overflow-y: auto;
  background: #0f1216f5;
  border: 1px solid #eff1f329;
  border-radius: 8px;
  max-height: 12rem;
  margin: .2rem 0 0;
  padding: .2rem;
}

.tarot-city-suggestion {
  display: block;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 5px;
  width: 100%;
  padding: .35rem .5rem;
  font-size: .85rem;
}

.tarot-city-suggestion:hover {
  background: #eff1f314;
}
