:root {
  --astro-ink: var(--foreground);
  --astro-muted: var(--muted-foreground);
  --astro-line: var(--border);
  --astro-coral: var(--primary);
  --astro-paper: var(--card);
  --astro-font: var(--font-sans);
}

body.astro-page {
  min-height: 100svh;
  color: var(--astro-ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 220, 204, 0.5), transparent 32%),
    radial-gradient(circle at 88% 22%, rgba(185, 224, 232, 0.42), transparent 34%),
    linear-gradient(120deg, rgba(255, 245, 230, 0.26), rgba(224, 202, 207, 0.16)),
    url("../images/scene/sand-after-tide.webp") center / cover fixed no-repeat,
    #ead1b3;
  font-family: var(--astro-font);
  overflow-x: hidden;
}

body.astro-page::before,
body.astro-page::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
}

body.astro-page::before {
  inset: 0;
  background:
    linear-gradient(105deg, rgba(108, 183, 196, 0.2), transparent 24%, transparent 73%, rgba(119, 185, 195, 0.24)),
    radial-gradient(ellipse at 50% 105%, rgba(255, 245, 227, 0.68), transparent 54%);
  mix-blend-mode: screen;
}

body.astro-page::after {
  top: -26vh;
  right: -12vw;
  width: 58vw;
  height: 58vw;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 48% 52% 55% 45%;
  box-shadow: 0 0 0 8vw rgba(255, 255, 255, 0.025), 0 0 0 16vw rgba(255, 255, 255, 0.018);
  transform: rotate(18deg);
}

.astro-shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  padding: 16px clamp(16px, 2vw, 28px) 24px;
}

.astro-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  width: min(100%, 1180px);
  margin: 0 auto 12px;
}

.astro-nav > p {
  justify-self: end;
  margin: 0;
  color: rgba(81, 68, 98, 0.64);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.astro-home {
  display: flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  text-decoration: none;
}

.astro-home img {
  width: 54px;
  height: auto;
  transition: transform 0.3s ease;
}

.astro-home span {
  margin-left: -4px;
}

.astro-home strong {
  display: block;
  font-family: var(--astro-font);
  font-size: 17px;
  font-weight: 500;
}

.astro-home small {
  display: block;
  margin-top: 1px;
  color: rgba(81, 68, 98, 0.6);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.astro-home:hover img {
  transform: translateX(-3px) rotate(-3deg);
}

.astro-home:focus-visible,
.astro-roll:focus-visible,
.divination-tab:focus-visible,
.liuyao-board button:focus-visible {
  outline: none;
}

.divination-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-1);
  width: min(100%, 350px);
  margin: 0;
  backdrop-filter: blur(12px);
}

.divination-tab {
  min-height: 48px;
}

.divination-tab:hover {
  color: var(--astro-ink);
}

.divination-tab-mark {
  color: var(--astro-coral);
  font-family: var(--astro-font);
  font-size: 16px;
}

.divination-tab-lines {
  color: #77999b;
  font-size: 19px;
  line-height: 1;
}

.divination-tab strong,
.divination-tab small {
  display: block;
  text-align: left;
}

.divination-tab strong {
  font-size: var(--text-sm);
  font-weight: 650;
  letter-spacing: 0.08em;
}

.divination-tab small {
  margin-top: 2px;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  opacity: 0.66;
}

.divination-panel {
  animation: divination-panel-in 0.42s ease both;
}

@keyframes divination-panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.astro-board {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  width: min(100%, 1180px);
  min-height: min(680px, calc(100svh - 156px));
  margin: 0 auto;
  overflow: hidden;
  backdrop-filter: blur(16px) saturate(1.06);
}

.astro-cast-panel,
.astro-reading-panel {
  min-width: 0;
  padding: clamp(34px, 4.4vw, 64px);
}

.astro-cast-panel {
  display: flex;
  flex-direction: column;
}

.astro-intro {
  text-align: center;
}

.astro-kicker {
  margin: 0 0 17px;
  color: var(--astro-coral) !important;
  font-size: var(--text-xs) !important;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.astro-intro h1 {
  margin: 0;
  font-family: var(--astro-font);
  font-size: clamp(38px, 4.1vw, 58px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.75);
}

.astro-intro > p:last-child {
  margin: 14px 0 0;
  color: var(--astro-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  letter-spacing: 0.06em;
}

.astro-cast {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.3vw, 20px);
  margin: auto 0;
  padding: clamp(34px, 5vh, 56px) 0;
}

.astro-die {
  --glass: 255, 178, 203;
  --deep: #ec9eb6;
  --glyph: #814963;
  min-width: 0;
  text-align: center;
}

.astro-die:nth-child(2) {
  --glass: 137, 217, 247;
  --deep: #79c8e7;
  --glyph: #386786;
}

.astro-die:nth-child(3) {
  --glass: 164, 229, 186;
  --deep: #97d3b3;
  --glyph: #4b715d;
}

.astro-kind {
  display: block;
  margin-bottom: 19px;
  color: var(--astro-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.astro-solid {
  position: relative;
  width: clamp(94px, 9.3vw, 126px);
  height: clamp(97px, 9.5vw, 129px);
  margin: 0 auto 18px;
  filter: drop-shadow(0 15px 9px rgba(87, 61, 89, 0.18));
  transform-origin: 50% 76%;
}

.astro-die-shell {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 19% 13%, rgba(255, 255, 244, 0.78), transparent 37%),
    linear-gradient(145deg, rgba(255, 255, 246, 0.76), rgba(var(--glass), 0.51) 31%, rgba(var(--glass), 0.31) 57%, rgba(var(--glass), 0.75));
  clip-path: polygon(50% 0, 94% 25%, 100% 69%, 69% 100%, 25% 94%, 0 57%, 8% 20%);
  backdrop-filter: blur(5px) saturate(1.2);
}

.astro-die-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px 5px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.33), transparent 42%, rgba(var(--glass), 0.19));
  mix-blend-mode: soft-light;
  opacity: 0.62;
}

.astro-die-shell::after {
  content: "";
  position: absolute;
  inset: 1px;
  background: linear-gradient(130deg, rgba(255, 255, 244, 0.62), transparent 44%, rgba(75, 68, 92, 0.09));
  clip-path: polygon(50% 0, 94% 25%, 100% 69%, 69% 100%, 25% 94%, 0 57%, 8% 20%);
}

.astro-facet {
  position: absolute;
  inset: 16px 14px 15px;
  background: linear-gradient(150deg, rgba(255, 255, 245, 0.57), rgba(var(--glass), 0.36) 48%, rgba(var(--glass), 0.58));
  clip-path: polygon(48% 0, 100% 35%, 82% 100%, 18% 100%, 0 35%);
  backdrop-filter: blur(3px);
}

.astro-facet::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 16% 8%, rgba(255, 245, 205, 0.68), transparent 62%);
  opacity: 0.42;
}

.astro-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(255, 255, 244, 0.68);
  stroke-width: 1.1;
}

.astro-glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-top: 7px;
  color: var(--glyph);
  font-family: var(--astro-font);
  font-size: clamp(35px, 3.5vw, 46px);
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.88), 0 0 10px rgba(255, 255, 255, 0.44);
}

.astro-die:last-child .astro-glyph {
  font-family: var(--astro-font);
  font-size: clamp(30px, 3vw, 39px);
}

.astro-name {
  color: #594b67;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
}

.astro-die.is-rolling .astro-solid {
  animation: astro-tumble 0.58s ease-in-out infinite;
}

.astro-die.is-rolling .astro-name {
  opacity: 0.46;
}

@keyframes astro-tumble {
  0%,
  100% {
    transform: translateY(0) rotate(-7deg);
  }
  50% {
    transform: translateY(-17px) rotate(11deg);
  }
}

.astro-action {
  text-align: center;
}

.astro-roll {
  min-width: 180px;
  letter-spacing: 0.06em;
}

.astro-action p {
  margin: 14px 0 0;
  color: rgba(81, 68, 98, 0.57);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
}

.astro-reading-panel {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border-left: 1px solid var(--astro-line);
  background: linear-gradient(145deg, rgba(255, 253, 247, 0.26), rgba(231, 223, 231, 0.14));
}

.astro-reading-head {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--astro-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
}

.astro-reading-head::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--astro-line);
}

.astro-reading-head i {
  order: 3;
  color: var(--astro-coral);
  font-family: var(--astro-font);
  font-size: 13px;
  font-style: normal;
}

.astro-empty {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 390px;
  padding: 36px 0;
  text-align: center;
}

.astro-orbit {
  position: relative;
  display: grid;
  width: 94px;
  height: 94px;
  margin-bottom: 30px;
  place-items: center;
  border: 1px solid rgba(129, 99, 126, 0.24);
  border-radius: 50%;
}

.astro-orbit::before,
.astro-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(129, 99, 126, 0.16);
  border-radius: 50%;
}

.astro-orbit::before {
  inset: 12px -13px;
  transform: rotate(27deg);
}

.astro-orbit::after {
  inset: -8px 20px;
  transform: rotate(-38deg);
}

.astro-orbit i {
  color: var(--astro-coral);
  font-family: var(--astro-font);
  font-size: 24px;
  font-style: normal;
}

.astro-empty strong {
  font-family: var(--astro-font);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.astro-empty p {
  margin: 15px 0 0;
  color: var(--astro-muted);
  font-size: 12px;
  line-height: 1.85;
}

.astro-reading {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  margin-top: 18px;
  border-top: 1px solid var(--astro-line);
}

.astro-reading-row {
  display: grid;
  grid-template-columns: 38px minmax(100px, 0.55fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 1.7vw, 25px);
  min-height: 126px;
  border-bottom: 1px solid var(--astro-line);
  animation: astro-reading-in 0.52s both;
}

.astro-reading-row:nth-child(2) {
  animation-delay: 0.08s;
}

.astro-reading-row:nth-child(3) {
  animation-delay: 0.16s;
}

@keyframes astro-reading-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.astro-reading-number {
  color: var(--astro-coral);
  font-family: var(--astro-font);
  font-size: 14px;
}

.astro-reading-row h2 {
  margin: 0;
  font-family: var(--astro-font);
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.astro-reading-row h2 small {
  display: block;
  margin-top: 6px;
  color: var(--astro-muted);
  font-family: var(--astro-font);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
}

.astro-reading-row p {
  margin: 0;
  color: #65556c;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.astro-note {
  width: min(100%, 1180px);
  margin: clamp(18px, 2.4vh, 28px) auto 0;
  color: rgba(81, 68, 98, 0.57);
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
  letter-spacing: 0.12em;
  text-align: center;
}

/* Six-lines panel: namespaced so it never shares state or component styles
   with the astro-dice panel. */
.liuyao-board {
  width: min(100%, 1180px);
  margin: 0 auto;
  overflow: hidden;
  backdrop-filter: blur(16px) saturate(1.06);
}

.liuyao-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(28px, 3.4vw, 44px);
  border-bottom: 1px solid var(--astro-line);
}

.liuyao-head > div:first-child {
  min-width: 0;
}

.liuyao-head .astro-kicker,
.liuyao-result-head .astro-kicker,
.liuyao-texts-head .astro-kicker {
  margin-bottom: 8px;
  text-align: left;
}

.liuyao-head .astro-kicker {
  margin-bottom: 7px;
}

.liuyao-head h1 {
  margin: 0;
  font-family: var(--astro-font);
  font-size: clamp(30px, 2.7vw, 36px);
  font-weight: 400;
  letter-spacing: 0.1em;
}

.liuyao-head > div > p:last-child {
  min-width: 0;
  margin: 4px 0 0;
  color: var(--astro-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  letter-spacing: 0.04em;
}

.liuyao-head-symbol {
  display: grid;
  gap: 7px;
  width: 54px;
  padding-bottom: 0;
  opacity: 0.46;
}

.liuyao-head-symbol i {
  height: 6px;
  border-radius: 2px;
  background: #76617d;
}

.liuyao-head-symbol i:nth-child(2) {
  background: linear-gradient(90deg, #76617d 42%, transparent 42% 58%, #76617d 58%);
}

.liuyao-loading {
  display: grid;
  min-height: 470px;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--astro-muted);
  text-align: center;
}

.liuyao-loading span {
  color: var(--astro-coral);
  font-size: 25px;
  animation: liuyao-loader 1.8s ease-in-out infinite;
}

.liuyao-loading p {
  margin: 0;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
}

@keyframes liuyao-loader {
  50% {
    opacity: 0.36;
    transform: rotate(90deg) scale(0.82);
  }
}

.liuyao-workspace {
  display: grid;
  grid-template-columns: minmax(270px, 0.32fr) minmax(0, 0.68fr);
  min-height: 0;
}

.liuyao-controls {
  padding: clamp(20px, 2vw, 26px);
  border-right: 1px solid var(--astro-line);
  background: rgba(255, 253, 247, 0.15);
}

.liuyao-time-head,
.liuyao-control-foot,
.liuyao-result-head,
.liuyao-texts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.liuyao-time-head > span,
.liuyao-zone,
.liuyao-result-head > span,
.liuyao-texts-head > p,
.liuyao-footer {
  color: var(--astro-muted);
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
}

#liuyaoClock {
  display: block;
  margin-top: 9px;
  font-family: var(--astro-font);
  font-size: clamp(20px, 2vw, 25px);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.liuyao-zone {
  margin: 4px 0 0;
}

.liuyao-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0 8px;
}

.liuyao-pillar {
  padding: 6px 3px;
  text-align: center;
}

.liuyao-pillar span,
.liuyao-pillar strong {
  display: block;
}

.liuyao-pillar span {
  margin-bottom: 3px;
  color: var(--astro-muted);
  font-size: var(--text-xs);
}

.liuyao-pillar strong {
  font-family: var(--astro-font);
  font-size: 18px;
  font-weight: 400;
}

.liuyao-empty-branch {
  margin: 0;
  font-size: var(--text-sm);
}

.liuyao-coins {
  display: flex;
  justify-content: center;
  gap: clamp(9px, 1vw, 13px);
  margin: clamp(14px, 2vh, 18px) 0 14px;
  perspective: 600px;
}

.liuyao-coin {
  position: relative;
  display: block;
  width: clamp(62px, 5vw, 68px);
  height: clamp(62px, 5vw, 68px);
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--muted) 72%, transparent);
  box-shadow: 0 5px 7px rgba(64, 43, 31, 0.18), 0 14px 24px rgba(91, 62, 47, 0.16);
  transform: rotateX(16deg);
  transform-style: preserve-3d;
}

.liuyao-coin img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.liuyao-coins.is-tossing span {
  animation: liuyao-toss 0.65s ease-in-out;
}

.liuyao-coins.is-tossing span:nth-child(2) {
  animation-delay: 40ms;
}

.liuyao-coins.is-tossing span:nth-child(3) {
  animation-delay: 80ms;
}

@keyframes liuyao-toss {
  50% {
    transform: translateY(-22px) rotateY(360deg) rotateX(25deg);
  }
}

.liuyao-cast {
  width: 100%;
  letter-spacing: 0.06em;
}

.liuyao-status {
  min-height: 22px;
  margin: 7px 0 0;
  color: #65566d;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  text-align: center;
}

.liuyao-error {
  min-height: 10px;
  margin: 0;
  color: #a03553;
  font-size: var(--text-xs);
  text-align: center;
}

.liuyao-control-foot {
  margin-top: 4px;
}

.liuyao-progress {
  display: flex;
  gap: 7px;
}

.liuyao-progress i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(119, 99, 124, 0.2);
}

.liuyao-progress i.is-done {
  background: #b48bb0;
}

.liuyao-results {
  min-width: 0;
  padding: clamp(20px, 2vw, 26px);
}

.liuyao-result-head .astro-kicker {
  margin-bottom: 7px;
}

.liuyao-result-head h2,
.liuyao-texts-head h2 {
  margin: 0;
  font-family: var(--astro-font);
  font-size: 29px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.liuyao-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 10px;
}

.liuyao-chart {
  min-width: 0;
  padding: 10px;
}

.liuyao-chart-summary > small,
.liuyao-chart-meta {
  color: var(--astro-muted);
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
}

.liuyao-chart-summary {
  min-height: 66px;
}

.liuyao-chart-summary h3 {
  margin: 4px 0 2px;
  font-family: var(--astro-font);
  font-size: 20px;
  font-weight: 400;
}

.liuyao-chart-summary .liuyao-chart-meta {
  display: block;
}

.liuyao-chart-rows {
  margin-top: 7px;
}

.liuyao-chart-columns,
.liuyao-chart-row {
  display: grid;
  grid-template-columns: 30px minmax(60px, auto) minmax(32px, 1fr) minmax(60px, auto) 26px;
  align-items: center;
  gap: 4px;
}

.liuyao-chart-columns {
  min-height: 24px;
  color: var(--astro-muted);
  font-size: var(--text-xs);
  text-align: center;
}

.liuyao-chart-row {
  min-height: 32px;
  border-top: 1px solid rgba(120, 93, 117, 0.12);
  font-size: var(--text-xs);
}

.liuyao-bar {
  position: relative;
  height: 7px;
  border-radius: 2px;
  background: #695575;
}

.liuyao-bar.is-yin {
  background: linear-gradient(90deg, #695575 42%, transparent 42% 58%, #695575 58%);
}

.liuyao-bar.is-waiting {
  background: rgba(105, 85, 117, 0.12);
}

.liuyao-chart-row.is-moving .liuyao-bar {
  background-color: #b66683;
}

.liuyao-chart-row.is-moving .liuyao-bar.is-yin {
  background: linear-gradient(90deg, #b66683 42%, transparent 42% 58%, #b66683 58%);
}

.liuyao-fushen,
.liuyao-relation {
  white-space: nowrap;
}

.liuyao-fushen {
  min-width: 0;
  color: #806682;
}

.liuyao-role {
  color: #a85374;
  font-weight: 700;
  white-space: nowrap;
}

.liuyao-pending {
  display: grid;
  min-height: 230px;
  place-items: center;
  color: var(--astro-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  text-align: center;
}

.liuyao-texts {
  padding: clamp(30px, 4vw, 52px) clamp(28px, 4.4vw, 62px);
  border-top: 1px solid var(--astro-line);
}

.liuyao-texts-head {
  align-items: flex-end;
}

.liuyao-texts-head > p {
  margin: 0;
}

.liuyao-text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 54px);
  margin-top: 28px;
}

.liuyao-text-placeholder {
  grid-column: 1 / -1;
  min-height: 120px;
  margin: 0;
  color: var(--astro-muted);
  font-size: var(--text-sm);
}

.liuyao-text-block > small,
.liuyao-tuan small {
  color: var(--astro-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
}

.liuyao-text-block h3 {
  margin: 7px 0 17px;
  font-family: var(--astro-font);
  font-size: 26px;
  font-weight: 400;
}

.liuyao-text-block p {
  margin: 9px 0;
  font-family: var(--astro-font);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.liuyao-tuan {
  margin: 21px 0;
  padding: 17px 0;
  border-top: 1px solid var(--astro-line);
  border-bottom: 1px solid var(--astro-line);
}

.liuyao-text-block p.is-active {
  margin-inline: -8px;
  padding: 5px 8px;
  border-radius: 8px;
  color: #963d65;
  background: rgba(245, 220, 231, 0.54);
}

.liuyao-footer {
  padding: 0 clamp(28px, 4.4vw, 62px) 28px;
}

.liuyao-footer > p {
  margin: 0 0 7px;
}

.liuyao-footer summary {
  width: fit-content;
  cursor: pointer;
}

.liuyao-footer details p {
  max-width: 760px;
  margin: 8px 0 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 920px) {
  body.astro-page {
    background-attachment: scroll;
  }

  .astro-shell {
    padding: 18px clamp(14px, 3vw, 28px) 26px;
  }

  .astro-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .astro-nav > p {
    display: none;
  }

  .divination-tabs {
    width: min(100%, 330px);
  }

  .astro-board {
    grid-template-columns: 1fr;
    width: min(100%, 690px);
    min-height: 0;
  }

  .liuyao-board {
    width: min(100%, 760px);
  }

  .liuyao-workspace {
    grid-template-columns: 1fr;
  }

  .liuyao-controls {
    border-right: 0;
    border-bottom: 1px solid var(--astro-line);
  }

  .liuyao-coins {
    margin-block: 34px 25px;
  }

  .astro-cast-panel,
  .astro-reading-panel {
    padding: clamp(28px, 6vw, 50px);
  }

  .astro-cast {
    margin: 0;
    padding: 38px 0;
  }

  .astro-reading-panel {
    min-height: 410px;
    border-top: 1px solid var(--astro-line);
    border-left: 0;
  }

  .astro-empty {
    min-height: 300px;
  }
}

@media (max-width: 540px) {
  .astro-nav {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 14px;
  }

  .divination-tabs {
    width: min(100%, 330px);
    margin-bottom: 0;
  }

  .divination-tab {
    min-height: 44px;
  }

  .astro-home span {
    display: none;
  }

  .astro-home img {
    width: 47px;
  }

  .liuyao-head,
  .liuyao-controls,
  .liuyao-results,
  .liuyao-texts {
    padding: 27px 20px;
  }

  .liuyao-head h1 {
    font-size: 35px;
  }

  .liuyao-head-symbol {
    display: none;
  }

  .liuyao-time-head {
    align-items: flex-start;
  }

  .liuyao-charts,
  .liuyao-text-grid {
    grid-template-columns: 1fr;
  }

  .liuyao-chart-row {
    grid-template-columns: 28px minmax(56px, auto) minmax(32px, 1fr) minmax(56px, auto) 22px;
    gap: 4px;
  }

  .liuyao-chart-columns {
    grid-template-columns: 28px minmax(56px, auto) minmax(32px, 1fr) minmax(56px, auto) 22px;
    gap: 4px;
  }

  .liuyao-texts-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .liuyao-footer {
    padding: 0 20px 24px;
  }

  .astro-cast-panel,
  .astro-reading-panel {
    padding: 28px 20px;
  }

  .astro-intro h1 {
    font-size: clamp(32px, 10vw, 42px);
    letter-spacing: 0.08em;
  }

  .astro-intro > p:last-child {
    font-size: var(--text-sm);
  }

  .astro-cast {
    gap: 6px;
    padding: 34px 0 32px;
  }

  .astro-kind {
    margin-bottom: 14px;
    letter-spacing: 0.08em;
  }

  .astro-solid {
    width: clamp(76px, 25vw, 96px);
    height: clamp(78px, 25.5vw, 99px);
    margin-bottom: 13px;
  }

  .astro-facet {
    inset: 13px 11px 12px;
  }

  .astro-name {
    font-size: var(--text-sm);
  }

  .astro-reading-panel {
    min-height: 390px;
  }

  .astro-empty {
    min-height: 285px;
  }

  .astro-reading-row {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 14px;
    min-height: 112px;
  }

  .astro-reading-number {
    display: none;
  }

  .astro-reading-row h2 {
    font-size: 20px;
  }

  .astro-reading-row p {
    font-size: var(--text-sm);
  }

  .astro-note {
    line-height: 1.6;
  }
}

@media (max-width: 360px) {
  .astro-cast-panel,
  .astro-reading-panel {
    padding-inline: 15px;
  }

  .astro-kind {
    letter-spacing: 0;
  }
}
