@font-face{font-family:PeakSongHeavy;src:url("assets/peak-song-heavy.a951f7b1b6fc.woff2") format("woff2");font-weight:900;font-style:normal;font-display:swap}
@font-face{font-family:PeakSongRegular;src:url("assets/peak-song-regular.ad76d91b3136.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
:root{color-scheme:dark;--ink:#f3e4bf;--muted:#cbb591;--gold:#e9c77c;--line:#6d5131;--ground:#24180f;--serif:PeakSongHeavy,'Noto Serif SC','SimSun',serif;--sans:'SimHei','Noto Sans SC','Microsoft YaHei','PingFang SC',sans-serif}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 25%,#4b321c 0,#24180f 68%);color:var(--ink);font:14px/1.6 var(--sans)}button,a,input,select{-webkit-tap-highlight-color:transparent}button,select{font:inherit}button{cursor:pointer;color:inherit;border:0;background:none}button:disabled{cursor:not-allowed;opacity:.45}button,a,select,input{outline-offset:5px}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid #ffe2a5}button:hover:not(:disabled){color:#fff3cf}::selection{background:#9c692d;color:#fff7da}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-thumb{background:#977448;border-radius:4px}::-webkit-scrollbar-track{background:#302316}h1,h2,p{margin:0}button[hidden]{display:none!important}a{color:inherit;text-decoration:none}
.site-header{max-width:1400px;margin:auto;padding:22px 34px 16px;display:flex;align-items:center;gap:30px}.site-name{font:900 20px var(--serif);letter-spacing:2px}.site-name span{font:12px var(--sans);letter-spacing:1px;margin-left:15px;color:var(--muted);padding-left:15px;border-left:1px solid var(--line)}.site-header nav{margin-left:auto;display:flex;gap:16px;font-size:12px;color:#e2cbaa}.site-header nav button{padding:11px 0}.site-header nav span{font-variant-numeric:tabular-nums;color:#e9c77c}
main{max-width:1380px;margin:0 auto;padding:0 20px}.game-stage{width:100%;position:relative;aspect-ratio:1380/792;isolation:isolate}.game-art{position:absolute;width:100%;height:100%;inset:0;z-index:-3;object-fit:contain}.stage-top{position:absolute;left:48%;right:10%;top:12%;display:flex;align-items:center;gap:25px}.round-tabs{display:flex;align-items:center;gap:11px}.round-tabs button{min-width:71px;height:35px;color:#e5c493;border-bottom:1px solid #9a743e;font:900 18px var(--serif);letter-spacing:3px}.round-tabs button.active{color:#fff2b4;border-bottom:2px solid #ffdc8a;background:linear-gradient(0deg,#d7a94245,transparent)}.round-tabs button:disabled{opacity:.65}.lock-mark{width:11px;height:11px;display:inline-block;margin-left:4px}
.reward-slot{position:absolute;width:150px;text-align:center;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;padding:0}.reward-slot .medallion{position:relative;width:88px;height:88px;display:grid;place-items:center;background:url('assets/medallion-gold.png') center/contain no-repeat;filter:drop-shadow(0 5px 5px #39200b75);transition:filter .16s,transform .16s}.reward-slot.grade-B .medallion{background-image:url('assets/medallion-deep.png')}.reward-slot.grade-C .medallion,.reward-slot.grade-D .medallion{background-image:url('assets/medallion-silver.png')}.item-icon{width:42px;height:42px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;color:#93652f;filter:drop-shadow(0 1px 0 #fff1c5)}.reward-slot .grade{position:absolute;top:2px;left:0;font:italic 400 17px var(--sans);color:#fff1bb;text-shadow:0 1px 3px #4f2608}.reward-slot .quantity{position:absolute;bottom:11px;right:14px;font-size:11px;color:#62401c;line-height:1;background:#fff1c3c9;border-radius:2px;padding:2px 4px}.reward-name{font:400 13px/1.45 var(--sans);color:#fff1c9;text-shadow:0 1px 3px #2d1505,0 1px 7px #2d1505;max-width:158px;margin-top:7px;overflow-wrap:anywhere}.reward-slot.grade-S .medallion{width:95px;height:95px;background-image:url('assets/medallion-light.png')}.reward-slot.grade-S .grade{font-size:23px;color:#fff0b3;top:-3px;left:3px}.reward-slot.grade-S .item-icon{color:#8d4b20;width:46px;height:46px}.reward-slot.grade-S .reward-name{color:#613b1a;text-shadow:0 1px 0 #ffe5a0;font-weight:900;font-size:15px}.reward-slot:hover .medallion{transform:translateY(-3px);filter:drop-shadow(0 7px 11px #39200b75) brightness(1.1)}.reward-slot.is-current .medallion{filter:drop-shadow(0 0 7px #ffd578) drop-shadow(0 0 20px #ffdf78) brightness(1.3);transform:scale(1.08)}.reward-slot.is-current .medallion:after{content:'';position:absolute;inset:-6px;border:2px solid #fff4b7;border-radius:50%;box-shadow:0 0 15px #ffdf93,inset 0 0 12px #ffdd8c}.reward-slot.obtained{opacity:.55}.obtained-label{position:absolute;top:35px;left:38px;transform:rotate(-12deg);background:#654a26ed;color:#fff1c7;border:1px solid #d7b46e;font-size:12px;letter-spacing:2px;white-space:nowrap;padding:1px 7px}
.light-field{position:absolute;inset:0;pointer-events:none;z-index:-1}.pulse-ring{position:absolute;left:50%;top:53%;width:26%;aspect-ratio:1;border:1px solid #ffed9d;border-radius:50%;transform:translate(-50%,-50%);opacity:0}.travel-light{position:absolute;left:50%;top:53%;width:35%;aspect-ratio:1;border:2px solid transparent;border-top-color:#fff0b0;border-radius:50%;transform:translate(-50%,-50%);opacity:0;filter:drop-shadow(0 0 11px #ffdc80)}.inner-light{position:absolute;left:50%;top:53%;width:20%;aspect-ratio:1;background:radial-gradient(circle,#fff2b988,#fff0b100 66%);transform:translate(-50%,-50%);opacity:0}.game-stage.spinning .pulse-ring{animation:pulse 1.3s ease-out infinite}.game-stage.spinning .travel-light{animation:orbit 1s linear infinite;opacity:.8}.game-stage.spinning .inner-light{opacity:1}.game-stage.revealing .inner-light{animation:flash .55s ease-out}.operation-area{position:absolute;left:50%;top:74%;width:340px;transform:translateX(-50%);text-align:center}.draw-progress{font-size:11px;color:#f6d99d;letter-spacing:1px;margin-bottom:3px}.draw-button{width:217px;height:53px;background:#e6cb8a;color:#65401a;font:900 21px var(--serif);letter-spacing:6px;text-indent:6px;text-shadow:0 1px 0 #fff2c4;padding-bottom:2px;filter:drop-shadow(0 4px 5px #43260f88)}.draw-button:hover:not(:disabled){color:#593010;filter:brightness(1.12) drop-shadow(0 4px 7px #43260f88)}.next-cost{font-size:11px;color:#f0d6a4;margin-top:2px}.next-cost strong{font-weight:500;color:#fff0bb;font-variant-numeric:tabular-nums}.next-cost>span{padding-left:15px;color:#dcc398}.draw-options{display:flex;justify-content:center;gap:16px;margin-top:6px;font-size:11px;color:#d9bf96}.draw-options label{display:flex;align-items:center;gap:5px;cursor:pointer;min-height:22px}.draw-options input{accent-color:#d9ad5c;width:12px;height:12px;margin:0}.stage-footnote{position:absolute;left:9%;right:9%;bottom:2%;display:flex;justify-content:space-between;color:#cdb18a;font-size:11px}#skip-now{position:absolute;bottom:44px;right:-128px;color:#fff0bf;border-bottom:1px solid #d5a866;padding:7px}
.journey{margin:11px 45px 0;display:flex;align-items:stretch;border-top:1px solid #82603a;border-bottom:1px solid #624629;padding:20px 0 17px;gap:45px}.spending{width:225px;flex-shrink:0;border-right:1px solid #624629;padding-right:25px}.spending>span{font-size:11px;color:var(--muted);letter-spacing:1px}.spending>p{line-height:1.2;margin-top:6px}.spending strong{font:900 34px var(--serif);color:#f5d99d;font-variant-numeric:tabular-nums}.spending p>span{font-size:11px;color:var(--muted)}.spending button{font-size:11px;margin-top:11px;padding:0;color:#d0b58e;white-space:nowrap}.spending b{font-weight:400;color:#f0d6a4;margin-left:5px}.spending button>span{margin-left:15px;text-decoration:underline;text-underline-offset:4px}.milestone-area{flex:1;min-width:0}.milestone-heading{display:flex;gap:14px;align-items:baseline}.milestone-heading h2{font:900 18px var(--serif);color:#ecd4a7;letter-spacing:3px}.milestone-heading>span{font-size:11px;color:#bfa47f}.milestone-heading button{margin-left:auto;font-size:11px;color:#d8b98a}.milestone-track{display:flex;justify-content:space-between;position:relative;margin-top:17px}.milestone-track:before{content:'';position:absolute;top:12px;left:24px;right:24px;height:1px;background:#8f6c3b}.milestone{position:relative;display:flex;align-items:center;flex-direction:column;gap:6px;padding:0;min-width:52px;font-size:11px;color:#c7ac83}.milestone>i{width:24px;height:24px;display:grid;place-items:center;border:1px solid #a57b3d;transform:rotate(45deg);background:#372618;position:relative}.milestone i svg{width:14px;height:14px;transform:rotate(-45deg);fill:none;stroke:#d5b270;stroke-width:1.5}.milestone.complete>i{background:#c59a50;box-shadow:0 0 12px #d9ad5055}.milestone.complete i svg{stroke:#3a2510}.milestone>span{font-variant-numeric:tabular-nums}
dialog{padding:0;color:#493d2c;border:0;background:none;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto}dialog::backdrop{background:#160e09bd;backdrop-filter:blur(5px)}.result-dialog{width:700px;overflow:visible}.result-scroll{min-height:440px;position:relative;background:#e9e8e1 url('assets/result-paper-clean.png') center/cover;box-shadow:none;border-top:6px solid #aa8c49;border-bottom:6px solid #aa8c49;margin-left:48px}.scroll-spine{position:absolute;left:-78px;top:-9px;height:calc(100% + 18px);width:90px;object-fit:fill;pointer-events:none}.close-dialog{position:absolute;right:13px;top:11px;color:#6f6248;width:36px;height:36px;font-size:26px;z-index:2;line-height:1}.close-dialog:hover:not(:disabled){color:#382d1c}.result-contents{text-align:center;padding:33px 40px 27px;max-height:calc(100dvh - 70px);overflow:auto}.result-contents h2{font:900 32px var(--serif);letter-spacing:7px;color:#7d5a26}.result-item{display:flex;align-items:center;justify-content:center;gap:20px;margin:18px auto 14px}.result-icon{width:95px;height:95px;background:url('assets/medallion-light.png') center/contain no-repeat;display:grid;place-items:center}.result-icon svg{width:47px;height:47px}.result-item h3{font:900 23px var(--serif);color:#6b451e;margin:0 0 5px}.result-item p{font-size:12px;color:#776343}.result-contents>p{font-size:12px;color:#726245;max-width:440px;margin:0 auto;line-height:1.9}.bonus-title{font:400 15px var(--sans);margin:17px 0 11px;color:#6d512e}.bonus-list{display:flex;flex-wrap:wrap;justify-content:center;gap:7px}.bonus-item{padding:4px 11px;background:#c4b9972b;border-bottom:1px solid #b3a17c;color:#6c5b3b;font-size:11px}.bonus-item b{font-weight:400;color:#95652b;margin-left:5px}.paper-primary{background:#e6cb8a;color:#64441c;font:400 16px var(--sans);min-height:45px;min-width:180px;padding:11px 25px;letter-spacing:2px;margin-top:16px}.paper-primary:hover:not(:disabled){color:#56330c;filter:brightness(1.06)}.result-dialog[open] .result-scroll{animation:scroll-open .55s cubic-bezier(.16,1,.3,1)}.result-dialog[open] .result-item{animation:reward-in .6s cubic-bezier(.16,1,.3,1)}
.selection-dialog{width:1000px;background:#eeece5 url('assets/selection-paper.png') center/cover;box-shadow:0 18px 60px #08050388}.selection-layout{position:relative;display:flex;min-height:590px;color:#56482e}.selection-layout aside{width:110px;flex-shrink:0;background:#9b4628;border-right:5px solid #b79454;padding-top:54px;text-align:center}.selection-layout aside>p{writing-mode:vertical-rl;margin:auto;font:900 32px var(--serif);letter-spacing:11px;color:#f8e3b4}.selection-layout aside>span{display:block;margin-top:35px;font:400 12px/2 var(--sans);color:#ebc993;letter-spacing:4px}.selection-layout>section{padding:33px 36px 25px;flex:1;min-width:0}.selection-layout h2{font:900 26px var(--serif);color:#75522b;letter-spacing:3px}.selection-layout section>p{font-size:12px;color:#70634b;margin-top:7px}.selection-grades{display:flex;gap:20px;border-bottom:1px solid #bdaf91;margin:18px 0}.selection-grades button{padding:11px 15px;color:#867453;min-width:120px;font:400 15px var(--sans)}.selection-grades button.active{color:#78511a;border-bottom:2px solid #a88141}.candidate-list{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;max-height:360px;overflow:auto;padding:2px 11px 7px 2px}.candidate{position:relative;display:flex;flex-direction:column;align-items:center;gap:11px;min-height:145px;padding:13px 7px;border:1px solid #c4b899;background:#f6f1e557;border-radius:3px;color:#6c5a38}.candidate:hover:not(:disabled){background:#fff5d2;color:#63491c}.candidate.selected{border:2px solid #a68037;background:#f2e2ad66;padding:12px 6px}.candidate.selected:after{content:'已选';position:absolute;right:0;top:0;background:#9e7731;color:#fff4cf;font-size:11px;padding:1px 5px}.candidate .result-icon{width:56px;height:56px}.candidate svg{width:28px;height:28px}.candidate-name{font-size:11px;line-height:1.5}.candidate small{font-size:11px;color:#8b7c61}.selection-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:17px;gap:15px}.selection-bottom>span{font-size:11px;color:#7c6846}.selection-bottom .paper-primary{margin:0}.info-dialog{background:#eeeadf url('assets/result-paper.png') center/cover;width:600px;padding:35px 37px 25px;box-shadow:0 18px 60px #08050388;border-top:4px solid #a3874a}.info-dialog h2{font:900 25px var(--serif);color:#6e512b;margin-bottom:20px}.info-dialog p,.info-dialog li{font-size:13px;line-height:1.9;color:#6c5d43}.info-dialog p+p{margin-top:12px}.info-dialog ol{padding-left:22px}.info-dialog button.paper-primary{display:block;margin:22px auto 0}.info-dialog table{border-collapse:collapse;width:100%;font-size:12px}.info-dialog th,.info-dialog td{padding:11px 6px;border-bottom:1px solid #c1b69a;text-align:left;color:#655338}.info-dialog .empty{padding:24px 0;color:#8a7857;text-align:center}.info-dialog .reward-history{list-style:none;padding:0}.reward-history li{display:flex;justify-content:space-between;border-bottom:1px solid #c8bda3;padding:11px 0;gap:15px}
.game-stage[data-round='2'] .reward-slot .medallion{width:76px;height:76px}.game-stage[data-round='2'] .reward-name{font-size:11px;max-width:120px}.game-stage[data-round='2'] .reward-slot .item-icon{width:34px;height:34px}.game-stage[data-round='2'] .reward-slot .quantity{font-size:11px;bottom:11px;right:13px}
@keyframes pulse{0%{opacity:.7;transform:translate(-50%,-50%) scale(.8)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.45)}}@keyframes orbit{to{transform:translate(-50%,-50%) rotate(360deg)}}@keyframes flash{0%{opacity:0}30%{opacity:1;transform:translate(-50%,-50%) scale(3)}100%{opacity:0;transform:translate(-50%,-50%) scale(1)}}@keyframes scroll-open{from{clip-path:inset(0 45% 0 45%);filter:brightness(1.2)}to{clip-path:inset(0);filter:brightness(1)}}@keyframes reward-in{from{transform:translateY(12px) scale(.9);opacity:0}to{transform:none;opacity:1}}
@media(min-width:1600px){.site-header{padding-top:32px}}

@media(prefers-reduced-motion:reduce){body:not([data-motion="full"]) *,body:not([data-motion="full"]) *:before,body:not([data-motion="full"]) *:after{animation:none!important;transition:none!important}body:not([data-motion="full"]) .light-field{display:none}}.reward-slot .reward-name{font-weight:900}.result-item h3,.selection-layout h2,.result-contents h2{font-weight:900}

/* Stable contrast for draw state over the bright original gold plate. */
.draw-progress{display:table;background:#4c2b13ed;border-radius:3px;padding:2px 9px;margin:0 auto 4px;color:#fff0c7}.next-cost{display:table;background:#4c2b13ed;border-radius:3px;padding:2px 8px;margin:3px auto 0;color:#fff0c7}.next-cost>span{color:#f2dcb3}

/* Typography: large headings use Heavy Song; compact labels use regular Song. */
.reward-name,.reward-slot .reward-name,.reward-slot.grade-S .reward-name,.bonus-title{font-family:var(--sans);font-weight:500}.paper-primary,.selection-grades button{font-family:var(--sans);font-weight:500}.site-name,.draw-button,.result-contents h2,.result-item h3,.selection-layout h2,.info-dialog h2{font-family:var(--serif);font-weight:900}

/* User revision: light Song for small copy; all game controls stay inside the gold frame. */
:root{--ui-font:PeakSongRegular,'Noto Serif SC','SimSun',serif;--sans:var(--ui-font)}
body{font-family:var(--ui-font);font-weight:400}
.reward-name,.reward-slot .reward-name,.reward-slot.grade-S .reward-name,.bonus-title,.paper-primary,.selection-grades button,.result-item p,.candidate-name,.candidate small,.result-contents>p,.info-dialog p,.info-dialog li,.info-dialog th,.info-dialog td{font-family:var(--ui-font);font-weight:400}
.next-cost strong{font-weight:400}
.operation-area{top:66%;width:min(340px,60%)}
.draw-options{margin-top:4px}
.stage-footnote{left:9%;right:9%;bottom:13.2%;line-height:1.5;font-family:var(--ui-font);color:#f0d8b0}
#skip-now{position:static;margin:4px auto 0;font-family:var(--ui-font);padding:2px 8px;font-size:11px}
.light-field{clip-path:inset(11% 8% 12% 7%)}
.reward-slot .quantity{white-space:nowrap}

/* Frame-safe compact controls, including the live animation state. */
.operation-area{top:65%}
.draw-options{width:max-content;max-width:100%;margin:4px auto 0;padding:3px 8px;background:#4c2b13ed;border-radius:3px;color:#f0d8b0}
#skip-now{position:absolute;top:0;left:50%;right:auto;bottom:auto;transform:translateX(-50%);height:24px;white-space:nowrap;margin:0;padding:2px 8px;background:#4c2b13ed}
#skip-now:not([hidden])~.draw-progress{visibility:hidden}

/* Art direction selects independent portrait artwork; no desktop bitmap is stretched. */
.game-stage>picture{position:absolute;inset:0;z-index:-3;pointer-events:none}
.game-art{z-index:auto}
main{padding-bottom:24px}
.result-contents{min-height:428px;display:flex;flex-direction:column;align-items:center;justify-content:center}
#result-main,#bonus-section{width:100%}
#bonus-section:empty{display:none}
.result-contents .paper-primary{margin-top:26px}

@media(max-width:1100px){
 .site-header{padding:16px 20px;gap:16px}
 .site-header nav{gap:14px}
 .game-stage{max-width:540px;margin-inline:auto;aspect-ratio:1/2;height:auto;overflow:hidden;background:#50321c;border:0;border-radius:0}
 .game-art{width:100%;height:auto;inset:0;object-fit:contain;transform:none;content:normal}
 .game-stage:after{content:'问鼎天峰';position:absolute;left:0;right:0;top:3.2%;text-align:center;font:900 28px var(--serif);letter-spacing:9px;color:#ffe8a8;text-shadow:0 2px 5px #5a2f10;z-index:-1}
 .stage-top{top:10%;left:0;right:0;justify-content:center;padding:0;background:none}
 .round-tabs{gap:12px}
 .round-tabs button{min-width:68px;height:44px;font-size:18px;letter-spacing:2px}
 .reward-slot{width:23%;min-height:44px}
 .reward-slot .medallion,.reward-slot.grade-S .medallion{width:56px;height:56px}
 .reward-slot .item-icon,.reward-slot.grade-S .item-icon{width:29px;height:29px}
 .reward-slot .grade,.reward-slot.grade-S .grade{font-size:16px;left:0;top:0}
 .reward-slot .quantity{font-size:11px;bottom:5px;right:4px;padding:2px 3px}
 .reward-name,.reward-slot.grade-S .reward-name{font-size:12px;line-height:1.45;max-width:112px;margin-top:4px}
 .reward-slot:not(.grade-S) .reward-name{background:#4b2e18e8;padding:1px 4px;border-radius:2px;text-shadow:none}
 .reward-slot.grade-S .reward-name{background:#fff0bdde;padding:1px 4px;border-radius:2px;color:#593616;text-shadow:none}
 .game-stage[data-round='0'] .reward-slot{width:42%}
 .game-stage[data-round='1'] .reward-slot:not(.grade-S) .medallion,.game-stage[data-round='2'] .reward-slot .medallion{width:44px;height:44px}
 .game-stage[data-round='1'] .reward-slot:not(.grade-S) .item-icon,.game-stage[data-round='2'] .reward-slot .item-icon{width:23px;height:23px}
 .game-stage[data-round='1'] .reward-slot:not(.grade-S) .reward-name,.game-stage[data-round='2'] .reward-name{font-size:11px;line-height:1.35;max-width:72px;padding:1px 3px}
 .game-stage[data-round='1'] .reward-slot:not(.grade-S) .quantity,.game-stage[data-round='2'] .reward-slot .quantity{font-size:11px;bottom:3px;right:1px}
 .obtained-label{top:18px;left:50%;transform:translateX(-50%) rotate(-12deg);font-size:11px;padding:1px 5px}
 .operation-area{top:auto;bottom:6%;width:92%;transform:translateX(-50%);padding:0;background:none}
 .draw-button{width:204px;height:68px;font-size:21px;letter-spacing:5px;filter:none;padding:0;text-indent:5px}
 .draw-progress{font-size:11px;line-height:1.5;margin-bottom:0}
 .next-cost{font-size:11px;line-height:1.5;margin-top:0;padding:1px 7px}
 .next-cost>span{padding-left:10px}
 .draw-options{font-size:11px;gap:10px;padding:0 7px;margin-top:4px}
 .draw-options label{min-height:32px;gap:5px}
 .draw-options input{width:13px;height:13px}
 .stage-footnote{left:6%;right:6%;bottom:2.8%;display:block;text-align:center;font-size:11px;line-height:1.25}
 #pool-description{display:none}
 .light-field{clip-path:inset(2.5% 3.3%)}
 .journey{gap:25px;margin-inline:12px}
 .result-dialog{width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:hidden}
 .result-scroll{margin:0;border:0;min-height:0;height:auto;aspect-ratio:1122/1402;max-height:calc(100dvh - 32px);background:#f6eedc url('assets/mobile/result.5a994e228656.webp') center/cover no-repeat;box-shadow:none}
 .scroll-spine{display:none}
 .result-contents{height:100%;min-height:0;max-height:calc(100dvh - 32px);padding:42px 24px 26px 39px;justify-content:flex-start}
 .result-contents h2{font-size:27px;line-height:1.5;letter-spacing:4px}
 .result-item{flex-direction:column;gap:12px;margin:21px auto 0}
 .result-item h3{font-size:22px;line-height:1.5;margin:0 0 5px;overflow-wrap:anywhere}
 .result-item p{font-size:13px}
 .result-icon{width:78px;height:78px;flex-shrink:0}
 .result-icon svg{width:40px;height:40px}
 .result-contents .paper-primary{flex-shrink:0;min-height:0;width:210px;min-width:0;aspect-ratio:3/1;padding:16px 18px;margin-top:auto;font-size:16px;letter-spacing:2px}
 .close-dialog{width:44px;height:44px;right:5px;top:5px}
 .bonus-title{font-size:13px;margin:16px 0 8px}
 .bonus-list{gap:5px}
 .bonus-item{font-size:11px;padding:4px 6px}
 .result-scroll:has(.bonus-item){height:auto;aspect-ratio:1122/1402;background-size:cover}
 .result-scroll:has(.bonus-item) .result-item{flex-direction:row;margin-top:16px;gap:12px}
 .result-scroll:has(.bonus-item) .result-contents h2{font-size:23px;letter-spacing:2px}
 .result-scroll:has(.bonus-item) .result-item h3{font-size:20px}
 .result-scroll:has(.bonus-item) .paper-primary{margin-top:18px}
 .selection-dialog{width:min(480px,calc(100vw - 24px));height:min(720px,calc(150vw - 36px),calc(100dvh - 24px));background:#f8efd8 url('assets/mobile/selection.10d2ce303a34.webp') center/cover no-repeat;box-shadow:none}
 .selection-layout{min-height:0;height:100%}
 .selection-layout aside{display:none}
 .selection-layout>section{display:flex;flex-direction:column;min-height:0;padding:32px 20px 18px 33px}
 .selection-layout h2{font-size:23px;letter-spacing:1px;padding-right:24px}
 .selection-layout section>p{font-size:12px;line-height:1.7;margin-top:8px}
 .selection-grades{gap:3px;margin:12px 0;flex-shrink:0}
 .selection-grades button{min-width:0;flex:1;font-size:13px;min-height:44px;padding:8px 2px}
 .candidate-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:none;min-height:0;flex:1;padding:2px 5px 6px 2px;overscroll-behavior:contain}
 .candidate{min-height:124px;padding:10px 4px;gap:8px}
 .candidate.selected{padding:9px 3px}
 .candidate .result-icon{width:52px;height:52px}
 .candidate .result-icon svg{width:27px;height:27px}
 .candidate-name{font-size:12px}
 .candidate small{font-size:11px}
 .selection-bottom{display:block;flex-shrink:0;margin-top:10px}
 .selection-bottom>span{font-size:12px}
 .selection-bottom .paper-primary{display:block;width:210px;min-width:0;min-height:0;aspect-ratio:3/1;margin:3px auto 0;padding:15px 12px;font-size:16px}
 .info-dialog{background-image:url('assets/mobile/selection.10d2ce303a34.webp');background-size:cover;padding:36px 24px 20px 36px;box-shadow:none}
 .info-dialog .paper-primary{width:210px;min-width:0;min-height:0;aspect-ratio:3/1;padding:15px 12px}
}
@media(max-width:700px){
 body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
 .site-header{padding:14px 18px 12px;flex-wrap:wrap;gap:4px 12px}
 .site-name{font-size:18px;letter-spacing:1px}
 .site-name span{font-size:11px;margin-left:10px;padding-left:10px}
 .site-header nav{width:100%;justify-content:flex-end;gap:18px;font-size:12px}
 .site-header nav button{min-height:44px;padding:8px 0}
 main{padding:0 7px 24px}
 .journey{margin:16px 11px 0;padding:16px 0;display:block}
 .spending{width:auto;border:0;padding:0;display:flex;align-items:center;gap:8px}
 .spending>span{max-width:65px;font-size:11px}
 .spending p{margin:0}
 .spending strong{font-size:26px}
 .spending button{margin:0 0 0 auto;font-size:11px}
 .spending button>span{display:block;margin:0}
 .milestone-area{margin-top:20px}
 .milestone-heading{gap:8px}
 .milestone-heading h2{font-size:16px;letter-spacing:1px}
 .milestone-heading>span{font-size:11px}
 .milestone-heading button{font-size:11px;min-height:44px}
 .milestone-track{margin-top:8px}
 .milestone{min-width:32px;font-size:11px;min-height:44px}
 .milestone>i{width:21px;height:21px}
 .milestone-track:before{top:11px;left:18px;right:18px}
 .info-dialog h2{font-size:23px}
 .info-dialog p,.info-dialog li{font-size:13px}
 .info-dialog th,.info-dialog td{font-size:11px;padding:10px 3px}
}
@media(max-width:360px){
 .game-stage:after{font-size:25px;letter-spacing:7px}
 .round-tabs button{font-size:17px;min-width:62px}
 .reward-slot .medallion,.reward-slot.grade-S .medallion{width:52px;height:52px}
 .game-stage[data-round='1'] .reward-slot:not(.grade-S) .reward-name,.game-stage[data-round='2'] .reward-name{max-width:64px}
 .draw-options{gap:8px}
 .result-contents{padding:37px 18px 18px 31px}
 .result-contents h2{font-size:24px}
 .result-item{margin-top:14px;gap:8px}
 .result-item h3{font-size:20px}
 .result-icon{width:68px;height:68px}
 .selection-layout>section{padding:30px 14px 15px 28px}
 .selection-layout h2{font-size:21px}
}

/* User reference: the original pale-gold plate on desktop and mobile. */
.draw-button,.paper-primary{background:transparent url('assets/button-gold.png') center/contain no-repeat;border:0;border-radius:0;box-shadow:none;filter:none;text-shadow:0 1px 0 #fff2c4}
.draw-button{width:210px;height:67px;padding:0 16px;letter-spacing:4px;text-indent:4px}
.paper-primary{width:210px;min-width:0;min-height:0;height:67px;padding:10px 14px;line-height:1.5}
.draw-button:hover:not(:disabled),.paper-primary:hover:not(:disabled){color:#533411;filter:brightness(1.06)}
.draw-button:active:not(:disabled),.paper-primary:active:not(:disabled){filter:brightness(.96)}
@media(max-width:1100px){
 .draw-button{width:204px;height:65px}
 .paper-primary,.result-contents .paper-primary,.selection-bottom .paper-primary,.info-dialog .paper-primary{width:210px;min-width:0;min-height:0;height:67px;aspect-ratio:auto;padding:10px 14px;line-height:1.5}
 .game-stage[data-round='1'] .reward-slot:not(.grade-S) .reward-name,.game-stage[data-round='2'] .reward-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
}
@media(max-width:360px){
 .game-stage[data-round='1'] .reward-slot:not(.grade-S) .medallion,.game-stage[data-round='2'] .reward-slot .medallion{width:40px;height:40px}
 .game-stage[data-round='1'] .reward-slot:not(.grade-S) .reward-name,.game-stage[data-round='2'] .reward-name{line-height:1.3}
}

/* Original 00000477 selection UI, including its calligraphy and scroll binding. */
.selection-dialog{width:min(1080px,calc(100vw - 24px),calc(166.995dvh - 40.08px));height:auto;aspect-ratio:1356/812;background:none;box-shadow:none;overflow:hidden}
.selection-layout{position:relative;display:block;min-height:0;height:100%}
.selection-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.selection-mobile-binding{display:none}
.selection-layout>section{position:absolute;left:22%;right:4%;top:8%;bottom:7%;padding:0;display:flex;flex-direction:column;min-height:0}
.selection-layout h2{font-size:26px;letter-spacing:3px;padding-right:24px}
.selection-layout section>p{font-size:12px;line-height:1.7;margin-top:7px;padding-right:0}
.selection-grades{gap:16px;margin:13px 0;flex-shrink:0}
.selection-grades button{min-width:100px;flex:0 1 auto;font-size:15px;min-height:44px;padding:8px 15px}
.selection-layout .candidate-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;flex:1;min-height:0;max-height:none;padding:2px 9px 5px 2px}
.selection-layout .candidate{min-height:133px;padding:12px 5px;gap:9px}
.selection-layout .candidate.selected{padding:11px 4px}
.selection-bottom{display:flex;justify-content:flex-end;flex-shrink:0;margin-top:10px;gap:0}
.selection-bottom .paper-primary{display:block;width:210px;min-width:0;height:67px;min-height:0;aspect-ratio:auto;margin:0;padding:10px 14px}
#selection-confirm{font-family:var(--serif);font-weight:900;font-size:18px;letter-spacing:2px}
.selection-layout>.close-dialog{right:2.7%;top:5.3%;width:44px;height:44px}
@media(max-width:700px){
 .selection-dialog{width:min(480px,calc(100vw - 24px));height:min(720px,calc(100dvh - 24px));aspect-ratio:auto;background:transparent url('assets/selection-paper.png') center/cover no-repeat}
 .selection-art{display:none}
 .selection-mobile-binding{display:block;position:absolute;left:0;top:3%;width:18%;height:auto;pointer-events:none}
 .selection-layout>section{left:21%;right:5%;top:6%;bottom:4%;padding:0}
 .selection-layout h2{font-size:21px;line-height:1.5;letter-spacing:1px;padding-right:24px}
 .selection-layout section>p{font-size:12px;margin-top:8px}
 .selection-grades{gap:2px;margin:10px 0}
 .selection-grades button{min-width:0;flex:1;font-size:12px;padding:8px 0}
 .selection-layout .candidate-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-right:5px}
 .selection-layout .candidate{min-height:130px;padding:10px 4px;gap:8px}
 .selection-layout .candidate.selected{padding:9px 3px}
 .selection-bottom{margin-top:8px}
 .selection-bottom .paper-primary{width:min(210px,100%);height:67px;margin:0}
 .selection-layout>.close-dialog{right:1%;top:1%;width:44px;height:44px}
 #selection-confirm{font-size:17px;letter-spacing:1px}
}

/* Both original blue-gold scroll ends unfurl with the paper between them. */
.result-dialog{width:min(820px,calc(100vw - 24px));max-height:calc(100dvh - 40px);overflow:visible;--roll-travel:clamp(80px,calc(50vw - 110px),300px)}
.result-scroll{position:relative;height:min(460px,calc(100dvh - 64px));min-height:0;max-height:none;aspect-ratio:auto;margin:0 55px 0 85px;background:none;border:0;box-shadow:none;isolation:isolate}
.result-scroll:before{content:'';position:absolute;inset:0;background:#eeeae1 url('assets/result-paper-clean.png') center/cover no-repeat;border-top:5px solid #aa8c49;border-bottom:5px solid #aa8c49;z-index:0}
.result-dialog .scroll-spine{display:block;position:absolute;top:-10px;height:calc(100% + 20px);width:auto;object-fit:contain;max-width:none;pointer-events:none;z-index:2}
.result-dialog .scroll-spine-left{left:-98px;right:auto}
.result-dialog .scroll-spine-right{left:auto;right:-65px}
.result-contents{position:relative;z-index:1;height:100%;min-height:0;max-height:none;padding:38px 35px 25px 30px;justify-content:center;overflow:auto;overscroll-behavior:contain}
.result-scroll>.close-dialog{right:28px;top:9px;z-index:3}
.result-dialog[open] .result-scroll{animation:none}
.result-dialog[open] .result-scroll:before{animation:paper-unfurl .65s cubic-bezier(.16,1,.3,1)}
.result-dialog[open] .scroll-spine-left{animation:left-unfurl .65s cubic-bezier(.16,1,.3,1)}
.result-dialog[open] .scroll-spine-right{animation:right-unfurl .65s cubic-bezier(.16,1,.3,1)}
.result-dialog[open] .result-contents{animation:scroll-content .4s .2s cubic-bezier(.16,1,.3,1) backwards}
@keyframes paper-unfurl{from{clip-path:inset(0 49%)}to{clip-path:inset(0)}}
@keyframes left-unfurl{from{transform:translateX(var(--roll-travel))}to{transform:none}}
@keyframes right-unfurl{from{transform:translateX(calc(-1 * var(--roll-travel)))}to{transform:none}}
@keyframes scroll-content{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.item-icon.item-bitmap{object-fit:contain;filter:none;stroke:none;fill:none}
.item-tooltip[hidden]{display:none}
.item-tooltip{position:fixed;z-index:50;width:300px;max-width:calc(100vw - 24px);padding:20px;background:#171814f5;border:1px solid #71674e;color:#e8e2cf;box-shadow:0 10px 28px #08070380;overflow:auto;overscroll-behavior:contain}
.item-tooltip-heading{display:flex;gap:14px;align-items:center;padding-right:15px}
#item-tooltip-icon{width:54px;height:54px;flex-shrink:0;display:grid;place-items:center;background:#282922;border:1px solid #69634e}
#item-tooltip-icon .item-icon{width:43px;height:43px;filter:none;color:#d7aa54}
#item-tooltip-name{font:900 20px/1.5 var(--serif);color:#efbd68;overflow-wrap:anywhere}
#item-tooltip-quantity{font:400 12px/1.7 var(--ui-font);color:#c9c4b4;margin-top:5px}
#item-tooltip-description{font:400 14px/1.85 var(--ui-font);color:#e6e1cf;border-top:1px solid #595849;margin-top:16px;padding-top:13px;white-space:pre-wrap;overflow-wrap:anywhere}
#item-tooltip-description .description-gold{color:#efbd68}
#item-tooltip-close{position:absolute;right:3px;top:3px;width:32px;height:32px;font:400 22px var(--ui-font);color:#c8bd9b}
@media(max-width:1100px){
 .result-dialog{width:calc(100vw - 20px);max-width:520px;--roll-travel:clamp(70px,calc(50vw - 50px),200px)}
 .result-scroll,.result-scroll:has(.bonus-item){height:min(500px,calc(100dvh - 70px));max-height:none;aspect-ratio:auto;margin:0 22px 0 32px;background:none}
 .result-dialog .scroll-spine{top:-6px;height:calc(100% + 12px);object-fit:cover}
 .result-dialog .scroll-spine-left{left:-34px;width:58px;object-position:right center}
 .result-dialog .scroll-spine-right{right:-25px;width:38px;object-position:left center}
 .result-contents{padding:37px 25px 23px 28px;justify-content:center;max-height:none}
 .result-contents h2{font-size:25px;letter-spacing:3px}
 .result-item{margin:20px auto 0;gap:12px}
 .result-item h3{font-size:21px}
 .result-contents .paper-primary{margin-top:26px}
 .result-scroll:has(.bonus-item) .result-contents{justify-content:flex-start;padding-top:36px}
 .result-scroll:has(.bonus-item) .result-contents h2{font-size:21px;letter-spacing:1px}
 .result-scroll:has(.bonus-item) .result-item{flex-direction:column;gap:8px;margin-top:13px}
 .result-scroll:has(.bonus-item) .result-item h3{font-size:20px}
 .result-scroll>.close-dialog{right:14px;top:6px;width:38px;height:38px}
 .item-tooltip{padding:18px}
 #item-tooltip-close{width:40px;height:40px}
 #item-tooltip-name{font-size:19px}
}

/* All lettering on the original gold action plates uses Heavy Song. */
.paper-primary{font-family:var(--serif);font-weight:900}
.milestone-track{gap:14px;padding:8px 0 4px;margin-top:12px}
.milestone-track:before{top:36px;left:28px;right:28px}
.milestone{min-width:58px;gap:9px;font-size:12px}
.milestone-icon{position:relative;display:grid;place-items:center;width:58px;height:58px;background:#34271a;border:1px solid #a2824b;z-index:1}
.milestone-icon .item-icon{width:44px;height:44px;color:#e5bd74;filter:none;object-fit:contain}
.milestone.complete .milestone-icon{background:#63502e;border-color:#efd29a}
.milestone:hover .milestone-icon,.milestone:focus-visible .milestone-icon{border-color:#ffe4aa}
.info-dialog{width:min(820px,calc(100vw - 24px));max-height:calc(100dvh - 40px);background:none;border:0;padding:0;overflow:visible;box-shadow:none;--roll-travel:clamp(80px,calc(50vw - 110px),300px)}
.info-scroll{position:relative;height:min(560px,calc(100dvh - 64px));margin:0 55px 0 85px;isolation:isolate}
.info-scroll:before{content:'';position:absolute;inset:0;background:#eeeae1 url('assets/result-paper-clean.png') center/cover no-repeat;border-top:5px solid #aa8c49;border-bottom:5px solid #aa8c49}
.info-dialog .scroll-spine{display:block;position:absolute;top:-10px;height:calc(100% + 20px);width:auto;object-fit:contain;max-width:none;pointer-events:none;z-index:2}
.info-dialog .scroll-spine-left{left:-98px;right:auto}
.info-dialog .scroll-spine-right{left:auto;right:-65px}
.info-contents{position:relative;z-index:1;height:100%;overflow:auto;overscroll-behavior:contain;padding:36px 35px 24px 30px}
.info-scroll>.close-dialog{right:28px;top:9px;z-index:3}
.info-dialog[open] .info-scroll:before{animation:paper-unfurl .65s cubic-bezier(.16,1,.3,1)}
.info-dialog[open] .scroll-spine-left{animation:left-unfurl .65s cubic-bezier(.16,1,.3,1)}
.info-dialog[open] .scroll-spine-right{animation:right-unfurl .65s cubic-bezier(.16,1,.3,1)}
.rules-body{font:400 14px/1.9 var(--ui-font);color:#625236;white-space:pre-wrap;overflow-wrap:anywhere}
.info-dialog td{overflow-wrap:anywhere}
@media(max-width:700px){
 .milestone-track{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 10px;justify-items:center;padding-top:6px}
 .milestone-track:before{display:none}
 .milestone-icon{width:52px;height:52px}
 .milestone-icon .item-icon{width:40px;height:40px}
 .milestone{min-width:52px}
 .info-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:0;background:none}
 .info-scroll{margin:0;height:min(620px,calc(100dvh - 32px))}
 .info-dialog .scroll-spine{display:none}
 .info-contents{padding:38px 23px 22px}
 .info-scroll>.close-dialog{right:4px;top:4px;width:44px;height:44px}
 .selection-dialog{background:#5b221b;border:1px solid #a47542;color:#f4dfb3}
 .selection-art,.selection-mobile-binding{display:none}
 .selection-layout:before{content:'奖池选择';position:absolute;left:20px;top:20px;font:900 17px/1.5 var(--serif);color:#e8c584}
 .selection-layout>section{left:6%;right:6%;top:10%;bottom:3%}
 .selection-layout h2{color:#ffe4a9}
 .selection-layout section>p{color:#e6cfaa}
 .selection-grades{border-bottom-color:#a47b47}
 .selection-grades button{color:#e5c797}
 .selection-grades button.active{color:#ffe8b4;border-bottom-color:#f0ce84}
 .selection-layout .candidate{background:#6b2c23;color:#f4dfbb;border-color:#a6784c}
 .selection-layout .candidate:hover:not(:disabled){background:#7a3529;color:#fff0cc}
 .selection-layout .candidate.selected{background:#794333;border-color:#e7c47a}
 .selection-layout .candidate.selected:after{background:#e4bf77;color:#4e2715}
 .selection-layout .candidate small{color:#dec6a2}
 .selection-layout>.close-dialog{color:#f3d7a3}
}

.info-dialog[data-layout='centered'] .info-contents{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:18px}
.info-dialog[data-layout='centered'] h2{margin:0}
.info-dialog[data-layout='centered'] #info-content{display:flex;flex-direction:column;align-items:center;width:100%}
.info-dialog[data-layout='centered'] .paper-primary{margin:18px auto 0}
.info-dialog[data-layout='centered'] #info-confirm{margin:0 auto}
.info-contents{display:flex;flex-direction:column;overflow:hidden}
.info-contents>h2,.info-contents>.paper-primary{flex-shrink:0}
#info-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.info-dialog[data-layout='centered'] #info-content{flex:0 0 auto;overflow:visible}
.info-scroll>.close-dialog{right:76px}
.result-scroll>.close-dialog{right:64px}
.obtained-label{left:50%;top:50%;transform:translate(-50%,-50%) rotate(-12deg);z-index:2}
.stage-footnote{justify-content:flex-end}
.result-contents{display:flex;flex-direction:column;align-items:center;overflow:hidden}
.result-contents>h2,.result-contents>#result-main,.result-contents>.paper-primary{flex-shrink:0}
#bonus-section{min-height:0;overflow:auto;overscroll-behavior:contain;width:100%}
#bonus-section:empty{display:none}
.result-scroll:has(.bonus-item) #bonus-section{flex:1}
.result-contents .paper-primary{margin-bottom:0}
.selection-layout .candidate{min-height:144px;justify-content:center}
.selection-layout .candidate .result-icon{width:74px;height:74px;flex-shrink:0}
.selection-layout .candidate .item-icon{width:40px;height:40px}
.selection-layout .candidate-name{font-size:14px;line-height:1.55}
.game-stage[data-round='2'] .reward-slot.grade-S .medallion{width:108px;height:108px}
.game-stage[data-round='2'] .reward-slot.grade-S .item-icon{width:52px;height:52px}
.game-stage[data-round='2'] .reward-slot.grade-S .reward-name{max-width:140px;font-size:15px;line-height:1.5}
@media(max-width:1100px){
 .game-stage[data-round='2'] .reward-slot.grade-S .medallion{width:68px;height:68px}
 .game-stage[data-round='2'] .reward-slot.grade-S .item-icon{width:36px;height:36px}
 .game-stage[data-round='2'] .reward-slot.grade-S .reward-name{max-width:100px;font-size:13px}
 .game-stage[data-round='2'] .reward-slot:not(.grade-S) .reward-name{max-width:48px}
 .game-stage[data-round='2'] .reward-slot.grade-S .quantity{bottom:7px;right:7px}
}
@media(max-width:360px){
 .game-stage[data-round='2'] .reward-slot.grade-S .medallion{width:62px;height:62px}
 .game-stage[data-round='2'] .reward-slot.grade-S .item-icon{width:32px;height:32px}
 .game-stage[data-round='2'] .reward-slot:not(.grade-S) .reward-name{max-width:44px}
}
@media(max-width:700px){
 .selection-layout .candidate .result-icon{width:66px;height:66px}
 .selection-layout .candidate .item-icon{width:36px;height:36px}
 .selection-layout .candidate-name{font-size:14px}
 .info-scroll>.close-dialog{right:8px}
}
@media(max-width:1100px){.result-scroll>.close-dialog{right:26px}}
@media(min-width:1101px){
 html{background:#120d09}
 body{zoom:1.25;min-height:0}
 main{padding-bottom:0}
 .journey{margin-bottom:0}
 .result-dialog{width:min(920px,calc(80vw - 32px));max-width:calc(80vw - 20px);max-height:calc(80dvh - 32px)}
 .result-scroll{height:min(460px,calc(80dvh - 52px))}
 .result-contents{padding-left:64px;padding-right:52px}
 .info-dialog{width:min(1040px,calc(80vw - 32px));max-width:calc(80vw - 20px);max-height:calc(80dvh - 32px)}
 .info-scroll{height:min(560px,calc(80dvh - 52px))}
 .info-contents{padding-left:88px;padding-right:68px}
 .info-dialog[data-layout='centered'] .info-contents{padding:30px 68px 30px 96px}
 .info-scroll>.close-dialog{right:76px}
 .selection-dialog{width:min(1080px,calc(80vw - 32px),calc(133.596dvh - 85.5px));max-width:calc(80vw - 20px);max-height:calc(80dvh - 32px)}
}

/* Explicit playback mode applies to both the JS tour and CSS scroll reveal. */
.draw-options select{width:88px;min-height:24px;padding:1px 4px;border:1px solid #b18a53;border-radius:2px;background:#4c2b13;color:#fff0c7;font:400 11px var(--ui-font);cursor:pointer}
.draw-options select:focus-visible{outline:2px solid #ffe2a5;outline-offset:2px}
.motion-status{display:table;max-width:100%;margin:3px auto 0;padding:2px 7px;background:#4c2b13ed;color:#fff0c7;font:400 11px/1.5 var(--ui-font)}
.motion-status[hidden]{display:none}
body[data-motion="skip"] *,body[data-motion="skip"] *:before,body[data-motion="skip"] *:after,.result-dialog[data-motion="skip"] *,.result-dialog[data-motion="skip"] *:before,.result-dialog[data-motion="skip"] *:after{animation:none!important;transition:none!important}
body[data-motion="skip"] .light-field{display:none}
@media(max-width:1100px){.draw-options{gap:8px}.draw-options select{min-height:30px;width:84px}.motion-status{font-size:10px;padding:1px 5px}}

/* Discount uses the original gold button; the offer applies to this next draw. */
.operation-area[data-discount="true"] .draw-progress{margin-bottom:18px}
.draw-button.discounted{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 16px;letter-spacing:0;text-indent:0;overflow:visible}
.discount-ribbon{position:absolute;left:32px;right:18px;top:-3px;height:20px;display:flex;align-items:center;justify-content:center;gap:4px;background:#b63b20;color:#fff4cf;border:1px solid #efbd70;border-radius:4px 4px 0 0;font:900 12px/1 var(--serif);text-shadow:none;white-space:nowrap}
.discount-ribbon strong{font:inherit;font-variant-numeric:tabular-nums}
.discount-badge{position:absolute;left:-7px;top:-12px;z-index:1;display:grid;place-items:center;width:43px;height:43px;border:2px solid #f2c77e;border-radius:45% 55% 43% 57%;background:#b9321e;color:#fff7dc;box-shadow:0 2px 3px #52280c66;font:900 19px/1 var(--serif);transform:rotate(-12deg);text-shadow:0 1px 1px #652211}
.discount-price{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:78px;height:25px;border-radius:14px;background:#686942;color:#fff3c0;font:900 19px/1 var(--serif);text-shadow:none;font-variant-numeric:tabular-nums}
.cost-token{display:inline-block;width:20px;height:24px;vertical-align:middle;fill:#c5d399;stroke:#526e41;stroke-width:2;stroke-linejoin:round;stroke-linecap:round;flex-shrink:0}
.discount-price strong{font:inherit}
.discount-price del{color:#f0dcb0;font-size:13px;text-decoration-thickness:1px}
.discount-action{font:900 21px/1 var(--serif);white-space:nowrap}
.operation-area[data-discount="true"] .next-cost{font-size:11px;white-space:nowrap}
.next-cost .cost-token{width:15px;height:18px;margin:0 2px}
@media(min-width:1101px){.operation-area[data-discount="true"]{top:64%}.operation-area[data-discount="true"] .draw-progress{margin-bottom:8px}.draw-button.discounted{height:53px}}
@media(max-width:1100px){.draw-button.discounted{gap:5px;padding:0 14px}.discount-action{font-size:20px}.operation-area[data-discount="true"] .next-cost>span{padding-left:7px}}

.cost-token>.item-icon{display:block;width:100%;height:100%;position:static;transform:none;fill:inherit;stroke:inherit}.cost-token>.item-bitmap{object-fit:contain;stroke:none}

/* Final completion rewards share the existing blue and gold scroll. */
.result-dialog[data-completion="true"] #result-main{width:100%}
.completion-rewards{display:grid;grid-template-columns:140px minmax(0,1fr);align-items:center;gap:24px;width:100%;margin:24px auto}
.completion-gift-wrap{position:relative}
.completion-gift{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;color:#765121;background:none;padding:4px;font:400 15px var(--ui-font)}
.completion-gift strong,.completion-title-reward strong{font:900 19px var(--serif)}
.completion-gift .result-icon{width:108px;height:108px}
.completion-title-reward{display:flex;flex-direction:column;gap:9px;align-items:center;color:#765121;font:400 14px var(--ui-font);min-width:0}
.completion-title-art{width:100%;max-width:440px;aspect-ratio:3;background:url('assets/completion-title.png') center/contain no-repeat}
.completion-detail{display:none;position:absolute;left:12px;top:0;width:300px;max-width:calc(100vw - 120px);max-height:260px;overflow:auto;z-index:5;padding:20px;background:#191a15;color:#e4dfcc;text-align:left;font:400 14px/1.75 var(--ui-font);border:1px solid #95815b;box-shadow:0 8px 20px #28180755;transform:translateY(-15%)}
.completion-detail-head{display:flex;align-items:center;gap:12px;color:#f2c768;border-bottom:1px solid #625b42;padding-bottom:12px;margin-bottom:12px}
.completion-detail-head .item-icon{width:48px;height:48px;flex-shrink:0}
.completion-detail-head strong{font:900 20px var(--serif)}
.completion-gift[aria-expanded="true"]+.completion-detail,.completion-gift:focus-visible+.completion-detail{display:block}
@media(hover:hover){.completion-gift-wrap:hover .completion-detail{display:block}}
@media(max-width:1100px){.completion-rewards{grid-template-columns:1fr;gap:16px;margin:16px auto}.completion-gift .result-icon{width:86px;height:86px}.completion-title-art{max-width:340px}.completion-detail{left:50%;transform:translate(-50%,-15%);max-width:calc(100vw - 80px)}.result-dialog[data-completion="true"] .result-contents{overflow-y:auto}.result-dialog[data-completion="true"] .result-contents h2{font-size:23px;letter-spacing:1px}.result-dialog[data-completion="true"] .paper-primary{margin-top:12px}}

.next-cost>.cost-token{padding:0;display:inline-block;width:20px;height:20px;vertical-align:middle;margin:0 4px}

.ultimate-badge{position:absolute;top:-5px;right:-32px;z-index:2;display:block;padding:3px 7px;background:#a52d23;color:#ffe0a0;border:1px solid #d8ac60;border-radius:0;font:900 12px/1.3 var(--serif);letter-spacing:1px;white-space:nowrap;text-shadow:none;pointer-events:none}
@media(max-width:1100px){.ultimate-badge{top:-8px;right:-24px;padding:3px 5px;font-size:10px;letter-spacing:0}}

@media(min-width:1101px){.milestone-track[data-extended="true"]{display:grid;grid-template-columns:repeat(auto-fit,minmax(64px,1fr))}.milestone-track[data-extended="true"]:before{display:none}}
