/* V30: bottom sheet for phone/Pad only; desktop side drawer unchanged. */
@media(max-width:1099px){
.rank-drawer{inset:auto 0 0 0;width:100%;height:min(86dvh,820px);max-height:calc(100dvh - env(safe-area-inset-top) - 16px);border:1px solid #967442;border-bottom:0;border-radius:20px 20px 0 0;box-shadow:0 -18px 55px #0007;transform:none}
.rank-drawer[open]{animation:rank-sheet-enter-v30 .28s cubic-bezier(.16,1,.3,1)}
.rank-drawer:before{content:'';display:block;flex:none;align-self:center;width:38px;height:4px;margin:10px auto 0;border-radius:4px;background:#9e865d}
.rank-drawer-header{padding:12px 17px 14px}.rank-drawer-footer{padding-bottom:max(16px,env(safe-area-inset-bottom))}
}
@keyframes rank-sheet-enter-v30{from{transform:translateY(100%)}to{transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.rank-drawer[open]{animation:none}}
.rules-v30{font-size:13px;line-height:1.75;color:#ddd3c1}
.rules-v30 section+section{margin-top:20px}
.rules-v30 h3{font-size:15px;color:#edcb89;margin:0 0 8px;font-weight:700;border-bottom:1px solid #82653a60;padding-bottom:6px}
.rules-v30 p{margin:7px 0;line-height:1.75}
.rules-v30 ul{padding-left:19px;margin:7px 0}.rules-v30 li+li{margin-top:7px}
.rules-v30 .rules-prizes{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:10px 0}
.rules-v30 .rules-prizes b{padding:6px 8px;text-align:center;color:#efd092;border:1px solid #80633966;background:#31271b66;border-radius:5px;font-size:15px}
.rules-v30 .rules-note{font-size:12px;color:#bfb299}
.rules-v30 table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;margin:8px 0}
.rules-v30 th,.rules-v30 td{text-align:left;padding:7px 10px;border-bottom:1px solid #80633944}
.rules-v30 th{font-size:12px;color:#c7b99d;background:#30271c55;font-weight:500}
.rules-v30 td:last-child{color:#edcb89;font-weight:650;text-align:right}.rules-v30 th:last-child{text-align:right}
.rules-v30 td:last-child span{font-size:11px;font-weight:400;color:#bdaf96}
@media(max-width:760px){.rules-v30{font-size:12px}.rules-v30 h3{font-size:14px}.rules-v30 section+section{margin-top:17px}}
