.rules{display:block;padding:clamp(72px,8vw,120px) max(48px,calc((100vw - 1440px)/2))}
.rules-heading{max-width:760px;margin-bottom:clamp(42px,5vw,68px)}
.rules-heading h2{margin:1.5rem 0}
.rules-heading>p{max-width:680px}
.ap-guide{margin-bottom:clamp(70px,8vw,115px)}
.ap-guide-steps{margin:.65rem 0 .5rem;padding:0;list-style:none}
.ap-guide-steps li{list-style:none}
.ap-guide-steps [hidden]{display:none!important}
.ap-guide-steps h4{margin:.65rem 0 .5rem}
.ap-guide-steps p{max-width:850px;min-height:3em;margin:0;color:#515f55;font-size:.88rem;line-height:1.65}
.ap-last-updated{margin:0;padding:0 max(48px,calc((100vw - 1440px)/2)) 40px;background:#f2e9d8;color:#647168;font-size:.72rem;text-align:right}
.ap-guide .bastra-tutorial-scene{display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;gap:.8rem;min-height:390px;background:radial-gradient(circle at 50% 45%,#32715b,#1b4a3c 74%,#11362e);text-align:center}
.apg-scene-top{color:#cfe1d2;font-size:.62rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.apg-scene-centre{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:.65rem;min-width:0;padding:1rem;border:1px dashed #ffffff55;border-radius:12px;background:#0c302b55}
.apg-scene-centre>span:first-child{color:#cfe1d2;font-size:.62rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.apg-cards{display:flex;justify-content:center;align-items:center;gap:.45rem;min-height:80px}
.apg-move-arrow{color:#f4c863;font-size:1.1rem}
.apg-card-back{display:grid;place-items:center;width:57px;height:79px;border:3px solid #fff7e6;border-radius:6px;background:#d65e4a;color:#fff7e6;font-size:1.6rem;box-shadow:inset 0 0 0 3px #ffffff77}
.apg-setup-columns{display:flex;align-items:center;justify-content:center;gap:.55rem;min-height:85px}
.apg-setup-columns span{display:flex;flex-direction:column;justify-content:center;width:42px;height:60px;border:2px solid #fff7e6;border-radius:5px;background:#fffaf0;color:#17382f;font:400 1.15rem var(--serif,Georgia,serif);box-shadow:4px -5px 0 #d9cdb9,7px -9px 0 #fffaf0}
.apg-setup-columns small{font:700 .55rem var(--sans,Arial,sans-serif)}
.apg-foundations{align-self:center;width:min(330px,100%);padding:.55rem;border:1px dashed #ffffff88;border-radius:6px;color:#fff9eb;font:400 1.2rem/1.45 var(--serif,Georgia,serif);letter-spacing:.35em}
.apg-score{display:flex;flex:1;align-items:center;justify-content:center;gap:1rem}
.apg-score div{display:grid;gap:.2rem;min-width:110px;padding:1rem;border:1px solid #ffffff77;border-radius:8px;background:#ffffff13;color:#fff9eb}
.apg-score span{font-size:.72rem;text-transform:uppercase}.apg-score strong{font:400 2.8rem var(--serif,Georgia,serif)}
.apg-caption{align-self:center;max-width:100%;padding:.45rem .8rem;border-radius:999px;background:#0c302be3;color:#f1c35b;font-size:.68rem;font-weight:700;line-height:1.4}
.ap-guide .bt-card{width:57px;height:79px}
.bastra-variant-panel[hidden],.bastra-variant-panel [hidden]{display:none!important}
.bastra-reference-copy #ap-variants .bastra-variant-panel{margin:1.2rem 0}
.bastra-reference-copy #ap-variants .bastra-variant-panel+p{margin-top:.8rem}
.rules-ad{margin:clamp(64px,7vw,100px) 0 0}
@media(max-width:760px){.rules{padding:76px 22px}.ap-guide .bastra-tutorial-scene{min-height:335px;padding:16px 10px;gap:.5rem}.ap-guide .bt-card,.apg-card-back{width:43px;height:62px}.apg-cards{min-height:62px}.apg-setup-columns{gap:.32rem}.apg-setup-columns span{width:31px;height:44px}.apg-foundations{font-size:1rem}.apg-caption{font-size:.59rem}.ap-guide-steps p{min-height:0}.ap-last-updated{padding:0 22px 32px}}
@media(max-width:380px){.ap-guide .bt-card,.apg-card-back{width:38px;height:56px}.apg-setup-columns span{width:27px;height:40px}.apg-setup-columns{gap:.2rem}}
