
.mdc-rules-layer{position:fixed;inset:0;z-index:2140001000;display:grid;place-items:center;padding:16px;color:#193e53;font-family:"Be Vietnam Pro",system-ui,sans-serif}
.mdc-rules-layer *{box-sizing:border-box}.mdc-rules-shade{position:absolute;inset:0;background:rgba(6,31,50,.66);backdrop-filter:blur(5px)}
.mdc-rules-dialog{position:relative;width:min(710px,100%);max-height:min(91dvh,890px);display:flex;flex-direction:column;border:1px solid #c9e8e5;background:#fff;border-radius:25px;box-shadow:0 32px 94px #061d3666;overflow:hidden}
.mdc-rules-top{display:flex;gap:13px;align-items:center;padding:21px 24px;background:linear-gradient(120deg,#e5f8f4,#f3f9fe);border-bottom:1px solid #e1eeef}
.mdc-rules-icon{font-size:38px;width:61px;height:61px;display:grid;place-items:center;background:#fff;border:1px solid #d8ebed;border-radius:17px}
.mdc-rules-title{flex:1;min-width:0}.mdc-rules-kicker{display:block;font-weight:800;color:#328b8a;font-size:10px;letter-spacing:1.1px}
.mdc-rules-title h2{font-size:clamp(19px,3vw,26px);line-height:1.3;margin:5px 0;color:#1b4e5a}.mdc-rules-x{border:0;border-radius:11px;background:#e6f0f3;color:#315970;font-size:28px;width:38px;height:38px;cursor:pointer}
.mdc-rules-body{overflow:auto;padding:20px 25px}.mdc-rules-tag{display:inline-block;font-size:11px;font-weight:900;color:#147a81;letter-spacing:.7px;background:#e2f5ee;border:1px solid #bae2d7;border-radius:100px;padding:8px 11px}
.mdc-rules-intro{font-size:14px;line-height:1.7;color:#486d79;margin:15px 0}.mdc-rules-controls{background:#f0faf8;border:1px solid #ccebe4;border-radius:15px;padding:15px 17px;margin-bottom:17px}
.mdc-rules-controls strong{font-size:15px;color:#116e76}.mdc-rules-controls p{font-size:13px;line-height:1.7;color:#4e737a;margin:7px 0 0}.mdc-rules-steps{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.mdc-rules-step{display:flex;gap:12px;align-items:start;border:1px solid #e1eded;background:#fbfdfc;border-radius:14px;padding:15px}.mdc-rules-step-no{font-size:14px;font-weight:900;color:#158988;background:#e5f7f1;border-radius:10px;padding:6px}
.mdc-rules-step strong{color:#255464;font-size:14px;line-height:1.5}.mdc-rules-step p{color:#607d88;font-size:12px;line-height:1.7;margin:5px 0 0}
.mdc-rules-privacy{font-size:11px;line-height:1.75;color:#547c79;background:#f5f9fa;border-radius:12px;padding:12px 14px;margin:18px 0 0}
.mdc-rules-footer{display:flex;justify-content:space-between;gap:10px;padding:16px 24px;border-top:1px solid #e1ecec;background:white}
.mdc-rules-footer button{min-height:44px;border-radius:11px;padding:10px 20px;font-weight:800;font-size:13px;cursor:pointer}
.mdc-rules-back{background:#eff6f6;border:1px solid #cddfe1;color:#376474}.mdc-rules-start{background:linear-gradient(115deg,#099a90,#08798d);border:0;color:#fff;box-shadow:0 7px 20px #007e8829}
.mdc-rules-start:disabled{opacity:.5;cursor:not-allowed}.mdc-rules-footer button:focus-visible,.mdc-rules-x:focus-visible{outline:3px solid #2cbbad;outline-offset:2px}
.mdc26-game-frame{display:flex;flex-direction:column;gap:7px;min-width:0}.mdc26-game-frame>.mdc26-game{flex:1;min-height:180px}
.mdc26-game-rules{width:100%;background:#fff;color:#136b79;border:1px solid #bcdce0;border-radius:11px;min-height:42px;font-size:13px;font-weight:800;cursor:pointer}
.mdc26-game-rules:hover{background:#e9f8f5;border-color:#5abeb5}
#mdchGameStudio .mdch-game-rule-button{background:#edf9f6;border:1px solid #bbe3d9;color:#127984}
#mdchGameStudio .mdch-game-rule-button:hover{background:#d7f3eb}
#mdchDialog .mdch-game-choice-frame{min-width:0;display:flex;flex-direction:column;gap:7px}
#mdchDialog .mdch-game-choice-frame>button:first-child{flex:1}
#mdchDialog .mdch-game-choice-frame .mdch-game-choice-rules{background:#edf9f6;border:1px solid #c4e4dd;border-radius:11px;padding:10px;color:#12717c;font-size:12px;font-weight:800}
@media(max-width:620px){.mdc-rules-layer{padding:8px}.mdc-rules-dialog{max-height:97dvh;border-radius:17px}.mdc-rules-top{padding:15px}.mdc-rules-body{padding:15px}.mdc-rules-steps{grid-template-columns:1fr}.mdc-rules-footer{padding:12px 15px}.mdc-rules-icon{font-size:29px;width:49px;height:49px}.mdc-rules-title h2{font-size:19px}.mdc-rules-footer button{padding:11px 12px}}
