.qian-page {
  isolation: isolate;
}
.qian-main {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
  padding: 54px 0 32px;
}
.qian-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
}
.qian-eyebrow {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.16em;
}
.qian-intro h1 {
  margin: 12px 0 14px;
  font: 500 clamp(32px, 3.5vw, 46px) / 1.3 var(--display);
}
.qian-lead {
  color: var(--muted);
  font-size: 15px;
}
.qian-edition {
  flex-shrink: 0;
  text-align: right;
  font: 24px/1.5 var(--display);
  color: var(--gold);
}
.qian-edition span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font: 11px/1.5 sans-serif;
  letter-spacing: 0.08em;
}
.qian-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  align-items: start;
  gap: 28px;
}
.qian-draw {
  position: sticky;
  top: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  background: #211f1ae8;
  overflow: hidden;
}
.qian-stage-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.qian-stage-heading h2 {
  font: 22px/1.4 var(--display);
}
.qian-stage-heading > span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.15em;
}
.qian-stage {
  height: 370px;
  position: relative;
}
.qian-stage-word {
  position: absolute;
  top: 15px;
  left: 4px;
  font: 104px/1 var(--display);
  color: #e3b94f0d;
}
.qian-stage-inscription {
  position: absolute;
  right: 7px;
  top: 54px;
  font: 13px/2 var(--display);
  color: var(--muted);
  writing-mode: vertical-rl;
  letter-spacing: 0.3em;
}
.qian-ground {
  position: absolute;
  width: 290px;
  height: 80px;
  border: 1px solid #e3b94f19;
  border-radius: 50%;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, #0008, transparent 65%);
}
.qian-bucket {
  position: absolute;
  width: 188px;
  height: 280px;
  bottom: 40px;
  left: calc(50% - 94px);
  transform-origin: 50% 90%;
}
.qian-mouth {
  position: absolute;
  left: -3px;
  width: 194px;
  height: 55px;
  top: 69px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 10%, #120b06, #3b2415 75%);
  border: 7px solid #ac7741;
  box-shadow:
    inset 0 4px 8px #0008,
    0 -2px 0 #dba566;
}
.qian-sticks {
  position: absolute;
  inset: 0;
}
.qian-sticks i,
.qian-chosen {
  position: absolute;
  width: 15px;
  height: 171px;
  top: 5px;
  left: 45px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(
    90deg,
    #b88649,
    #f2d49b 45%,
    #d3ac6c 78%,
    #a8793d
  );
  box-shadow:
    inset 1px 0 #ffedb79c,
    2px 0 3px #1d0e0980;
  transform-origin: 50% 95%;
  transform: rotate(-18deg);
}
.qian-sticks i::before,
.qian-chosen::before {
  content: '';
  position: absolute;
  inset: 10px 4px auto;
  height: 28px;
  background: #a1432d;
  border-radius: 1px;
}
.qian-sticks i:nth-child(2) {
  left: 58px;
  top: -3px;
  transform: rotate(-13deg);
}
.qian-sticks i:nth-child(3) {
  left: 75px;
  top: 5px;
  transform: rotate(-7deg);
}
.qian-sticks i:nth-child(4) {
  left: 96px;
  top: -12px;
  transform: rotate(2deg);
}
.qian-sticks i:nth-child(5) {
  left: 109px;
  top: 1px;
  transform: rotate(11deg);
}
.qian-sticks i:nth-child(6) {
  left: 127px;
  top: 9px;
  transform: rotate(21deg);
}
.qian-sticks i:nth-child(7) {
  left: 68px;
  top: 23px;
  transform: rotate(-20deg);
}
.qian-sticks i:nth-child(8) {
  left: 116px;
  top: 26px;
  transform: rotate(16deg);
}
.qian-sticks i:nth-child(9) {
  left: 81px;
  top: 35px;
  transform: rotate(-8deg);
}
.qian-sticks i:nth-child(10) {
  left: 95px;
  top: 18px;
  transform: rotate(9deg);
}
.qian-sticks i:nth-child(11) {
  left: 53px;
  top: 36px;
  transform: rotate(-10deg);
}
.qian-sticks i:nth-child(12) {
  left: 111px;
  top: 41px;
  transform: rotate(2deg);
}
.qian-sticks i:nth-child(13) {
  left: 83px;
  top: 49px;
  transform: rotate(4deg);
}
.qian-chosen {
  top: 26px;
  left: 86px;
  width: 21px;
  height: 174px;
  transform: none;
  z-index: 2;
}
.qian-chosen::before {
  background: #883e28;
  height: 8px;
}
.qian-chosen span {
  display: block;
  margin-top: 28px;
  color: #512d16;
  font: 15px/1.5 var(--display);
  text-align: center;
  writing-mode: vertical-rl;
  width: 100%;
}
.qian-wood {
  position: absolute;
  inset: 94px 0 0;
  z-index: 3;
  border-radius: 0 0 48% 48% / 0 0 14% 14%;
  border: 1px solid #7e502a;
  background:
    linear-gradient(
      90deg,
      #29150899,
      transparent 35%,
      #ffe3a516 50%,
      #271408bb
    ),
    repeating-linear-gradient(
      90deg,
      #a46b39 0,
      #92582e 18px,
      #54341d 20px,
      #c38c4e 22px,
      #92582e 24px
    );
  box-shadow:
    inset 0 -8px 12px #3018087a,
    8px 15px 20px #0004;
}
.qian-wood::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.3;
  background: repeating-linear-gradient(
    87deg,
    transparent 0 7px,
    #35210d 8px,
    transparent 9px 12px
  );
  pointer-events: none;
}
.qian-rim {
  position: absolute;
  top: 88px;
  left: -3px;
  width: 194px;
  height: 33px;
  z-index: 4;
  border-radius: 0 0 50% 50%;
  border-bottom: 7px solid #c18c50;
  box-shadow: 0 3px 2px #3b231780;
  pointer-events: none;
}
.qian-band {
  position: absolute;
  left: -1px;
  right: -1px;
  height: 17px;
  border-block: 1px solid #bd9d5b;
  border-radius: 0 0 45% 45% / 0 0 35% 35%;
  background: linear-gradient(
    90deg,
    #44361f,
    #a18b58 42%,
    #7c683f 70%,
    #42311c
  );
  box-shadow: 0 3px 3px #21130880;
  z-index: 1;
}
.qian-band-top {
  top: 25px;
}
.qian-band-bottom {
  bottom: 18px;
}
.qian-seal {
  position: absolute;
  top: 60px;
  left: 72px;
  width: 44px;
  padding: 5px 0;
  text-align: center;
  font: 25px/1.3 var(--display);
  color: #edc687;
  background: #642f22;
  border: 1px solid #d6a35b;
  outline: 2px solid #642f22;
  z-index: 1;
}
.qian-seal span {
  display: block;
}
.qian-status {
  min-height: 46px;
  text-align: center;
  color: var(--ink);
  font-size: 13px;
}
.qian-button {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 30px;
  align-items: center;
  font-size: 17px;
  min-height: 54px;
}
.qian-button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.qian-draw-note {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  margin-top: 14px;
}
.qian-empty {
  min-height: 590px;
  padding: 62px 42px 38px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #2f291d85, #211f1a50);
}
.qian-empty-mark {
  display: block;
  width: 45px;
  height: 56px;
  border: 1px solid #776340;
  color: var(--gold);
  font: 30px/54px var(--display);
  text-align: center;
  margin-bottom: 36px;
}
.qian-empty h2 {
  margin: 18px 0 24px;
  font: 500 clamp(28px, 3vw, 39px) / 1.6 var(--display);
}
.qian-empty > p:not(.qian-eyebrow) {
  color: var(--muted);
  max-width: 340px;
  line-height: 1.9;
}
.qian-empty ul {
  display: flex;
  gap: 10px 18px;
  flex-wrap: wrap;
  list-style: none;
  padding: 25px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 30px;
  color: var(--muted);
  font-size: 12px;
}
.qian-poem-card {
  position: relative;
  border: 1px solid #816b40;
  border-radius: 16px;
  padding: 25px 30px;
  background:
    radial-gradient(ellipse at 90% 0%, #e3b94f12, transparent 75%), #252219;
}
.qian-poem-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--gold);
  font-size: 12px;
}
.qian-poem-meta span:last-child {
  border: 1px solid #6f5b35;
  border-radius: 4px;
  padding: 2px 8px;
}
.qian-poem-card h2 {
  margin: 18px 0;
  font: 32px/1.4 var(--display);
}
.qian-poem {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 16px;
  color: #f0d7a4;
  font: 20px/1.7 var(--display);
  letter-spacing: 0.07em;
}
.qian-meaning {
  margin-top: 24px;
  padding-top: 19px;
  border-top: 1px solid #635232;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.qian-meaning > span {
  flex-shrink: 0;
  color: var(--gold);
  font-size: 11px;
}
.qian-meaning p {
  font-size: 14px;
  line-height: 1.9;
}
.qian-poem-caption {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 18px;
}
.qian-reading-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 16px;
}
.qian-reading-heading h2 {
  font: 21px/1.4 var(--display);
}
.qian-reading-heading span {
  color: var(--muted);
  font-size: 11px;
}
.qian-directions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.qian-direction {
  padding: 22px;
  background: #211f1ae8;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.qian-direction h3 {
  font: 21px/1.4 var(--display);
  margin-bottom: 10px;
}
.qian-direction p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}
.qian-direction:first-child {
  background: #342e1a;
  border-color: #7b6536;
}
.qian-direction:first-child h3 {
  color: var(--gold);
}
.qian-direction:first-child p {
  color: var(--ink);
}
.qian-about {
  margin-top: 32px;
  border-block: 1px solid var(--line);
  color: var(--muted);
}
.qian-about summary {
  cursor: pointer;
  padding: 19px 0;
  min-height: 48px;
  color: var(--ink);
}
.qian-about > div {
  padding: 0 0 22px;
  max-width: 860px;
  font-size: 12px;
  line-height: 1.9;
}
.qian-about p + p {
  margin-top: 10px;
}
/* Ritual motion is owned exclusively by tool-motion.js. */
.qian-stage.is-drawn .qian-chosen {
  transform: translate(63px, -72px) rotate(16deg);
}
@media (max-width: 1050px) {
  .qian-poem {
    grid-template-columns: 1fr;
  }
  .qian-empty {
    padding-inline: 30px;
  }
}
@media (max-width: 850px) {
  .qian-main {
    width: calc(100% - 40px);
    padding-top: 32px;
  }
  .qian-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 26px;
  }
  .qian-edition {
    text-align: left;
    font-size: 18px;
  }
  .qian-edition span {
    display: inline;
    margin-left: 12px;
  }
  .qian-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .qian-draw {
    position: relative;
    top: auto;
  }
  .qian-stage {
    height: 340px;
  }
  .qian-empty {
    min-height: auto;
    padding: 28px;
  }
  .qian-empty-mark {
    display: none;
  }
  .qian-empty h2 {
    font-size: 28px;
  }
  .qian-empty h2 br {
    display: none;
  }
  .qian-poem {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 540px) {
  .qian-page .header {
    width: calc(100% - 32px);
    gap: 12px;
    flex-wrap: wrap;
  }
  .qian-page .daily-nav {
    margin-left: auto;
  }
  .qian-page .daily-nav a {
    min-width: 44px;
    padding-inline: 10px;
  }
  .qian-main {
    width: calc(100% - 32px);
  }
  .qian-intro h1 {
    font-size: 31px;
  }
  .qian-intro h1 em {
    display: block;
  }
  .qian-lead {
    font-size: 13px;
  }
  .qian-draw {
    padding: 20px;
  }
  .qian-stage {
    height: 335px;
  }
  .qian-stage-inscription {
    display: none;
  }
  .qian-ground {
    width: 240px;
  }
  .qian-poem-card {
    padding: 22px;
  }
  .qian-poem {
    grid-template-columns: 1fr;
    font-size: 22px;
    gap: 6px;
  }
  .qian-directions {
    grid-template-columns: 1fr;
  }
  .qian-reading-heading {
    flex-wrap: wrap;
  }
  .qian-empty {
    padding: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .qian-stage *,
  .qian-button {
    animation: none !important;
    transition: none !important;
  }
}
