/* Scoped to new game pages; existing site pages are unchanged. */
body.algorithm-page{color:#fff4df;--ac-gold:#edce7e}body.algorithm-page .ac-hero{padding:clamp(82px,8vw,110px) 0 clamp(60px,6vw,90px)}body.algorithm-page .ac-layout{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:clamp(22px,5vw,76px);align-items:center}body.algorithm-page .ac-art{aspect-ratio:4/5;max-height:590px;padding:9px;border-radius:25px;background:linear-gradient(130deg,#f0d282,#9c722b 36%,#f8e3a7 55%,#ab7a2a 80%,#e8c66b);box-shadow:0 20px 65px #0006}body.algorithm-page .ac-art-inner{height:100%;border-radius:18px;border:1px solid #d9bc7777;background:radial-gradient(circle at 35% 30%,#235d46,#082d23 70%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;text-align:center;color:#f2e6c8;padding:25px;line-height:1.5}body.algorithm-page .ac-symbol{font-size:100px;color:#d5b56b;line-height:1}body.algorithm-page .ac-kicker{display:block;letter-spacing:.18em;color:#dec47b;font-weight:800;font-size:12px;text-transform:uppercase;margin-bottom:16px}body.algorithm-page h1,body.algorithm-page h2{font-family:"Cormorant Garamond",Georgia,serif;color:#f5de9e}body.algorithm-page .ac-copy h1{font-size:clamp(46px,5.2vw,82px);line-height:1.04;letter-spacing:-.02em;margin:0 0 24px;color:#fff9ed}body.algorithm-page h1 em{font-style:normal;color:#f1d58c}body.algorithm-page .ac-copy p{font-size:clamp(17px,1.4vw,20px);line-height:1.65;max-width:590px;margin:0 0 27px;color:#f1eee4}body.algorithm-page .ac-actions{display:grid;grid-template-columns:1fr 1.22fr 1fr;max-width:665px;width:100%;gap:14px}body.algorithm-page .ac-gold{display:inline-flex;justify-content:center;align-items:center;min-height:68px;padding:14px 18px;border-radius:15px;border:1px solid #fff1c2;border-bottom:4px solid #765317;background:linear-gradient(115deg,#fff1c7,#d5a13c 44%,#ffe7a3 65%,#d3a344);box-shadow:0 8px 20px #0005,inset 0 2px 1px #fff9;color:#094638!important;text-decoration:none!important;font-size:16px;font-weight:800;text-align:center;line-height:1.2;transition:transform .2s,filter .2s}body.algorithm-page .ac-gold:hover{transform:translateY(-2px);filter:brightness(1.06)}body.algorithm-page .ac-gold:focus-visible,body.algorithm-page .ac-return:focus-visible{outline:3px solid white;outline-offset:4px}body.algorithm-page .ac-copy small{display:block;color:#c0cdbf;margin-top:17px;line-height:1.5}body.algorithm-page .ac-about{padding:65px 0 87px;border-top:1px solid #d6b46644;background:linear-gradient(180deg,#03271e80,#043025dc);scroll-margin-top:110px}body.algorithm-page .ac-about-inner{max-width:1000px}body.algorithm-page .ac-about h2,body.algorithm-page .ac-playmain h1{font-size:clamp(41px,5vw,67px);line-height:1.12;margin:0 0 18px}body.algorithm-page .ac-about p{font-size:19px;line-height:1.75;max-width:820px;margin:0 0 28px}body.algorithm-page .ac-tags{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:36px}body.algorithm-page .ac-tags span{border:1px solid #d3ae5f66;border-radius:23px;padding:9px 15px;background:#073d2f;color:#f1d595;font-size:14px}body.algorithm-page .ac-return,body.algorithm-page .ac-footer a{color:#ebcf87;text-decoration:none}body.algorithm-page .ac-return{border-bottom:1px solid #daba76}body.algorithm-page .ac-footer{display:flex;gap:20px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:26px 0;color:#e9e3d5;font-size:13px}body.algorithm-page .ac-playmain{padding:120px 0 90px;min-height:75vh}body.algorithm-page .ac-stage{display:grid;grid-template-columns:minmax(190px,280px) minmax(0,1fr);gap:clamp(25px,6vw,75px);align-items:center;padding:clamp(25px,5vw,55px);border-radius:25px;background:linear-gradient(125deg,#0c4a36,#052b23);border:1px solid #c7a55866}body.algorithm-page .ac-sample-card{height:320px;width:100%;max-width:255px;padding:37px 15px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;text-align:center;background:radial-gradient(circle at 30% 30%,#f6e6a4,#b8862c);border:6px solid #d1ad56;border-radius:20px;color:#5f431d;box-shadow:0 15px 30px #0006;font:700 25px/1.35 Georgia,serif}body.algorithm-page .ac-sample-card span{font-size:72px}body.algorithm-page .ac-stage h2{font-size:clamp(31px,4vw,47px);line-height:1.15;margin:0 0 17px}body.algorithm-page .ac-stage p{font-size:17px;line-height:1.7;max-width:620px;margin:0 0 26px}body.algorithm-page .global-back-btn{opacity:1!important;color:#ecd19b!important;border-color:#b8945666!important}
@media(max-width:760px){body.algorithm-page .ac-layout{grid-template-columns:1fr}body.algorithm-page .ac-art{max-width:345px;max-height:none;aspect-ratio:5/4;margin:auto}body.algorithm-page .ac-symbol{font-size:56px}body.algorithm-page .ac-copy{text-align:center}body.algorithm-page .ac-actions,body.algorithm-page .ac-tags{justify-content:center}body.algorithm-page .ac-about{text-align:center}body.algorithm-page .ac-stage{grid-template-columns:1fr}body.algorithm-page .ac-sample-card{margin:auto}body.algorithm-page .ac-stage>div:last-child{text-align:center}}@media(max-width:440px){body.algorithm-page .ac-hero{padding-top:85px}body.algorithm-page .ac-art{max-width:100%}body.algorithm-page .ac-copy h1{font-size:45px}body.algorithm-page .ac-actions{display:grid;grid-template-columns:1fr}body.algorithm-page .ac-gold{width:100%}body.algorithm-page .ac-about p{font-size:17px}body.algorithm-page .ac-playmain{padding-top:100px}body.algorithm-page .ac-about h2{font-size:43px}}
/* Stage 2: landing copy and benefits; styles scoped to this game only. */
body.algorithm-page .ac-copy h1 span{color:#fff9ed}
body.algorithm-page .ac-copy h1 em{color:#f1d58c}
body.algorithm-page .ac-about-inner{max-width:1080px}
body.algorithm-page .ac-about p{max-width:960px}
body.algorithm-page .ac-about .ac-lead{font-size:clamp(18px,2vw,23px);line-height:1.6;color:#fff4d9}
body.algorithm-page .ac-section-heading{margin:55px 0 20px}
body.algorithm-page .ac-section-heading h3,body.algorithm-page .ac-outcome h3{font:700 clamp(31px,3.5vw,47px)/1.16 "Cormorant Garamond",Georgia,serif;color:#f0d18c;margin:0 0 14px}
body.algorithm-page .ac-section-heading p{font-size:18px;margin:0}
body.algorithm-page .ac-chain{list-style:none;counter-reset:acstep;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:22px 0 43px;padding:0}
body.algorithm-page .ac-chain li{min-width:0;min-height:168px;counter-increment:acstep;position:relative;display:flex;flex-direction:column;gap:9px;padding:24px 19px 20px;border:1px solid #d9bd7b70;border-radius:18px;background:linear-gradient(145deg,#10513de8,#063125e8);box-shadow:0 10px 20px #0002}
body.algorithm-page .ac-chain li:before{content:counter(acstep,decimal-leading-zero);color:#e2c57e;font-size:12px;font-weight:800;letter-spacing:.08em}
body.algorithm-page .ac-chain b{font-family:"Cormorant Garamond",Georgia,serif;font-size:25px;color:#f4d895}
body.algorithm-page .ac-chain span{color:#e6e9df;font-size:14px;line-height:1.45}
body.algorithm-page .ac-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0 42px}
body.algorithm-page .ac-benefits article{min-width:0;padding:25px 22px;border-radius:19px;border:1px solid #d4b26875;background:linear-gradient(148deg,#0c4536,#082d25)}
body.algorithm-page .ac-benefit-mark{color:#e4bf70;font-size:13px;font-weight:900;letter-spacing:.13em}
body.algorithm-page .ac-benefits h4{font:700 29px/1.1 "Cormorant Garamond",Georgia,serif;color:#f2d48a;margin:13px 0}
body.algorithm-page .ac-benefits p{font-size:15px;line-height:1.65;margin:0;color:#ecede5}
body.algorithm-page .ac-outcome{border:1px solid #d5ac6170;border-radius:23px;background:linear-gradient(125deg,#073c2fbf,#155139b0);padding:clamp(23px,4vw,46px);margin:26px 0 33px}
body.algorithm-page .ac-outcome p{margin:0 0 18px}
body.algorithm-page .ac-outcome p.ac-outcome-final{font:700 clamp(20px,2.1vw,27px)/1.35 "Cormorant Garamond",Georgia,serif;color:#f5d995;margin:0}
@media(max-width:980px){body.algorithm-page .ac-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}body.algorithm-page .ac-gold{padding-inline:8px;font-size:14px}body.algorithm-page .ac-chain{grid-template-columns:repeat(2,minmax(0,1fr))}body.algorithm-page .ac-benefits{grid-template-columns:1fr}}
@media(max-width:760px){body.algorithm-page .ac-actions{max-width:560px;margin-inline:auto}body.algorithm-page .ac-about .ac-section-heading{text-align:center}}
@media(max-width:520px){body.algorithm-page .ac-actions{grid-template-columns:1fr;max-width:350px}body.algorithm-page .ac-gold{min-height:64px;font-size:17px}body.algorithm-page .ac-chain{grid-template-columns:1fr 1fr;gap:9px}body.algorithm-page .ac-chain li{min-height:160px;padding:16px 12px 14px}body.algorithm-page .ac-chain b{font-size:21px}body.algorithm-page .ac-chain span{font-size:13px}body.algorithm-page .ac-about .ac-lead{font-size:19px}body.algorithm-page .ac-about .ac-section-heading{margin-top:37px}body.algorithm-page .ac-benefits article{text-align:left}body.algorithm-page .ac-outcome{text-align:left}}
@media(max-width:350px){body.algorithm-page .ac-chain{grid-template-columns:1fr}body.algorithm-page .ac-chain li{min-height:0}}

/* STAGE 3: exact scoped golden-button behaviour, no global styles changed. */
body.algorithm-page .ac-gold {position:relative;isolation:isolate;overflow:hidden;cursor:pointer}
body.algorithm-page .ac-gold::before{content:"";pointer-events:none;position:absolute;inset:-45% auto -45% -70%;width:35%;transform:skewX(-28deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.12),rgba(255,255,255,.85),rgba(255,255,255,.12),transparent);transition:left .65s ease;z-index:1}
body.algorithm-page .ac-gold:hover::before,body.algorithm-page .ac-gold:focus-visible::before{left:140%}
body.algorithm-page .ac-gold:active{background:#a7a7a7!important;border-color:#d0d0d0!important;border-bottom-color:#707070!important;color:#272727!important;box-shadow:inset 0 2px 8px #5557!important;filter:none!important;transform:translateY(1px)!important}
body.algorithm-page .ac-gold:active::before{opacity:0}
body.algorithm-page .ac-motto{margin:23px auto 0;max-width:665px;text-align:center;font:italic clamp(17px,2vw,23px)/1.25 Georgia,serif;letter-spacing:.025em;color:#f6daa2;text-shadow:0 2px 10px #0009}
body.algorithm-page .ac-gold:disabled{opacity:.6;cursor:wait}
@media (max-width:760px){body.algorithm-page .ac-motto{margin-top:20px}}
@media (prefers-reduced-motion:reduce){body.algorithm-page .ac-gold::before{transition:none}}
