
/* EMBER V — Rulebook edition */
.rulebook-wrap{padding:clamp(42px,7vw,105px) 0 110px;background:radial-gradient(ellipse at 85% 0%,rgba(222,30,108,.09),transparent 43%),#090a10;color:#f9f2f7}.rulebook-wrap .shell{max-width:1250px}.rule-intro{display:flex;justify-content:space-between;gap:36px;align-items:end;padding-bottom:46px;border-bottom:1px solid rgba(248,106,166,.22)}.rule-intro h2{font-size:clamp(38px,5.2vw,74px);line-height:1.04;margin:14px 0 20px;letter-spacing:-.035em}.rule-intro h2 em,.rule-end h3 em{color:#ff438d;font-style:normal}.rule-intro p{max-width:650px;color:#bcb0bf;line-height:1.75;font-size:16px}.rule-version{min-width:230px;max-width:255px;background:linear-gradient(135deg,#291520,#151018);border:1px solid #603249;border-radius:17px;padding:24px;display:grid;gap:10px}.rule-version span,.rule-version small{color:#bfa8b7;font-size:11px;line-height:1.6}.rule-version strong{font-size:30px;font-weight:900}.rule-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:52px;padding-top:50px;align-items:start}.rule-sidebar{position:sticky;top:105px;display:grid;gap:6px}.rule-nav-title{color:#ff6fa7;font-size:11px;letter-spacing:.18em;font-weight:800;padding:0 12px 16px}.rule-sidebar>a{color:#bdb0bf;text-decoration:none;border-radius:10px;padding:13px 12px;display:flex;gap:15px;align-items:center;font-size:13px;transition:.2s}.rule-sidebar>a span{color:#fa619d;font-size:11px;font-weight:800}.rule-sidebar>a:hover,.rule-sidebar>a:focus-visible{background:#291721;color:white;transform:translateX(3px)}.rule-help{margin-top:24px;border:1px solid #513044;background:#1b121d;padding:21px;border-radius:14px}.rule-help strong{font-size:14px}.rule-help p{color:#b8a9b5;font-size:12px;line-height:1.7;margin:9px 0 15px}.rule-help a{color:#ff77ab;text-decoration:none;font-size:12px;font-weight:800}.rule-content{min-width:0}.rule-chapter{scroll-margin-top:110px;margin-bottom:52px}.rule-chapter-head{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end;margin-bottom:17px}.rule-chapter-head span{grid-column:1/-1;color:#ff71a8;font-size:11px;letter-spacing:.18em;font-weight:800}.rule-chapter-head h3{font-size:clamp(26px,3vw,39px);line-height:1.15;margin:0}.rule-chapter-head p{color:#a38b9c;font-size:11px;font-weight:800;letter-spacing:.1em;margin:0}.rule-items{background:linear-gradient(145deg,rgba(40,20,35,.8),rgba(18,14,24,.95));border:1px solid #4d2b40;border-radius:17px;overflow:hidden}.rule-item{display:grid;grid-template-columns:58px minmax(0,1fr);gap:18px;padding:25px 27px;border-bottom:1px solid rgba(245,128,174,.14)}.rule-item:last-child{border:0}.rule-num{color:#f76b9e;font-size:11px;font-weight:900;padding-top:5px;letter-spacing:.07em}.rule-item h4{font-size:17px;margin:0 0 9px;color:#fff}.rule-item p{color:#c0b3c1;line-height:1.75;font-size:14px;margin:0;max-width:730px}.rule-end{background:linear-gradient(120deg,#371426,#160e19);border:1px solid #7a3455;border-radius:19px;padding:clamp(25px,5vw,50px)}.rule-end>span{font-size:11px;letter-spacing:.2em;font-weight:900;color:#ff78ad}.rule-end h3{font-size:clamp(25px,3vw,42px);line-height:1.13;margin:15px 0 24px}.rule-end>a{display:inline-flex;padding:14px 20px;background:#ee2d77;border-radius:9px;color:white;text-decoration:none;font-size:13px;font-weight:800}.rule-end>a:hover{background:#ff438d}@media(max-width:850px){.rule-intro{align-items:start;flex-direction:column}.rule-version{max-width:none;width:100%}.rule-layout{grid-template-columns:1fr;gap:35px}.rule-sidebar{position:static;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.rule-nav-title,.rule-help{grid-column:1/-1}.rule-sidebar>a{border:1px solid #3c2535;background:#16111b}.rule-chapter{margin-bottom:37px}}@media(max-width:520px){.rulebook-wrap{padding:42px 0 75px}.rule-sidebar{grid-template-columns:1fr}.rule-item{grid-template-columns:44px 1fr;gap:8px;padding:20px 15px}.rule-item h4{font-size:16px}.rule-item p{font-size:13px}.rule-chapter-head{grid-template-columns:1fr}.rule-chapter-head p{display:none}}
