/* Rules: a floating city-code dossier, separate from the homepage constellation. */
.ax-code-display{width:min(100%,500px);height:290px;margin:0 auto 38px;position:relative;direction:ltr;perspective:1000px;pointer-events:none}
.ax-code-floor{position:absolute;left:13%;right:13%;bottom:3px;height:55px;background:radial-gradient(ellipse,#537a9b35,transparent 67%);transform:rotateX(65deg);filter:blur(8px)}
.ax-code-sheet{position:absolute;border:1px solid #8199ad4a;border-radius:14px;background:linear-gradient(145deg,#132333ef,#080e17fa);box-shadow:0 18px 50px #0006;overflow:hidden}
.ax-code-back{width:215px;height:230px;left:80px;top:20px;transform:rotate(-13deg);padding:24px;text-align:left;animation:ax-dossier-back 8s ease-in-out infinite}
.ax-code-back>span{font:7px Arial;letter-spacing:.16em;color:#7e9bb3}.ax-code-back>i{display:block;font-size:55px;color:#7a9bb34d;margin:30px 0 20px}
.ax-code-back>b{display:block;height:3px;background:#7c9cb529;width:80%;margin:10px 0}.ax-code-back>b:last-child{width:55%}
.ax-code-front{width:255px;height:243px;left:calc(50% - 104px);top:18px;transform:rotate(7deg);padding:20px;animation:ax-dossier-front 7s ease-in-out infinite}
.ax-code-meta{display:flex;justify-content:space-between;font:7px Arial;letter-spacing:.12em;color:#8fa7bb}
.ax-code-seal{width:60px;height:60px;margin:18px auto 12px;display:grid;place-items:center;border-radius:17px;border:1px solid #a1b9cc55;background:radial-gradient(circle,#39557055,#122331);box-shadow:0 0 22px #618bab16;color:#e3edf4;font-size:25px}
.ax-code-front>strong{display:block;color:#e1e9ef;text-align:center;font-size:.86rem;direction:rtl}
.ax-code-lines{margin-top:14px}.ax-code-lines>b{display:block;height:3px;margin:8px auto;background:#8da7bf2e;width:82%;border-radius:2px}.ax-code-lines>b:nth-child(2){width:68%}.ax-code-lines>b:nth-child(3){width:45%}
.ax-code-sign{display:flex;align-items:center;justify-content:space-between;margin-top:8px;font:6px Arial;letter-spacing:.13em;color:#7b94a9}.ax-code-sign img{object-fit:contain}
.ax-code-scan{position:absolute;top:-10%;left:0;right:0;height:25%;background:linear-gradient(transparent,#89b4d714,transparent);border-bottom:1px solid #a2c8e733;animation:ax-dossier-scan 6s ease-in-out infinite}
.ax-code-note{position:absolute;font-size:.65rem;color:#b3c6d6;border:1px solid #647f9744;background:#0d1926e8;border-radius:9px;padding:9px 13px;display:flex;align-items:center;gap:8px;box-shadow:0 8px 20px #0004;direction:rtl;animation:ax-dossier-note 6s ease-in-out infinite}
.ax-code-note>i{color:#accbe1}.ax-note-one{top:47px;right:0;animation-delay:-2s}.ax-note-two{bottom:35px;left:15px;animation-delay:-4s}
.ax-code-speck{position:absolute;left:48px;top:68px;width:4px;height:4px;background:#abcbe0;box-shadow:0 0 13px #89c2e6;border-radius:1px}
@keyframes ax-dossier-front{0%,100%{transform:translateY(-5px) rotate(7deg)}50%{transform:translateY(5px) rotate(4deg)}}
@keyframes ax-dossier-back{0%,100%{transform:translateY(4px) rotate(-13deg)}50%{transform:translateY(-5px) rotate(-10deg)}}
@keyframes ax-dossier-note{0%,100%{transform:translateY(-4px)}50%{transform:translateY(5px)}}
@keyframes ax-dossier-scan{0%,15%{top:-30%;opacity:0}25%,75%{opacity:1}90%,100%{top:110%;opacity:0}}
@media(max-width:600px){.ax-code-display{height:255px;max-width:340px;margin-bottom:25px}.ax-code-front{width:210px;height:225px;left:calc(50% - 90px);padding:16px;top:10px}.ax-code-back{width:175px;height:210px;left:35px;top:16px;padding:18px}.ax-code-note{font-size:.55rem;padding:7px 9px}.ax-note-one{top:29px;right:-3px}.ax-note-two{bottom:18px;left:0}.ax-code-seal{margin:15px auto 11px}.ax-code-front>strong{font-size:.75rem}}
@media(prefers-reduced-motion:reduce){.ax-code-display *{animation:none!important}.ax-code-scan{display:none}}

/* Balanced header with breathing room below the fixed navigation. */
body .ax-rules-hero{padding:165px 0 78px;min-height:620px;background:#07111c;isolation:isolate}
body .ax-rules-hero>.container{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);align-items:center;gap:65px;width:100%;max-width:1200px;direction:ltr;position:relative;z-index:2}
.ax-rules-intro{direction:rtl;text-align:start;min-width:0;padding-block:20px}
.ax-rules-intro .hero-eyebrow{margin-bottom:23px;color:#bed0df;background:#10243688;border-color:#6e97b533}
body .ax-rules-intro h1{font-size:clamp(2.4rem,4.6vw,4rem);line-height:1.5;margin-bottom:13px}
.ax-rules-intro .hero-sub{margin:0 0 25px;max-width:460px;color:#a6b8c8;font-size:.92rem;line-height:2}
.ax-rules-intro .hero-chips{justify-content:flex-start;gap:8px}
.ax-rules-intro .chip{background:#101e2b;border-color:#7896ae2e;color:#aebfce;padding:7px 12px}
body .ax-rules-hero .ax-code-display{width:100%;max-width:500px;height:310px;margin:20px auto 0;grid-column:1;grid-row:1;align-self:center}
body .ax-rules-hero .hero-bg{z-index:0;background:radial-gradient(ellipse at 20% 50%,#244c6c44,transparent 58%),radial-gradient(ellipse at 90% 20%,#102b4444,transparent 55%),linear-gradient(135deg,#060d16,#0b1928 50%,#050c14)}
.ax-rules-hero::before{content:'';position:absolute;inset:0;pointer-events:none;z-index:1;background-image:linear-gradient(#7cacc30b 1px,transparent 1px),linear-gradient(90deg,#7cacc30b 1px,transparent 1px);background-size:54px 54px;mask-image:linear-gradient(90deg,#000,transparent 85%)}
.ax-rules-hero::after{content:'';position:absolute;left:10%;top:21%;width:32%;height:60%;pointer-events:none;z-index:1;border:1px solid #668da71a;border-radius:28px;transform:rotate(-8deg)}
body[data-ax-page=rules] .content{background:radial-gradient(ellipse at 5% 30%,#152f4324,transparent 50%),#050c14;padding-top:45px}
body[data-ax-page=rules] .tabs-bar{top:80px;background:#091521f5;border-block:1px solid #6a8ba530}
body[data-ax-page=rules] .rule-card{background:linear-gradient(135deg,#101e2c,#0a1420);border-color:#7995ac2e;border-radius:14px;padding:22px}
body[data-ax-page=rules] .rule-num{background:#162d40;color:#c5d8e7;border-color:#7da6c133}
body[data-ax-page=rules] .rule-desc{color:#9cabb9;line-height:1.95}
body[data-ax-page=rules] .rules-grid{gap:16px}
@media(max-width:850px){body .ax-rules-hero{padding:125px 0 55px;min-height:auto}body .ax-rules-hero>.container{grid-template-columns:minmax(0,1fr);gap:28px;max-width:650px}.ax-rules-intro{text-align:center}.ax-rules-intro .hero-sub{margin-inline:auto}.ax-rules-intro .hero-chips{justify-content:center}body .ax-rules-hero .ax-code-display{height:275px;margin:22px auto 0;max-width:400px}.ax-rules-hero::after{left:15%;width:70%;height:35%;top:15%}}
@media(max-width:600px){body .ax-rules-hero{padding-top:118px}body .ax-rules-hero .ax-code-display{height:255px;max-width:340px}.ax-rules-intro{padding-block:5px}body .ax-rules-intro h1{font-size:2.4rem}.ax-rules-intro .hero-sub{font-size:.82rem}.ax-rules-intro .chip{font-size:.65rem}body[data-ax-page=rules] .tabs-bar{top:70px}body[data-ax-page=rules] .rule-card{padding:18px}}

/* Lower the floating dossier independently from the heading. */
body .ax-rules-hero .ax-code-display{top:65px;margin-bottom:65px}
body .ax-rules-hero .hero-bg{background-size:150% 150%;animation:ax-rules-light-drift 22s ease-in-out infinite alternate}
.ax-rules-hero::before{inset:-55px;animation:ax-rules-grid-drift 24s linear infinite}
.ax-rules-hero::after{animation:ax-rules-frame-drift 14s ease-in-out infinite alternate}
@keyframes ax-rules-light-drift{from{background-position:0% 30%}to{background-position:100% 75%}}
@keyframes ax-rules-grid-drift{to{background-position:54px -54px}}
@keyframes ax-rules-frame-drift{from{transform:translateY(0) rotate(-8deg);opacity:.5}to{transform:translateY(20px) rotate(-5deg);opacity:1}}
@media(max-width:850px){body .ax-rules-hero .ax-code-display{top:45px;margin-bottom:65px}}
@media(prefers-reduced-motion:reduce){body .ax-rules-hero .hero-bg,.ax-rules-hero::before,.ax-rules-hero::after{animation:none!important}}

/* Lower the entire rules composition, including the text column. */
body .ax-rules-hero{padding-top:290px;padding-bottom:85px;min-height:760px}
body .ax-rules-hero .ax-code-display{top:65px}
@media(max-width:850px){body .ax-rules-hero{padding-top:195px;min-height:auto}}
@media(max-width:600px){body .ax-rules-hero{padding-top:175px}}

/* Compact introduction: reach the rules without a long decorative scroll. */
body .ax-rules-hero{padding:105px 0 35px;min-height:0}
body .ax-rules-hero>.container{gap:35px}
body .ax-rules-hero .ax-code-display{height:245px;top:0;margin:0 auto;transform:scale(.84);transform-origin:center}
.ax-rules-intro{padding:10px 0}
body .ax-rules-intro h1{font-size:clamp(2rem,3.5vw,3rem);margin-bottom:10px}
.ax-rules-intro .hero-eyebrow{margin-bottom:12px}
.ax-rules-intro .hero-sub{margin-bottom:16px;font-size:.83rem}
.ax-rules-hero .ax-page-brief{display:none}
.ax-rules-hero::after{top:15%;height:70%}
@media(max-width:850px){body .ax-rules-hero{padding:100px 0 30px}body .ax-rules-hero>.container{gap:5px}body .ax-rules-hero .ax-code-display{height:195px;top:0;margin:0 auto;transform:scale(.7);transform-origin:center top}.ax-rules-intro{padding:0}.ax-rules-intro .hero-chips{gap:6px}}
@media(max-width:600px){body .ax-rules-hero{padding-top:90px}body .ax-rules-intro h1{font-size:2rem}.ax-rules-intro .hero-sub{margin-bottom:12px}.ax-rules-intro .hero-eyebrow{font-size:.6rem}}

/* Safe locations are a clear destination list, separate from conduct rules. */
.ax-safe-locations{grid-column:1/-1;border:1px solid #789db640;border-radius:16px;padding:25px;background:radial-gradient(ellipse at 100% 0,#24435a33,transparent 70%),#0a1622}
.ax-safe-heading{display:flex;align-items:center;gap:14px;margin-bottom:20px}
.ax-safe-heading>i{display:grid;place-items:center;width:44px;height:44px;border:1px solid #8aadc53b;border-radius:12px;background:#142b3d;color:#d2e2ee;font-size:18px}
.ax-safe-heading strong{display:block;color:#e1ebf2;font-size:1rem}
.ax-safe-heading div>span{display:block;color:#91a7ba;font-size:.75rem;margin-top:5px}
.ax-safe-tags{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ax-safe-tags>span{display:flex;align-items:center;gap:12px;padding:15px;border:1px solid #6c8ca42b;border-radius:10px;background:#0d1e2c;color:#d0deea;font-size:.8rem;font-weight:700}
.ax-safe-tags i{color:#91b5ce;width:22px;text-align:center}
@media(max-width:600px){.ax-safe-locations{padding:18px}.ax-safe-tags{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ax-safe-tags>span{padding:12px 9px;font-size:.7rem;gap:7px}.ax-safe-heading strong{font-size:.85rem}}
