.board-rules-locked{overflow:hidden}
dialog.board-rules-dialog{
 position:fixed;inset:0;margin:auto;width:min(720px,calc(100% - 40px));
 max-width:none;height:min(780px,calc(100dvh - 64px));max-height:calc(100dvh - 64px);
 padding:0;border:1px solid #30333e;border-radius:18px;background:#111218;color:#eef0f6;
 box-sizing:border-box;overflow:hidden;box-shadow:0 28px 90px #0008;
}
dialog.board-rules-dialog[open]{display:flex;flex-direction:column}
dialog.board-rules-dialog::backdrop{background:rgba(4,5,9,.82);backdrop-filter:blur(6px)}
.board-rules-head{flex:none;padding:26px 28px 20px;border-bottom:1px solid #292c36}
.board-rules-eyebrow{display:block;margin-bottom:8px;color:#99a2ba;font-size:11px;line-height:1.4}
.board-rules-head h2{margin:0;color:#f2f3f8;font-size:28px;font-weight:600;line-height:1.2;letter-spacing:-.02em}
.board-rules-head p{margin:10px 0 0;color:#a6aab8;font-size:13px;line-height:1.6}
.board-rules-content{flex:1;min-height:0;padding:22px 28px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#464b5b #161820}
.board-rules-content.article-bbcode>h2{margin:26px 0 10px;color:#eceef5;font-size:19px;line-height:1.4}
.board-rules-content.article-bbcode>p,.board-rules-content.article-bbcode li{color:#b8bdca;font-size:14px;line-height:1.75}
.board-rules-content.article-bbcode>h2:first-child{margin-top:0}
.board-rules-content a{color:#a9beff}
.board-rules-actions{flex:none;margin:0;padding:16px 28px 22px;border-top:1px solid #292c36;background:#14161e}
.board-rules-hint{margin:0 0 12px;color:#a6aab8;font-size:12px;line-height:1.5}
.board-rules-error{margin:0 0 10px;color:#ffb0b0;font-size:12px;line-height:1.5}
.board-rules-error:empty{display:none}
.board-rules-accept{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px;padding:12px 16px;border:1px solid #5660f5;border-radius:10px;background:#3943e6;color:#fff;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.board-rules-accept:hover:not(:disabled){background:#4953f2}
.board-rules-accept:disabled{border-color:#343847;background:#252936;color:#aeb5c8;cursor:not-allowed}
.board-rules-timer{font-variant-numeric:tabular-nums;white-space:nowrap}
.board-rules-dialog :focus-visible{outline:2px solid #a9beff;outline-offset:-3px}
.board-rules-actions noscript p{font-size:12px;color:#b8bdca}
@media(max-width:640px){
 dialog.board-rules-dialog{inset:auto 0 0;margin:0;width:100%;height:min(90dvh,820px);max-height:calc(100dvh - env(safe-area-inset-top) - 12px);border-radius:18px 18px 0 0;border-bottom:0}
 .board-rules-head{padding:22px 20px 16px}
 .board-rules-head h2{font-size:24px}
 .board-rules-content{padding:18px 20px}
 .board-rules-actions{padding:14px 20px calc(16px + env(safe-area-inset-bottom))}
 .board-rules-accept{font-size:13px}
}
@media(max-height:500px) and (min-width:641px){
 dialog.board-rules-dialog{height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}
 .board-rules-head{padding:14px 24px}.board-rules-actions{padding:10px 24px}
}
