:root{font-family:PingFang SC,Microsoft YaHei,sans-serif;color:#293c33;background:#f5f3ed;font-synthesis:none;font-weight:400;line-height:1.65;--green:#304f41;--muted:#81867a;--line:#dedfd4;--gold:#a5844e;--red:#a26042}.line-name small{display:block;font-size:8px;color:#929a85;line-height:1.2;white-space:nowrap}.container-note{position:absolute;left:50%;top:15px;transform:translate(-50%);font-size:11px;color:#5c604c;background:#f5f3e9dc;border:1px solid #c9bb99;border-radius:16px;padding:5px 15px;white-space:nowrap;pointer-events:none;letter-spacing:1px}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input,summary,canvas{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait}a{color:inherit;text-decoration:none}[hidden]{display:none!important}:focus-visible{outline:3px solid #b48e4c;outline-offset:4px}button{border:0}h1,h2,h3,p{margin:0}h1,h2,h3,.brand{font-family:"Noto Serif SC",Songti SC,SimSun,serif;font-weight:500}.site-header{max-width:1304px;margin:auto;padding:24px 40px;display:flex;align-items:center;gap:20px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px;font-size:23px;letter-spacing:3px}.brand-coin{display:grid;place-items:center;width:33px;height:33px;border:1px solid var(--gold);border-radius:50%;font-size:24px;color:var(--gold);line-height:1;letter-spacing:0}.brand-dot{color:var(--gold);margin:0 9px}.header-note{font-size:12px;letter-spacing:2px;color:var(--muted);margin-left:16px}.text-button{background:none;color:var(--green);padding:7px 0;font-size:13px}.site-header>.text-button{margin-left:auto}main{max-width:1224px;margin:auto;padding:24px 0 20px}.casting-time-bar{grid-area:time}.eyebrow{font-family:inherit;font-size:11px;letter-spacing:3px;color:var(--gold);font-weight:500}.time-field{width:100%}.time-field label{font-size:12px;display:flex;justify-content:space-between;margin-bottom:8px}.time-field label span{color:var(--muted);font-size:10px;letter-spacing:.5px}.time-field input{color:var(--green);background:#fffdf8;border:1px solid #d8dbcf;padding:10px 12px;border-radius:5px;width:100%;font-size:13px;min-height:43px}.time-field input:disabled{background:#eeeee6;color:#737c6d}.time-field small{color:var(--muted);font-size:10px;display:block;margin-top:6px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 300px;grid-template-areas:"casting time" "casting lines";grid-template-rows:auto 1fr;gap:24px}.casting-panel{grid-area:casting;display:flex;flex-direction:column;border:1px solid #d6dacd;border-radius:10px;overflow:hidden;background:#fdfcf8}.panel-top{padding:16px 22px;display:flex;justify-content:space-between;align-items:center;font-size:12px}.panel-top strong{font-weight:400;letter-spacing:1px}.status-dot{display:inline-block;border-radius:100%;width:6px;height:6px;background:#6b8b61;margin-right:9px}.panel-top>span:last-child{font-size:10px;letter-spacing:1px;color:var(--muted)}.scene-wrap{position:relative;flex:1 0 auto;height:420px;background:radial-gradient(ellipse at 50% 30%,#d7dcd0,#e6e6da 80%);overflow:hidden}.scene-wrap canvas{width:100%;height:100%;display:block;touch-action:none;cursor:grab}.scene-wrap canvas:active{cursor:grabbing}.scene-caption{position:absolute;left:24px;right:24px;bottom:16px;display:flex;justify-content:space-between;font-size:10px;letter-spacing:2px;color:#66735f;pointer-events:none}.scene-caption span:first-child{writing-mode:vertical-rl;position:absolute;bottom:14px;left:0;letter-spacing:5px}.scene-caption span:last-child{margin-left:auto}.load-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:#e9ebdff2;padding:35px;text-align:center;font-size:13px}.loading-ring{width:28px;height:28px;border:2px solid #c6cdba;border-top-color:var(--green);border-radius:50%;animation:spin 1.4s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.casting-controls{padding:18px 22px 14px}.status-row{display:flex;gap:14px;justify-content:space-between;align-items:baseline;min-height:30px}.status-row p{font-size:13px}.status-row>span{font-size:10px;color:var(--muted);white-space:nowrap}.shake-track{height:3px;border-radius:3px;background:#e4e7dc;overflow:hidden;margin-top:10px}.shake-track>span{height:100%;display:block;width:0;background:#a6874c;transition:width .08s linear}.controls-bottom{display:flex;justify-content:space-between;align-items:center;min-height:51px;gap:12px}.controls-bottom>span{font-size:11px;color:var(--muted);letter-spacing:1px}.button{border-radius:5px;background:var(--green);color:#fffdf6;font-size:12px;padding:10px 18px;letter-spacing:.5px;min-height:40px;transition:background .15s}.button:hover{background:#47624e}.button span{margin-left:12px}.button.secondary{background:#f5f5ed;border:1px solid #cdd4c5;color:var(--green)}.button.secondary:hover{background:#e9eddf}.lines-panel{grid-area:lines;border:1px solid var(--line);border-radius:10px;padding:22px 23px;background:#efefe6;display:flex;flex-direction:column}.section-label{display:flex;justify-content:space-between;font-size:11px;letter-spacing:1px;color:var(--muted)}.section-label>span:last-child{color:var(--gold);letter-spacing:3px}.lines-heading{margin:27px 0 19px}.lines-heading h2{font-size:19px}.lines-heading p{color:var(--muted);font-size:10px;margin-top:5px;letter-spacing:1px}#lines{list-style:none;padding:0;margin:0;flex:1}#lines li{display:grid;grid-template-columns:38px 1fr 38px 20px;align-items:center;gap:11px;min-height:52px;border-top:1px solid #dde1d4;font-size:11px}.line-number{color:#848d7a;font-size:10px}.line-name{font-size:11px;color:#778270}.pending{opacity:.5}.current .line-name{color:var(--gold)}.yao-symbol{width:82px;height:7px;display:inline-flex;gap:12px;vertical-align:middle}.yao-symbol i{display:block;height:100%;background:#365345;flex:1}.yao-symbol.yang{gap:0}.yao-symbol.moving i{background:var(--red)}.empty-line{height:1px;width:82px;background:#d8dece}.current .empty-line{background:#bfab83}.moving-mark{font-size:9px;color:var(--red);border:1px solid #d8bda7;border-radius:3px;text-align:center;line-height:17px}.moving-mark.blank{border-color:transparent}.legend{border-top:1px solid #d9dfcf;margin-top:10px;padding-top:18px;font-size:9px;color:#8a927f;display:flex;gap:17px}.legend-dot{width:5px;height:5px;background:var(--red);border-radius:100%;display:inline-block;margin-right:5px}.face-note{display:flex;align-items:center;gap:12px;margin-top:25px;padding-top:19px;border-top:1px solid #dde1d5}.face-note p{font-size:10px;line-height:1.9;color:#808876}.mini-coin{width:32px;height:32px;border-radius:50%;border:1px solid #a88d5c;display:grid;place-items:center;color:var(--gold);font-family:serif}.help{margin-top:19px;padding:15px 0;font-size:11px;color:var(--muted);border-bottom:1px solid var(--line)}summary{cursor:pointer;color:#55664e;font-size:12px}summary span{font-size:10px;color:var(--muted);margin-left:15px}.help-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:28px;margin:20px 0 12px}.help-grid b{display:block;font-weight:500;color:var(--green);margin-bottom:5px}.result-section{margin-top:38px;border:1px solid var(--line);background:#fffdf7;border-radius:10px;padding:30px}.result-header{display:flex;justify-content:space-between;align-items:center;gap:15px}.result-header h2{font-size:24px;margin-top:5px}.hexagram-pair{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:27px 0 32px}.hexagram-card{display:flex;align-items:center;gap:29px;border:1px solid #dfe4d7;border-radius:7px;padding:25px;background:#f5f5ee}.small-hexagram{display:flex;flex-direction:column;gap:8px}.small-hexagram .yao-symbol{height:6px;width:66px}.hexagram-card h3{font-size:25px;margin-top:5px}.hexagram-card p{font-size:11px;color:var(--muted);margin-top:6px}.paipan-header{border-top:1px solid var(--line);padding-top:24px;display:flex;align-items:center;gap:15px}.paipan-header h3{font-size:20px}.badge{font-size:10px;color:#667952;background:#edf1e4;border-radius:3px;padding:3px 9px}.provider-note{font-size:10px;color:var(--muted);margin:9px 0}#paipan-status{font-size:12px;color:#8a744f;margin-top:14px}.ganzhi{display:flex;gap:0;background:#f1f3e9;border-radius:5px;padding:15px 0;margin:20px 0}.ganzhi>span{flex:1;text-align:center;border-right:1px solid #dfe3d5}.ganzhi>span:last-child{border:0}.ganzhi small{display:block;font-size:10px;color:var(--muted)}.ganzhi b{font-family:serif;font-size:19px;font-weight:400;letter-spacing:3px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px;min-width:560px}caption{text-align:left;font-size:10px;color:var(--muted);padding-bottom:10px}th,td{padding:14px 12px;text-align:left;border-bottom:1px solid #e5e8dc}thead th{background:#f7f7f0;color:#5f7253;font-weight:400}table small{display:block;color:#8b9380;font-size:10px}td .yao-symbol{margin-left:9px;width:48px;height:5px;gap:7px}td .yao-symbol.yang{gap:0}.position-tag{margin-left:10px;font-size:10px;font-weight:400;color:var(--red)}.result-actions{display:flex;gap:20px;align-items:center;margin-top:20px}.muted{font-size:12px;color:var(--muted);margin:20px 0}.storage-note{color:#9e6a40;font-size:12px;margin:18px 0}footer{max-width:1224px;margin:auto;padding:22px 0 30px;display:flex;justify-content:space-between;border-top:1px solid var(--line);font-size:10px;color:#9ba18f;letter-spacing:1px}dialog{color:var(--green);border:1px solid var(--line);border-radius:10px;background:#fffdf6;padding:30px;max-width:440px;width:calc(100% - 40px)}dialog::backdrop{background:#15281e66}dialog h2{font-size:23px}dialog p{font-size:13px;color:#7f8875;margin:15px 0 25px}dialog>div{display:flex;justify-content:flex-end;gap:12px}@media(min-width:1600px){.scene-wrap{height:460px}}@media(max-width:1320px){main,footer{margin-left:32px;margin-right:32px}.site-header{padding-left:32px;padding-right:32px}}@media(max-width:900px){.workspace{grid-template-columns:minmax(0,1fr) 260px;gap:16px}.lines-panel{padding:19px 17px}.scene-wrap{height:380px}.yao-symbol,.empty-line{width:65px}.header-note{display:none}#lines li{gap:6px}.lines-heading h2{font-size:17px}.legend{gap:10px}}@media(max-width:680px){.site-header{padding:18px 20px}.brand{font-size:21px}.brand-coin{width:29px;height:29px}.site-header>.text-button{font-size:11px}main{margin:0;padding:20px 16px 10px}.time-field{width:100%}.time-field label{margin-bottom:6px}.time-field input{font-size:14px}.time-field small{font-size:10px}.workspace{display:flex;flex-direction:column;gap:18px}.scene-wrap{height:340px}.panel-top{padding:14px 17px}.casting-controls{padding:15px 16px 12px}.status-row p{font-size:12px}.status-row>span{font-size:9px}.controls-bottom>span{font-size:10px}.lines-panel{padding:20px 22px}.lines-heading{margin:15px 0 16px}.lines-heading h2{font-size:19px}#lines li{min-height:46px;grid-template-columns:45px 1fr 42px 24px;gap:18px}.yao-symbol,.empty-line{width:100px}.legend{margin-top:12px;padding-top:13px;font-size:10px;justify-content:space-between}.face-note{margin-top:16px;padding-top:15px}.face-note p{font-size:11px}.help{margin-top:10px}.help-grid{grid-template-columns:1fr;gap:14px}.help summary span{font-size:9px;margin-left:9px}.result-section{padding:21px 16px;margin-top:24px}.result-header{align-items:flex-start}.result-header h2{font-size:21px}.result-header .button{font-size:10px;padding:8px 10px}.hexagram-pair{grid-template-columns:1fr;gap:12px;margin:22px 0}.hexagram-card{padding:20px;gap:27px}.hexagram-card h3{font-size:23px}.result-actions{gap:13px;flex-wrap:wrap}.ganzhi b{font-size:17px;letter-spacing:1px}footer{margin:0 20px;display:block;font-size:9px;padding:20px 0}footer span{display:block;margin-bottom:4px}.scene-caption{left:17px;right:17px;font-size:9px}.scene-caption span:first-child{bottom:10px}.eyebrow{font-size:10px}.status-row{min-height:36px}.time-field input{max-width:100%}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}.loading-ring{animation:none}}
