/* 六爻问事确认稿：只收敛输入页，不改变起卦流程。 */
.oracle-screen[data-screen="oracle-question"] .oracle-input-shell {
  position: relative;
}

.oracle-screen[data-screen="oracle-question"] .oracle-question-input {
  padding-bottom: 42px;
}

.oracle-screen[data-screen="oracle-question"] .oracle-question-count {
  position: absolute;
  right: 22px;
  bottom: 16px;
  z-index: 2;
  margin: 0;
  color: rgba(49, 64, 76, 0.64);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.02em;
  pointer-events: none;
}

/* 按钮本体不铺色：纹样通过正片叠底融入纸面，避免出现独立色块。 */
.oracle-screen[data-screen="oracle-question"] .oracle-button.ritual {
  position: relative;
  isolation: isolate;
  overflow: visible;
  border: 0;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.oracle-screen[data-screen="oracle-question"] .oracle-button.ritual::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  border-radius: inherit;
  background: url("/prototype/assets/oracle-ink/oracle-cta-bar-metal-jade-v1.webp") center / 100% 100% no-repeat;
  mix-blend-mode: multiply;
  content: "";
  pointer-events: none;
}

.oracle-screen[data-screen="oracle-question"] .oracle-button.ritual::after {
  content: none;
}

.oracle-screen[data-screen="oracle-question"] .ritual-button-kicker,
.oracle-screen[data-screen="oracle-question"] .ritual-button-main,
.oracle-screen[data-screen="oracle-question"] .ritual-button-seal {
  position: relative;
  z-index: 1;
}

@media (min-width: 1180px) {
  .workspace:not(.is-auth-route)[data-current-route="oracle-question"] {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }

  .workspace:not(.is-auth-route) > .oracle-screen[data-screen="oracle-question"] {
    width: calc(100% - 88px);
    max-width: none;
  }

  .oracle-screen[data-screen="oracle-question"].is-active {
    grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
    grid-template-rows: auto minmax(660px, auto);
    gap: 24px;
  }

  .oracle-screen[data-screen="oracle-question"] > .oracle-query {
    min-height: 660px;
    padding: 42px 44px 32px;
  }

  .oracle-screen[data-screen="oracle-question"] .oracle-question {
    padding: 2px 46px 0;
  }

  .oracle-screen[data-screen="oracle-question"] .oracle-question-head {
    padding-right: 34px;
  }

  .oracle-screen[data-screen="oracle-question"] .oracle-question-head strong {
    font-size: 23px;
    transform: translateX(27px);
  }

  .oracle-screen[data-screen="oracle-question"] .oracle-question > small {
    margin-top: 8px;
    margin-left: 27px;
  }

  .oracle-screen[data-screen="oracle-question"] .oracle-question-hint {
    margin-top: 18px;
    margin-left: 27px;
  }

  .oracle-screen[data-screen="oracle-question"] .oracle-input-shell {
    min-height: 270px;
    margin-top: 16px;
    border-radius: 13px;
    background: rgba(255, 255, 252, 0.72);
  }

  .oracle-screen[data-screen="oracle-question"] .oracle-question-input {
    height: 270px;
    min-height: 270px;
    padding: 22px 24px 42px;
    font-size: 16px;
  }

  .oracle-screen[data-screen="oracle-question"] .oracle-voice-button {
    transform: translateX(-48px);
  }

  .oracle-screen[data-screen="oracle-question"] .oracle-voice-button:hover {
    transform: translate(-48px, -1px);
  }

  .oracle-screen[data-screen="oracle-question"] .oracle-button.ritual {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 68px;
    grid-template-areas: "kicker main seal";
    align-items: center;
    justify-items: center;
    column-gap: 10px;
    width: min(72%, 560px);
    height: 82px;
    min-height: 82px;
    aspect-ratio: auto;
    margin: 22px auto 0;
    padding: 8px 24px 10px;
    border-radius: 20px;
    color: var(--oracle-pc-ink);
    filter: none;
    transition: transform 180ms ease, filter 180ms ease;
  }

  .oracle-screen[data-screen="oracle-question"] .oracle-button.ritual:hover {
    filter: brightness(1.02) saturate(1.03);
    transform: translateY(-1px);
    box-shadow: none;
  }

  .oracle-screen[data-screen="oracle-question"] .oracle-button.ritual:active {
    transform: translateY(0) scale(0.99);
  }

  .oracle-screen[data-screen="oracle-question"] .ritual-button-kicker {
    grid-area: kicker;
    display: grid;
    gap: 3px;
    justify-items: center;
    width: 72px;
    padding-right: 18px;
    color: var(--oracle-pc-green);
    font-family: var(--serif);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.1;
  }

  .oracle-screen[data-screen="oracle-question"] .ritual-button-main {
    grid-area: main;
    justify-self: center;
    color: var(--oracle-pc-ink);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.08em;
    transform: translateY(-1px);
  }

  .oracle-screen[data-screen="oracle-question"] .ritual-button-seal {
    position: absolute;
    top: 50%;
    right: auto;
    left: 84.2%;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent;
    color: #fffaf1;
    font-size: 23px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    transform: translate(-50%, -52%);
    text-shadow: 0 1px 1px rgba(73, 20, 16, 0.36);
  }

  .oracle-screen[data-screen="oracle-question"] > .oracle-hero {
    min-height: 660px;
  }

  .oracle-screen[data-screen="oracle-question"] .oracle-entry-visual {
    bottom: 0;
    width: 390px;
    height: 370px;
  }

  .oracle-screen[data-screen="oracle-question"] .oracle-entry-focus {
    top: 0;
    width: 370px;
  }

  .oracle-screen[data-screen="oracle-question"] .oracle-entry-coins {
    top: 120px;
    transform: translateX(-50%) scale(0.82);
  }
}

@media (max-width: 1179px) {
  .oracle-screen[data-screen="oracle-question"] .oracle-button.ritual {
    display: grid;
    align-items: center;
    justify-items: center;
    width: 100%;
    min-height: 64px;
    aspect-ratio: auto;
    margin: 12px auto 4px;
    padding: 6px 18px;
    grid-template-columns: 66px minmax(0, 1fr) 48px;
    grid-template-areas: "kicker main seal";
    column-gap: 8px;
    background: transparent !important;
    box-shadow: none !important;
  }

  .oracle-screen[data-screen="oracle-question"] .oracle-button.ritual::before {
    content: "";
    mix-blend-mode: multiply;
  }

  .oracle-screen[data-screen="oracle-question"] .ritual-button-kicker,
  .oracle-screen[data-screen="oracle-question"] .ritual-button-seal {
    display: grid;
  }

  .oracle-screen[data-screen="oracle-question"] .ritual-button-main {
    color: var(--ink);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1;
    transform: none;
  }

  .oracle-screen[data-screen="oracle-question"] .ritual-button-seal {
    position: absolute;
    top: 50%;
    right: calc(14.7% - 22px);
    left: auto;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fffaf1;
    font-size: 20px;
    line-height: 1;
    transform: translateY(-52%);
    box-shadow: none;
    text-shadow: 0 1px 1px rgba(73, 20, 16, 0.36);
  }
}
