/* 起卦抽签四页共用（www/gongju/liuyao-qigua / meihua-yishu / guanyin-lingqian / guandi-lingqian.html）；两种灵签主题另见 qigua-lingqian.css。
 * 变量一律 --c-*（CssTokenTest）。动画尊重 prefers-reduced-motion。 */
#qgApp [hidden] { display: none !important; }
.qg-h1 { font-family: var(--font-serif); }
.qg-card { padding-top: 12px; }

.qg-hint { margin: 0 0 12px; color: var(--c-ink-2); font-size: var(--t-sm); line-height: 1.7; }
.qg-cap { text-align: center; min-height: 1.6em; margin: 10px 0; color: var(--c-ink); }
.qg-msg { color: var(--c-danger); text-align: center; min-height: 0; margin: 6px 0 0; }
.qg-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.qg-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-bottom: 12px; }
.qg-bar input[type=datetime-local] { flex: 1 1 200px; max-width: 260px; min-width: 0; padding: 9px 10px; border: 1px solid var(--c-line); border-radius: var(--radius); font: inherit; font-size: 15px; background: #fff; }
.qg-seg span { padding: 9px 16px; }

/* 舞台：深色案台衬底（纯 CSS，无图片） */
.qg-stage { position: relative; border-radius: 14px; padding: 18px 12px; background: radial-gradient(120% 90% at 50% 0%, #4a2a1a 0%, #2a160d 60%, #1c0f08 100%); color: #f6ead2; overflow: hidden; }
/* AI 衬底：各页把 --qg-bg 设在舞台上；遮罩色按页定（--qg-veil），保证铜钱 / 卦线 / 文字对比度 */
.qg-stage-ly { --qg-veil: linear-gradient(rgba(28, 15, 8, .74), rgba(28, 15, 8, .86)); }
.qg-stage-mh { --qg-veil: linear-gradient(rgba(24, 12, 30, .5), rgba(20, 10, 24, .78)); }
.qg-stage-ly, .qg-stage-mh { background: var(--qg-veil), var(--qg-bg, none) center 30% / cover no-repeat, radial-gradient(120% 90% at 50% 0%, #4a2a1a 0%, #2a160d 60%, #1c0f08 100%); }
.qg-aigc { position: absolute; left: 12px; bottom: 6px; z-index: 4; margin: 0; font-size: 11px; opacity: .65; pointer-events: none; }
.qg-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 2px, transparent 2px 7px); }

/* ---------- 六爻：铜钱 ---------- */
.qg-stage-ly { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 14px; align-items: center; min-height: 250px; }
.qg-coins { display: flex; justify-content: center; gap: 14px; perspective: 700px; }
.qg-coin { width: 64px; height: 64px; }
.qg-coin-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.qg-toss .qg-coin { animation: qgHop 1s cubic-bezier(.3,.6,.4,1) both; }
.qg-toss .qg-coin:nth-child(2) { animation-delay: .06s; }
.qg-toss .qg-coin:nth-child(3) { animation-delay: .12s; }
@keyframes qgHop { 0% { transform: translateY(0); } 40% { transform: translateY(-70px); } 75% { transform: translateY(0); } 88% { transform: translateY(-8px); } 100% { transform: translateY(0); } }
.qg-coin-f { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: radial-gradient(circle at 35% 30%, #f3d58a, #c8963c 55%, #8a5f1e 100%); box-shadow: inset 0 0 0 3px #9a6a22, inset 0 0 0 5px #e9c675, 0 3px 8px rgba(0,0,0,.45); }
/* 方孔 */
.qg-coin-f::before { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; background: #2a160d; box-shadow: 0 0 0 2px #9a6a22; }
.qg-coin-zi i { position: absolute; font-style: normal; font-family: var(--font-serif); font-weight: 700; font-size: 14px; color: #5b3a10; line-height: 1; }
.qg-coin-zi i:nth-child(1) { left: 50%; top: 7px; transform: translateX(-50%); }
.qg-coin-zi i:nth-child(2) { left: 50%; bottom: 7px; transform: translateX(-50%); }
.qg-coin-zi i:nth-child(3) { right: 8px; top: 50%; transform: translateY(-50%); }
.qg-coin-zi i:nth-child(4) { left: 8px; top: 50%; transform: translateY(-50%); }
/* 背面：无字，只有两道月纹 */
.qg-coin-bei { transform: rotateY(180deg); background: radial-gradient(circle at 60% 30%, #e7c578, #b5832f 55%, #7a521a 100%); }
.qg-coin-bei::after { content: ""; position: absolute; left: 14px; right: 14px; top: 9px; height: 10px; border-radius: 0 0 50% 50%; border-bottom: 2px solid #8a5f1e; }

/* 已成之爻：初爻在最下 */
.qg-build { display: flex; flex-direction: column-reverse; gap: 8px; min-height: 216px; justify-content: flex-start; }
.qg-line { display: grid; grid-template-columns: 34px minmax(0, 1fr) 18px; grid-template-areas: "pos bar mk" ". why why"; column-gap: 6px; align-items: center; animation: qgGrow .45s ease-out both; }
.qg-line-pos { grid-area: pos; font-size: 13px; color: #d8c39a; }
.qg-line .qg-y { grid-area: bar; }
.qg-line-mk { grid-area: mk; color: #ffcf6b; font-weight: 700; text-align: center; }
.qg-line-why { grid-area: why; font-size: 12px; color: #bfa77c; }
.qg-line-mv .qg-y i { background: #ffcf6b; box-shadow: 0 0 10px rgba(255,207,107,.6); }
@keyframes qgGrow { from { opacity: 0; transform: scaleX(.2); } to { opacity: 1; transform: none; } }

/* 爻画：阳一整条、阴两段 */
.qg-y { display: flex; gap: 14%; height: 12px; }
.qg-y i { flex: 1; border-radius: 2px; background: #f1dfb5; }
.qg-y-yang i:last-child { display: none; }
.qg-y-yin i { flex: 0 0 43%; }
.qg-y-yin { justify-content: space-between; gap: 0; }

/* ---------- 结果 ---------- */
.qg-res { margin-top: 14px; }
.qg-res-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; }
.qg-arrow { font-size: 24px; color: var(--c-gold); }
.qg-gh { display: flex; align-items: center; gap: 10px; }
.qg-gh > div { display: flex; flex-direction: column; }
.qg-gh-lab { font-size: 12px; color: var(--c-ink-3); }
.qg-gh-name { font-family: var(--font-serif); font-size: 20px; color: var(--c-primary-deep); }
.qg-gh-ex { font-size: 12px; color: var(--c-ink-2); }
.qg-hex { display: flex; flex-direction: column; gap: 4px; width: 46px; }
.qg-hex .qg-y { height: 6px; }
.qg-hex .qg-y i { background: var(--c-ink); }
.qg-hex .qg-y-hi i { background: var(--c-primary); }
.qg-meta { text-align: center; font-size: var(--t-sm); color: var(--c-ink-2); margin: 10px 0; }
.qg-meta b { color: var(--c-primary-deep); }

.qg-zhuang { border: 1px solid var(--c-line); border-radius: 10px; overflow: hidden; background: var(--c-paper-card); }
.qg-zr { display: grid; grid-template-columns: 3.2em minmax(0, 1.5fr) minmax(0, 1fr) 2.2em minmax(0, 1.6fr); gap: 6px; align-items: center; padding: 7px 10px; border-top: 1px solid var(--c-line); font-size: 14px; animation: tyIn .4s ease-out both; animation-delay: var(--d, 0s); }
.qg-zr-h { white-space: nowrap; border-top: 0; background: var(--c-primary-soft); font-size: 12px; color: var(--c-ink-2); animation: none; }
.qg-zr-mv { background: rgba(255, 207, 107, .12); }
.qg-zr em { font-style: normal; font-size: 11px; margin-left: 3px; padding: 0 3px; border-radius: 3px; background: var(--c-line); color: var(--c-ink-2); }
.qg-zr small { color: var(--c-ink-2); }
.qg-zr .qg-y { height: 8px; display: inline-flex; width: 64px; vertical-align: middle; }
.qg-zr .qg-y i { background: var(--c-ink); }
.qg-zr-mv .qg-zbar .qg-y i { background: var(--c-primary); }
.qg-zbar { display: flex; align-items: center; gap: 6px; }
.qg-mk { font-style: normal; color: var(--c-primary); font-weight: 700; }
.qg-shen { color: var(--c-ink-2); }
.qg-sy b { display: inline-block; width: 1.6em; text-align: center; border-radius: 4px; background: var(--c-primary); color: #fff; font-size: 12px; }
.qg-sy .qg-ying { background: var(--c-gold); }

.qg-h3 { font-size: var(--t-md); margin: 16px 0 4px; font-family: var(--font-serif); }
.qg-rule { margin: 0 0 8px; font-size: var(--t-sm); color: var(--c-ink-2); }
.qg-jing { margin: 8px 0; padding: 10px 14px; border-left: 3px solid var(--c-line); background: var(--c-paper-card); border-radius: 0 8px 8px 0; }
.qg-jing-main { border-left-color: var(--c-primary); }
.qg-jing p { margin: 0 0 4px; font-family: var(--font-serif); font-size: 17px; line-height: 1.8; }
.qg-jing-gua { display: block; font-size: 12px; color: var(--c-ink-3); }
.qg-jing a { font-size: var(--t-sm); }
.qg-note { margin: 12px 0 0; color: var(--c-ink-2); font-size: var(--t-sm); background: var(--c-primary-soft); border-radius: 8px; padding: 6px 10px; }

/* ---------- 梅花 ---------- */
.qg-stage-mh { display: grid; grid-template-columns: 170px minmax(0, 1fr); grid-template-areas: "disc calc" "gua gua"; gap: 14px 18px; align-items: center; min-height: 200px; }
.qg-mh-calc { grid-area: calc; }
.qg-mh-gua { grid-area: gua; }
/* 先天八卦盘：起卦时转到所得之卦停在正上方 */
.qg-bagua { grid-area: disc; position: relative; width: 160px; height: 160px; border-radius: 50%; margin: 0 auto;
  background: radial-gradient(circle, rgba(255,207,107,.16) 0 30%, transparent 31%), conic-gradient(from -22.5deg, rgba(255,255,255,.05) 0 45deg, rgba(255,255,255,.1) 0 90deg, rgba(255,255,255,.05) 0 135deg, rgba(255,255,255,.1) 0 180deg, rgba(255,255,255,.05) 0 225deg, rgba(255,255,255,.1) 0 270deg, rgba(255,255,255,.05) 0 315deg, rgba(255,255,255,.1) 0 360deg);
  box-shadow: 0 0 0 2px rgba(255,207,107,.35), 0 0 24px rgba(255,207,107,.15); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.qg-bagua span { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; text-align: center; line-height: 30px; font-size: 24px; color: #e8d3a6;
  transform: rotate(calc(var(--qg-i) * 45deg)) translateY(-60px); transition: color .3s, text-shadow .3s; }
.qg-bagua span.qg-on { color: #ffcf6b; text-shadow: 0 0 12px #ffcf6b; }
.qg-bagua b { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--font-serif); font-size: 28px; color: #f3b9c6; }
.qg-tri-table { display: grid; border: 1px solid var(--c-line); border-radius: 10px; overflow: hidden; }
.qg-tri-table > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 6px 12px; border-top: 1px solid var(--c-line); }
.qg-tri-table > div:first-child { border-top: 0; }
.qg-tri-table .qg-tt-h { background: var(--c-primary-soft); font-size: 12px; color: var(--c-ink-2); }
.qg-tri-table i { font-style: normal; font-size: 18px; color: var(--c-primary-deep); }
.qg-mh-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.qg-mh-steps li { opacity: .15; transform: translateY(6px); transition: opacity .45s, transform .45s; font-size: 15px; line-height: 1.8; }
.qg-mh-steps li.qg-on { opacity: 1; transform: none; }
.qg-mh-steps b { color: #ffcf6b; }
.qg-n { display: inline-block; padding: 0 6px; border-radius: 6px; background: rgba(255,255,255,.08); }
.qg-n i { font-style: normal; color: #ffcf6b; font-weight: 700; }
.qg-tri { font-family: var(--font-serif); font-size: 18px; }
.qg-mh-gua:empty { display: none; }
.qg-mh-gua { margin-top: 14px; }
.qg-three { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; }
.qg-three-i { background: #fbf4e4; color: var(--c-ink); border-radius: 10px; padding: 8px 12px; }
.qg-tiyong { text-align: center; font-size: 15px; }
.qg-tiyong .qg-rel { color: var(--c-primary-deep); font-family: var(--font-serif); font-size: 18px; }
.qg-tiyong span { display: block; font-size: var(--t-sm); color: var(--c-ink-2); }

/* ---------- 灵签：签筒 ---------- */
.qg-stage-lq { display: flex; align-items: flex-end; justify-content: center; gap: 30px; min-height: 260px; }
.qg-tube { position: relative; width: 110px; height: 220px; transform-origin: 50% 100%; }
.qg-shaking { animation: qgShake .16s ease-in-out 10 alternate; }
@keyframes qgShake { from { transform: rotate(-9deg) translateY(-2px); } to { transform: rotate(9deg) translateY(2px); } }
.qg-sticks { position: absolute; left: 14px; right: 14px; bottom: 120px; height: 70px; }
.qg-sticks i { position: absolute; bottom: 0; left: calc((var(--qg-i) - 1) * 6.4px); width: 6px; height: calc(48px + (var(--qg-i) * 7 % 22) * 1px); border-radius: 3px 3px 0 0; background: linear-gradient(#d49a4a, #a96c2a); transform: rotate(calc((var(--qg-i) - 7) * 1.6deg)); transform-origin: 50% 100%; }
.qg-shaking .qg-sticks i { animation: qgJig .12s linear infinite alternate; animation-delay: calc(var(--qg-i) * -.03s); }
@keyframes qgJig { to { translate: 0 -5px; } }
.qg-tube-body { position: absolute; left: 0; right: 0; bottom: 0; height: 130px; border-radius: 10px 10px 16px 16px; background: linear-gradient(90deg, #6b1b14, #b8352a 45%, #7d2017); box-shadow: inset 0 6px 0 #d9a13d, inset 0 -6px 0 #d9a13d, 0 6px 14px rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; }
/* 竖写用「一字宽自动折行」而非 writing-mode（衬线网络字体缺竖排度量会叠字） */
.qg-tube-body span { width: 1em; line-height: 1.15; word-break: break-all; text-align: center; font-family: var(--font-serif); font-size: 26px; font-weight: 700; color: #f6d27d; }
.qg-stick-out { position: absolute; left: 50%; bottom: 120px; width: 18px; height: 120px; margin-left: -9px; border-radius: 4px; background: linear-gradient(90deg, #c88a3c, #e8b870, #c88a3c); opacity: 0; transform: translateY(40px) rotate(0); transition: opacity .3s, transform .6s cubic-bezier(.2,.8,.3,1.3); display: flex; justify-content: center; padding-top: 8px; }
.qg-stick-out b { width: 1em; line-height: 1.1; word-break: break-all; text-align: center; font-family: var(--font-serif); font-size: 13px; color: #6b1b14; }
.qg-out .qg-stick-out { opacity: 1; transform: translate(70px, -10px) rotate(28deg); }

/* 筊杯：半月形，平面浅、凸面深 */
.qg-jiao { position: relative; display: flex; gap: 18px; padding-bottom: 6px; }
.qg-bei { width: 58px; height: 28px; border-radius: 58px 58px 6px 6px; background: linear-gradient(#c23a2c, #7d2017); box-shadow: 0 4px 8px rgba(0,0,0,.45); transition: background .2s; }
.qg-throw .qg-bei { animation: qgJiao 1.2s cubic-bezier(.3,.6,.4,1) both; }
.qg-throw .qg-bei:nth-child(2) { animation-delay: .08s; }
@keyframes qgJiao { 0% { transform: translateY(0) rotate(0); } 45% { transform: translateY(-120px) rotate(540deg); } 80% { transform: translateY(0) rotate(900deg); } 90% { transform: translateY(-10px) rotate(940deg); } 100% { transform: translateY(0) rotate(1080deg); } }
.qg-a-flat .qg-bei:nth-child(1), .qg-b-flat .qg-bei:nth-child(2) { border-radius: 6px; height: 22px; background: linear-gradient(#e8b16a, #c27a35); }
.qg-sheng .qg-bei { box-shadow: 0 0 0 3px #ffcf6b, 0 4px 12px rgba(255,207,107,.5); }

/* 签文卡 */
.qg-lot { margin-top: 14px; border: 1px solid var(--c-line); border-radius: 12px; padding: 14px 16px; background: var(--c-paper-card); }
.qg-lot header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.qg-lot header b { font-family: var(--font-serif); font-size: 22px; color: var(--c-primary-deep); }
.qg-lot-sys { font-size: 12px; color: var(--c-ink-3); }
.qg-lot-t { font-family: var(--font-serif); color: var(--c-ink-2); }
.qg-lv { font-size: 12px; padding: 1px 8px; border-radius: 10px; background: var(--c-line); }
.qg-lv-good { background: var(--c-primary); color: #fff; }
.qg-lv-bad { background: var(--c-ink-3); color: #fff; }
.qg-poem { display: flex; flex-direction: row-reverse; justify-content: center; align-items: flex-start; gap: 16px; margin: 14px 0; }
.qg-poem p { margin: 0; display: flex; flex-direction: column; align-items: center; font-family: var(--font-serif); font-size: 20px; line-height: 1.3; animation: tyIn .5s ease-out both; animation-delay: var(--d, 0s); }
.qg-lot-note { margin: 0 0 6px; font-size: 12px; color: var(--c-ink-3); text-align: center; }
.qg-will { font-size: var(--t-sm); margin: 0; }
.qg-will b { margin-right: 6px; color: var(--c-primary-deep); }
.qg-lot footer { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.qg-explain h3 { font-size: var(--t-md); margin: 14px 0 4px; }
.qg-rules { margin: 0; padding-left: 1.4em; line-height: 1.8; }

/* ---------- 分享、重现提示、我的记录 ---------- */
.qg-share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 12px 0 0; }
.qg-share span { font-size: 12px; color: var(--c-ink-3); }
.qg-replay { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: var(--c-primary-soft); font-size: var(--t-sm); color: var(--c-ink-2); }
.qg-rec { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--c-line); }
.qg-rec:empty { display: none; }
.qg-rec-hd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.qg-rec h3 { margin: 0; font-size: var(--t-md); font-family: var(--font-serif); }
.qg-rec h4 { margin: 12px 0 4px; font-size: 14px; }
.qg-rec-hd span, .qg-rec-empty, .qg-rec-foot, .qg-rec-login { font-size: 12px; color: var(--c-ink-3); }
.qg-rec-empty, .qg-rec-login { margin: 6px 0 0; }
.qg-rec-foot { margin: 6px 0 0; }
.qg-rec-list { list-style: none; margin: 6px 0 0; padding: 0; }
.qg-rec-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--c-line); font-size: 14px; }
.qg-rec-list time { font-size: 12px; color: var(--c-ink-3); white-space: nowrap; }
.qg-rec-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qg-rec-list a { white-space: nowrap; }
.qg-rec-list em { font-style: normal; font-size: 12px; color: var(--c-ink-3); white-space: nowrap; }
.qg-rec-btn { border: 1px solid var(--c-line); background: none; border-radius: 6px; padding: 2px 8px; font: inherit; font-size: 12px; color: var(--c-ink-2); cursor: pointer; white-space: nowrap; }
.qg-rec-btn:hover { border-color: var(--c-primary); color: var(--c-primary-deep); }
.qg-rec-auto { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }

/* ---------- 侧栏互链、卦一览 ---------- */
.qg-layout { margin-top: 0; }
/* 宽屏侧栏吸顶：起卦结果很长，滚下去右栏不留白（窄屏侧栏落到主栏下，不吸顶） */
@media (min-width: 980px) { .qg-layout > .aside { position: sticky; top: 72px; } }
.qg-sib { display: grid; gap: 8px; }
.qg-sib-i { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--c-line); border-radius: 10px; color: var(--c-ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.qg-sib-i:hover { border-color: var(--c-primary); transform: translateY(-1px); }
.qg-sib-i b { display: block; color: var(--c-primary-deep); }
.qg-sib-i small { color: var(--c-ink-3); font-size: 12px; }
.qg-sib-ic { flex: 0 0 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 20px; background: var(--c-primary-soft); color: var(--c-primary-deep); }
.qg-gua-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.qg-gua-grid a, .qg-gua-grid li > i:first-child { display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 6px; padding: 6px 8px; border-radius: 8px; color: var(--c-ink); text-decoration: none; }
.qg-gua-grid a:hover { background: var(--c-primary-soft); }
.qg-gua-grid i { grid-row: span 2; font-style: normal; font-size: 26px; line-height: 1.2; color: var(--c-primary-deep); }
.qg-gua-grid b { font-size: 14px; font-weight: 600; }
.qg-gua-grid small { font-size: 12px; color: var(--c-ink-3); }

@media (max-width: 560px) {
  .qg-rec-list li { grid-template-columns: minmax(0, 1fr) auto auto; }
  .qg-rec-list time { grid-column: 1 / -1; }
  .qg-stage-mh { grid-template-columns: minmax(0, 1fr); grid-template-areas: "disc" "calc" "gua"; }
  .qg-bagua { width: 132px; height: 132px; }
  .qg-bagua span { transform: rotate(calc(var(--qg-i) * 45deg)) translateY(-48px); font-size: 20px; }
  .qg-stage-ly { grid-template-columns: minmax(0, 1fr); }
  .qg-coin { width: 58px; height: 58px; }
  .qg-coin-zi i { font-size: 11px; }
  .qg-coin-zi i:nth-child(1) { top: 5px; } .qg-coin-zi i:nth-child(2) { bottom: 5px; }
  .qg-coin-zi i:nth-child(3) { right: 5px; } .qg-coin-zi i:nth-child(4) { left: 5px; }
  .qg-coin-f::before { width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; }
  .qg-three { flex-direction: column; }
  /* 竖排时箭头朝下（ty-reveal 的 transform 动画会盖掉 rotate，故换字符） */
  .qg-three .qg-arrow { font-size: 0; line-height: 1; }
  .qg-three .qg-arrow::after { content: "↓"; font-size: 22px; }
  .qg-coins { padding-top: 40px; }
  .qg-build { min-height: 0; }
  .qg-zr { grid-template-columns: 2.6em minmax(0, 1.4fr) minmax(0, 1fr) 1.8em minmax(0, 1.4fr); gap: 4px; padding: 6px; font-size: 13px; }
  .qg-zr .qg-y { width: 44px; }
  .qg-zr small { display: block; }
  .qg-stage-lq { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .qg-bagua { transition: none; }
  .qg-toss .qg-coin, .qg-throw .qg-bei, .qg-shaking, .qg-shaking .qg-sticks i, .qg-line, .qg-zr, .qg-poem p { animation: none !important; }
}
