/* Rules are an optional read-only layer, not a new step in the betting flow. */
.rules-btn{min-width:44px;min-height:44px;flex-shrink:0;font-size:19px;font-weight:600}
.rules-dialog{width:min(640px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:0;margin:auto;border:1px solid #796841;border-radius:22px;background:#10110f;color:#f4ecd9;box-shadow:0 24px 90px #000b;overflow:hidden;user-select:text}
.rules-dialog[open]{display:flex;flex-direction:column}
.rules-dialog:not([open]){display:none}
.rules-dialog::backdrop{background:#020404ce;backdrop-filter:blur(6px)}
.rules-header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex:none;padding:16px 20px;border-bottom:1px solid #51462e;background:#171710}
.rules-header small{color:#d1b87b;font-size:10px;letter-spacing:.12em}
.rules-header h2{font-family:Georgia,serif;font-size:28px;font-weight:400;margin:5px 0 0}
.rules-close{flex:none;min-width:44px;min-height:44px;border:1px solid #796841;border-radius:12px;background:#242319;color:#fff5d5;font-size:26px;cursor:pointer}
.rules-body{padding:4px 22px 22px;overflow-y:auto;overscroll-behavior:contain;min-height:0;font-size:14px;line-height:1.65;scrollbar-color:#786844 #10110f;-webkit-overflow-scrolling:touch}
.rules-body section{border-top:1px solid #403b2c;margin-top:20px;padding-top:6px}
.rules-body h3{font-size:17px;color:#ffe9ad;line-height:1.35;margin:14px 0 8px}
.rules-body p{margin:10px 0;color:#ddd6c6;overflow-wrap:anywhere}
.rules-body .rules-intro{color:#f4ecd9}
.rules-facts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}
.rules-facts div{border:1px solid #51462e;border-radius:12px;padding:10px 12px;background:#1b1b13;min-width:0}
.rules-facts dt{font-size:11px;color:#c7b793}
.rules-facts dd{font-size:20px;margin:3px 0 0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.rules-body .rules-gate{padding-left:10px;border-left:2px solid #8c7540;color:#f4ecd9}
.rules-btn:focus-visible,.rules-close:focus-visible,.rules-body:focus-visible{outline:2px solid #ffe9ad;outline-offset:-3px}
@media(max-width:760px){
  .rules-dialog{border-radius:16px}
  .rules-header{padding:12px 16px}
  .rules-header h2{font-size:25px}
  .rules-body{padding:4px 16px 20px}
  .topbar:has(.session-clock:not([hidden])) .brand-text{display:none}
  .top-actions{gap:5px}
  .session-clock{min-width:44px;padding:0 5px}
  .safer-btn{min-height:44px}
}
@media(max-width:380px){
  .topbar{gap:6px}
  .topbar .brand-text{display:none}
  .topbar:has(.session-clock:not([hidden])):has(.safer-btn:not([hidden])) .brand{display:none}
  .rules-facts{gap:8px}
  .rules-facts dd{font-size:18px}
}
