
#yi-prototype{--paper:#f8f5ee;--ink:#292c29;--sub:#72746b;--line:#dedbd1;--red:#a43930;--soft:#ecefe8;background:var(--paper);color:var(--ink);font:16px/1.65 -apple-system,BlinkMacSystemFont,"Microsoft YaHei",sans-serif;border:1px solid var(--line);border-radius:12px;overflow:hidden;--readsize:18px}
#yi-prototype *{box-sizing:border-box}#yi-prototype button,#yi-prototype input,#yi-prototype select{font:inherit}#yi-prototype button{color:inherit;cursor:pointer}#yi-prototype button:focus-visible,#yi-prototype a:focus-visible{outline:3px solid #657966;outline-offset:3px}#yi-prototype button{min-height:44px;border:1px solid var(--line);background:transparent;border-radius:6px;padding:7px 14px}#yi-prototype button:hover{background:#eeeae0}#yi-prototype button.active,#yi-prototype button.primary{background:var(--ink);color:var(--paper);border-color:var(--ink)}#yi-prototype button.link{border:0;color:var(--red);padding:5px 0;background:none}#yi-prototype .top{display:flex;align-items:center;justify-content:space-between;padding:22px 30px;border-bottom:1px solid var(--line);gap:16px;flex-wrap:wrap}#yi-prototype .brand{display:flex;align-items:center;gap:12px}#yi-prototype .seal{background:var(--red);color:#fff9ec;padding:3px 8px;font:25px/1.25 "SimSun",serif;border-radius:3px}#yi-prototype .brand-name{font:22px/1.3 "Songti SC","SimSun",serif;letter-spacing:3px}#yi-prototype .sub{color:var(--sub);font-size:14px}#yi-prototype .nav{display:flex;gap:6px}#yi-prototype .nav button{border:0;padding:9px 16px}#yi-prototype .main{padding:28px 30px 36px;min-height:590px}#yi-prototype h1,#yi-prototype h2,#yi-prototype h3{font-family:"Songti SC","SimSun",serif;color:var(--ink);font-weight:600;margin:0}#yi-prototype h1{font-size:28px}#yi-prototype h2{font-size:23px}#yi-prototype h3{font-size:20px}#yi-prototype p{margin:10px 0}#yi-prototype .heading{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:24px}#yi-prototype .eyebrow{font-size:13px;letter-spacing:2px;color:var(--sub);margin-bottom:5px}#yi-prototype .work{display:grid;grid-template-columns:minmax(260px,1fr) minmax(280px,1.15fr);gap:40px}#yi-prototype .drawing{border-right:1px solid var(--line);padding-right:36px}#yi-prototype .yaolist{display:flex;flex-direction:column-reverse;gap:8px;margin:24px 0}#yi-prototype .yaorow{display:grid;grid-template-columns:42px 1fr 75px;gap:12px;align-items:center}#yi-prototype .yaorow .line-button{border:0;display:flex;align-items:center;justify-content:center;padding:6px 8px}#yi-prototype .yaorow label{display:flex;align-items:center;gap:7px;min-height:44px;font-size:14px}#yi-prototype input[type=checkbox]{width:18px;height:18px;accent-color:#56644c}#yi-prototype .linebar{display:flex;width:100%;max-width:160px;gap:16px;height:10px}#yi-prototype .linebar i{flex:1;background:var(--ink)}#yi-prototype .yaorow.moving{background:var(--soft);border-radius:5px}#yi-prototype .row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}#yi-prototype .result{padding:22px 0;border-bottom:1px solid var(--line)}#yi-prototype .result:first-child{padding-top:0}#yi-prototype .result-inner{display:flex;align-items:center;gap:25px;margin:14px 0}#yi-prototype .glyph{width:78px;display:flex;flex-direction:column-reverse;gap:5px;flex-shrink:0}#yi-prototype .glyph .linebar{height:7px;gap:11px}#yi-prototype .glyph.mini{width:37px;gap:3px}#yi-prototype .glyph.mini .linebar{height:3px;gap:5px}#yi-prototype .glyph.tri{width:42px;gap:4px}#yi-prototype .glyph.tri .linebar{height:5px;gap:7px}#yi-prototype .result h2{font-size:32px}#yi-prototype .read-action{margin-top:16px}#yi-prototype .quiet{padding-top:22px;color:var(--sub);font-size:14px}#yi-prototype .tabs{display:flex;gap:6px;flex-wrap:wrap}#yi-prototype .search{width:220px;max-width:100%;padding:9px 13px;border:1px solid var(--line);border-radius:6px;background:#fffdf8;color:var(--ink)}#yi-prototype .catalog{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}#yi-prototype .hex-card{text-align:left;display:flex;align-items:center;gap:16px;padding:20px 16px;background:#fcfaf5}#yi-prototype .hex-card strong{display:block;font:21px/1.5 "SimSun",serif}#yi-prototype .hex-card small{color:var(--sub);font-size:13px}#yi-prototype .scroll-table{overflow:auto;max-height:640px;border:1px solid var(--line);border-radius:7px;margin-top:20px}#yi-prototype table{border-collapse:separate;border-spacing:0;width:100%;min-width:690px;text-align:center}#yi-prototype th,#yi-prototype td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:4px;background:var(--paper)}#yi-prototype th{font-weight:400;background:#eeeae0;position:sticky;top:0;z-index:2;min-width:70px}#yi-prototype th:first-child{left:0;z-index:3}#yi-prototype tbody th{z-index:1}#yi-prototype td button{width:100%;border:0;padding:9px 3px;font-family:"SimSun",serif;font-size:18px}#yi-prototype th .glyph{margin:9px auto 4px}#yi-prototype td.selected{background:#e4e9dc}#yi-prototype select{padding:8px 12px;background:#fcfaf5;border:1px solid var(--line);border-radius:5px;color:var(--ink)}#yi-prototype .reading{display:grid;grid-template-columns:190px minmax(0,1fr);gap:35px}#yi-prototype .read-side{border-right:1px solid var(--line);padding-right:25px}#yi-prototype .read-side .glyph{margin:25px 0}#yi-prototype .read-side button{display:block;width:100%;text-align:left;margin-top:5px;border:0}#yi-prototype .read-side .moving-link{background:var(--soft)}#yi-prototype .read-tools{margin:15px 0 25px;display:flex;gap:7px;flex-wrap:wrap}#yi-prototype .read-tools button{font-size:14px}#yi-prototype article{font-size:var(--readsize);line-height:1.95;min-width:0}#yi-prototype .passage{padding:24px 0;border-bottom:1px solid var(--line);scroll-margin-top:20px}#yi-prototype .passage:first-child{padding-top:0}#yi-prototype .passage.is-moving{background:var(--soft);padding:22px 18px;border-left:3px solid #65755a}#yi-prototype .original{font-family:"Songti SC","SimSun",serif;font-size:1.12em;margin:15px 0 12px}#yi-prototype .label{color:var(--sub);font:13px/1.5 -apple-system,sans-serif;letter-spacing:2px;margin-top:15px}#yi-prototype .source-red{color:var(--red)}#yi-prototype .source-rich strong{font-weight:700}#yi-prototype details{margin-top:15px}#yi-prototype summary{color:var(--sub);font-size:14px;cursor:pointer;min-height:40px;padding:7px 0}#yi-prototype .source-rich p{margin:0 0 10px}#yi-prototype .source-page{font-size:12px;color:var(--sub);margin-top:12px}#yi-prototype .pill{display:inline-block;font:12px/1.6 sans-serif;color:#4b6048;background:#e0e7d9;border-radius:3px;padding:2px 7px;margin-left:10px;vertical-align:middle}#yi-prototype .empty{padding:36px 0;color:var(--sub)}#yi-prototype .diagram-pair{display:grid;grid-template-columns:1fr 1fr;gap:28px}#yi-prototype .diagram{border:1px solid var(--line);border-radius:8px;padding:18px 10px;background:#fcfaf5;text-align:center}#yi-prototype .compass{position:relative;width:100%;max-width:390px;aspect-ratio:1;margin:10px auto}#yi-prototype .ring{position:absolute;border:1px solid var(--line);width:64%;height:64%;border-radius:50%;top:18%;left:18%}#yi-prototype .center-label{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-family:"SimSun",serif;color:var(--sub);letter-spacing:4px}#yi-prototype .trigram-node{position:absolute;transform:translate(-50%,-50%);border:0;background:#fcfaf5;display:flex;align-items:center;flex-direction:column;gap:3px;padding:3px 6px;min-width:62px;font-size:16px}#yi-prototype .trigram-node.active{background:#ecefe8;color:var(--ink)}#yi-prototype .trigram-node small{font-size:12px;color:var(--sub)}#yi-prototype .diagram-detail{padding:18px 0;border-bottom:1px solid var(--line);margin-top:12px}#yi-prototype .mobile-toggle{display:none}#yi-prototype .footer{border-top:1px solid var(--line);padding:12px 30px;font-size:12px;color:var(--sub);display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}#yi-prototype a{color:var(--sub)}
@media(max-width:700px){#yi-prototype .top{padding:18px;gap:18px}#yi-prototype .brand-name{font-size:20px}#yi-prototype .nav{width:100%;justify-content:space-between}#yi-prototype .nav button{flex:1;padding:8px 10px}#yi-prototype .main{padding:23px 18px;min-height:500px}#yi-prototype .work{grid-template-columns:1fr;gap:25px}#yi-prototype .drawing{border-right:0;border-bottom:1px solid var(--line);padding:0 0 23px}#yi-prototype .yaolist{max-width:380px;margin:18px auto}#yi-prototype .catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}#yi-prototype .hex-card{padding:15px 10px;gap:12px}#yi-prototype .hex-card strong{font-size:19px}#yi-prototype .reading{display:block}#yi-prototype .read-side{border-right:0;padding:0 0 20px}#yi-prototype .read-side .glyph{display:none}#yi-prototype .read-side .jump-list{display:flex;gap:4px;flex-wrap:wrap;margin-top:12px}#yi-prototype .read-side button{width:auto;padding:6px 10px}#yi-prototype .diagram-pair{display:block}#yi-prototype .diagram.mobile-hidden{display:none}#yi-prototype .mobile-toggle{display:flex;margin-bottom:20px}#yi-prototype .footer{padding:12px 18px}#yi-prototype h1{font-size:25px}#yi-prototype .search{width:100%}}
#yi-prototype .compass{max-width:430px;margin:24px auto;isolation:isolate}
#yi-prototype .taiji{position:absolute;left:33%;top:33%;width:34%;height:34%;pointer-events:none}
#yi-prototype .trigram-node{background:transparent;gap:7px;min-width:58px;padding:5px;font-family:"KaiTi","STKaiti","SimSun",serif;line-height:1.2}
#yi-prototype .trigram-node .glyph.tri{width:48px;gap:5px}
#yi-prototype .trigram-node .glyph.tri .linebar{height:7px;gap:10px}
#yi-prototype .trigram-node .linebar i{background:#201f1b}
#yi-prototype .trigram-node .linebar i:only-child{background:#c52920}
#yi-prototype .trigram-node .gua-name{font-size:20px}
#yi-prototype .trigram-node small{color:var(--ink);font-size:14px}
#yi-prototype .trigram-node.active{background:transparent;outline:1px solid #c9baa0;outline-offset:4px}
@media(max-width:400px){#yi-prototype .trigram-node{gap:5px;min-width:48px;padding:3px}#yi-prototype .trigram-node .glyph.tri{width:38px;gap:4px}#yi-prototype .trigram-node .glyph.tri .linebar{height:6px;gap:8px}#yi-prototype .trigram-node .gua-name{font-size:17px}#yi-prototype .trigram-node small{font-size:12px}}
#yi-prototype .related-links{display:flex;gap:12px 24px;align-items:center;flex-wrap:wrap;padding:18px 30px;border-top:1px solid var(--line)}
#yi-prototype .related-links a{display:inline-flex;align-items:center;gap:10px;min-height:44px;text-decoration:none;color:var(--ink);padding:7px 13px;border:1px solid var(--line);border-radius:6px}
#yi-prototype .related-links a[aria-disabled="true"]{cursor:default}
#yi-prototype .related-links small{font-size:12px;color:var(--sub)}
@media(max-width:700px){#yi-prototype .related-links{padding:16px 18px;gap:10px}#yi-prototype .related-links>.sub{width:100%}}

html{scroll-behavior:smooth}body{margin:0;background:#f8f5ee}#yi-prototype{max-width:1180px;margin:auto;border:0;border-radius:0;overflow:visible}#yi-prototype .main{min-height:65vh}#yi-prototype .top{background:var(--paper)}
#yi-prototype .read-side{position:sticky;top:20px;align-self:start;max-height:calc(100vh - 40px);overflow:auto}#yi-prototype article{overflow-wrap:anywhere}#yi-prototype .source-rich p{margin-bottom:16px}#yi-prototype .reading{grid-template-columns:215px minmax(0,1fr)}#yi-prototype .source-page a{min-height:44px;display:inline-flex;align-items:center}#yi-prototype .extra-reading{margin-top:30px;border-top:1px solid var(--line);padding-top:20px}#yi-prototype .install-help{padding:14px 30px;border-top:1px solid var(--line);font-size:14px;color:var(--sub)}#yi-prototype .install-help summary{font-size:14px}#yi-prototype .font-value{font-size:14px;padding:8px 3px}#yi-prototype .source-rich img{max-width:100%}
@media(max-width:700px){#yi-prototype .read-side{position:static;max-height:none;overflow:visible}#yi-prototype .reading{display:block}#yi-prototype .install-help{padding:14px 18px}#yi-prototype .read-side h1{font-size:24px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Coin throwing: extend the existing paper, ink and cinnabar palette. */
#yi-prototype .toss-work{display:grid;grid-template-columns:1.15fr 1fr;gap:44px;align-items:start}
#yi-prototype .toss-table{padding:26px 28px;background:#fcfaf5;border:1px solid var(--line);border-radius:8px}
#yi-prototype .toss-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
#yi-prototype .toss-top .eyebrow{margin:0;color:var(--red);font-size:14px}
#yi-prototype .coin-tray{display:flex;align-items:center;justify-content:center;gap:20px;height:205px;perspective:700px}
#yi-prototype .coin{width:100px;height:100px;flex-shrink:0;border-radius:50%;border:2px solid #a08754;background:#e9d8aa;box-shadow:inset 0 0 0 5px #e9d8aa,inset 0 0 0 6px #b19a69,0 4px 0 #ac925d,0 9px 15px #614c2314;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#604c29;gap:5px;transform-style:preserve-3d}
#yi-prototype .coin.reverse{background:#e2d8be;border-color:#9e9273;box-shadow:inset 0 0 0 5px #e2d8be,inset 0 0 0 6px #aa9d7c,0 4px 0 #9e9273,0 9px 15px #614c2314}
#yi-prototype .coin-face{font:22px/1.1 'SimSun',serif}
#yi-prototype .coin-hole{width:15px;height:15px;background:#fcfaf5;border:1px solid #a08754}
#yi-prototype .coin-value{font-size:12px;line-height:1.2}
#yi-prototype .rolling .coin{animation:coin-toss .85s ease-in-out var(--delay) both}
@keyframes coin-toss{0%{transform:translateY(0) rotateX(0)}35%{transform:translateY(-34px) rotateX(480deg) rotateZ(10deg)}75%{transform:translateY(-8px) rotateX(900deg)}100%{transform:translateY(0) rotateX(1080deg)}}
#yi-prototype .throw-message{min-height:69px;text-align:center;display:flex;flex-direction:column;justify-content:center;gap:5px;margin-bottom:20px}
#yi-prototype .throw-sum{font-size:21px;letter-spacing:2px}
#yi-prototype .throw-sum strong{color:var(--red);font-weight:600}
#yi-prototype .throw-kind{font-size:14px;color:var(--sub)}
#yi-prototype .toss-button{width:100%;min-height:50px;font-size:18px;letter-spacing:3px}
#yi-prototype button:disabled{cursor:default;opacity:.5}
#yi-prototype .toss-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:14px}
#yi-prototype .toss-bottom button{font-size:14px}
#yi-prototype .toss-lines{padding:26px 0 0}
#yi-prototype .toss-lines .yaolist{gap:10px;margin:22px 0 18px}
#yi-prototype .toss-yao{display:grid;grid-template-columns:38px 1fr 20px 66px;align-items:center;gap:12px;min-height:45px;padding:6px 10px;border-radius:5px}
#yi-prototype .toss-yao.moving{background:var(--soft)}
#yi-prototype .toss-yao.next{outline:1px dashed #c6bba5;outline-offset:-1px}
#yi-prototype .toss-line{display:flex;justify-content:center}
#yi-prototype .line-placeholder{width:100%;max-width:160px;height:1px;border-top:1px dashed #d7d2c6}
#yi-prototype .yao-number{color:var(--sub);font-size:14px;font-variant-numeric:tabular-nums}
#yi-prototype .yao-kind{font-size:14px;white-space:nowrap;color:var(--sub)}
#yi-prototype .yao-kind small{margin-left:4px;color:#4b6048;font-size:12px}
#yi-prototype .toss-note{border-top:1px solid var(--line);padding-top:16px;margin-top:0}
#yi-prototype .toss-results{border-top:1px solid var(--line);margin-top:34px;padding-top:26px}
#yi-prototype .toss-result-grid{display:grid;grid-template-columns:1fr 1fr;gap:44px}
#yi-prototype .toss-result-grid .result{padding-top:0;border-bottom:0}
@media(max-width:850px){#yi-prototype .toss-work{gap:25px}#yi-prototype .coin-tray{gap:12px}#yi-prototype .coin{width:82px;height:82px}}
@media(max-width:700px){#yi-prototype .nav{gap:0}#yi-prototype .nav button{padding:8px 7px;white-space:nowrap;font-size:15px}#yi-prototype .toss-work{grid-template-columns:1fr;gap:24px}#yi-prototype .toss-table{padding:18px}#yi-prototype .coin-tray{height:155px;gap:20px}#yi-prototype .toss-lines{padding:0}#yi-prototype .toss-lines .yaolist{max-width:none;margin:16px 0}#yi-prototype .toss-result-grid{grid-template-columns:1fr;gap:24px}#yi-prototype .toss-result-grid .result{border-bottom:1px solid var(--line);padding-bottom:20px}}
@media(max-width:360px){#yi-prototype .coin{width:68px;height:68px;gap:3px}#yi-prototype .coin-tray{gap:15px}#yi-prototype .coin-face{font-size:18px}#yi-prototype .coin-hole{width:12px;height:12px}#yi-prototype .toss-yao{gap:8px}}
@media(prefers-reduced-motion:reduce){#yi-prototype .rolling .coin{animation:none}}

/* One licensed photograph, two independently displayed faces. */
#yi-prototype .coin-item{display:flex;flex-direction:column;align-items:center;gap:16px;flex-shrink:0}
#yi-prototype .coin{border:0;background:none;box-shadow:none;position:relative;display:block;filter:drop-shadow(0 6px 4px #614c2320)}
#yi-prototype .coin-model{position:absolute;inset:0;transform-style:preserve-3d}
#yi-prototype .coin-model.reverse{transform:rotateY(180deg)}
#yi-prototype .coin-photo{position:absolute;inset:0;display:block;border-radius:50%;backface-visibility:hidden;background-image:url('./assets/qianlong-bao-guang.jpg');background-size:210% auto;background-repeat:no-repeat;background-position:0% center}
#yi-prototype .reverse-photo{transform:rotateY(180deg);background-position:100% center}
#yi-prototype .coin-caption{font-size:14px;color:var(--sub);line-height:1.5;white-space:nowrap}
#yi-prototype .coin-credit{padding:8px 30px 14px;font-size:12px;color:var(--sub)}
#yi-prototype .coin-credit summary{font-size:12px;min-height:30px}
@media(max-width:700px){#yi-prototype .coin-credit{padding:8px 18px 14px}}

/* Illustrated gesture replaces the heavy full-width action. */
#yi-prototype .gesture-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:148px;min-height:142px;margin:0 auto;padding:8px 12px;border:1px solid transparent;border-radius:18px;background:transparent;color:#765636;font-size:15px;letter-spacing:2px;touch-action:manipulation}
#yi-prototype .gesture-button:hover:not(:disabled){background:#f2ebdc;border-color:#e5d8bf}
#yi-prototype .gesture-button:active:not(:disabled){background:#eae0cd}
#yi-prototype .gesture-button:disabled{opacity:.65}
#yi-prototype .gesture-button.is-shaking{opacity:1}
#yi-prototype .shake-hands{display:block;width:112px;height:112px;object-fit:contain;transform-origin:50% 80%}
#yi-prototype .is-shaking .shake-hands{animation:hand-shake .28s ease-in-out infinite alternate}
@keyframes hand-shake{from{transform:rotate(-7deg) translateX(-3px)}to{transform:rotate(7deg) translateX(3px)}}
#yi-prototype .toss-table .coin-tray{height:165px}
#yi-prototype .toss-table .throw-message{min-height:54px;margin-bottom:2px}
@media(max-width:700px){#yi-prototype .toss-table .coin-tray{height:135px}#yi-prototype .gesture-button{min-height:130px}#yi-prototype .shake-hands{width:100px;height:100px}}
@media(prefers-reduced-motion:reduce){#yi-prototype .is-shaking .shake-hands{animation:none}}

/* Soft cinnabar selection and action palette. */
#yi-prototype{--button-selected:#f2e3dc;--button-ink:#963f35;--button-border:#dfbdb0;--button-hover:#f7ece6}
#yi-prototype button:hover:not(:disabled){background:var(--button-hover)}
#yi-prototype button.active,#yi-prototype button.primary{background:var(--button-selected);color:var(--button-ink);border-color:var(--button-border)}
#yi-prototype button.active:hover:not(:disabled),#yi-prototype button.primary:hover:not(:disabled){background:#ead3c9}
#yi-prototype button:active:not(:disabled){background:#ead3c9;color:var(--button-ink)}
#yi-prototype button:focus-visible,#yi-prototype a:focus-visible{outline-color:var(--button-ink)}
#yi-prototype .gesture-button:hover:not(:disabled){background:var(--button-hover);border-color:var(--button-border)}
#yi-prototype .gesture-button:active:not(:disabled){background:var(--button-selected)}
#yi-prototype .trigram-node.active{background:var(--button-selected);color:var(--button-ink);outline-color:var(--button-border)}
