.astrology-services[aria-labelledby="rune-services-title"]:has(a[href="/runy/tri-runy/"]) ul {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.three-runes-panel {
  background: var(--unified-surface);
  border: 1px solid var(--unified-line);
  border-radius: 12px;
  padding: clamp(.8rem, 3vw, 1.8rem);
}

#three-runes-form {
  display: grid;
  gap: .65rem;
}

#three-runes-form textarea {
  box-sizing: border-box;
  width: 100%;
  padding: .75rem;
  resize: vertical;
  color: var(--unified-ink);
  background: var(--unified-paper);
  border: 1px solid var(--unified-line);
  border-radius: 8px;
  font: inherit;
  font-size: max(16px, 1em);
}

#three-runes-form button { justify-self: start; }

.three-runes-draw:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.3rem, 2vw, .9rem);
  margin: 1.1rem 0;
  padding: 0;
  list-style: none;
}

.three-runes-draw li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  text-align: center;
  font-size: clamp(.75rem, 3.2vw, 1rem);
}

.three-runes-stone {
  display: grid;
  place-items: center;
  width: clamp(3.1rem, 16vw, 5.5rem);
  aspect-ratio: 1;
  padding: 16%;
  color: var(--unified-accent);
  background: #21191b url('/portal-assets/rune-day-v1/rune-stone-v1.webp') center / cover no-repeat;
  border: 1px solid var(--unified-line);
  border-radius: 13px;
  box-sizing: border-box;
}

button.three-runes-stone { padding: 12%; cursor: pointer; }
button.three-runes-stone:disabled { cursor: default; }
button.three-runes-stone:not(:disabled) { border-color: var(--unified-accent); }
.three-runes-panel :focus-visible { outline: 2px solid var(--unified-accent); outline-offset: 3px; }
.three-runes-stone svg {
  width: 100%;
  min-width: 1.6rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 3px #170d0a);
}

.three-runes-meanings {
  list-style: none;
  padding: 0;
}

.three-runes-meanings li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .65rem;
  padding: .85rem 0;
  border-top: 1px solid var(--unified-line);
}

.three-runes-meanings .three-runes-stone { width: 2.8rem; padding: .35rem; }
.three-runes-meanings p { margin: 0 0 .3rem; }
.three-runes-name { font-weight: 650; }
.three-runes-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem 1rem; }
.three-runes-actions button[hidden], .three-runes-actions a[hidden] { display: none; }
#three-runes-status:empty, #rune-spread-record-status:empty { display: none; }
#rune-spread-diary { margin-block: 2rem; }
#rune-spread-records details {
  background: var(--unified-surface);
  border: 1px solid var(--unified-line);
  border-radius: 8px;
  padding: .85rem;
  margin-bottom: .65rem;
}

#rune-spread-records summary { cursor: pointer; overflow-wrap: anywhere; }
#rune-spread-records time { margin-left: .55rem; color: var(--unified-muted); }

@media (max-width: 620px) {
  .astrology-services[aria-labelledby="rune-services-title"]:has(a[href="/runy/tri-runy/"]) ul {
    grid-template-columns: 1fr;
  }
}
