:is(#rallyGame,#smashGame,#clashDialog,#weeklyCourtDialog) .notification-modal-bell{display:none!important}
:is(#rallyGame,#smashGame) .arcade-how,#clashDialog .clash-how{display:none!important}
.game-info-button{position:sticky;top:4px;float:right;z-index:21;display:grid;place-items:center;width:40px;height:40px;min-height:40px;margin:0 50px 8px 0;padding:0;border:1px solid #b9ff2155;border-radius:10px;background:#101b10;color:#b9ff21;font:700 21px Georgia,serif;cursor:pointer}
#gameRulesCard{box-sizing:border-box;width:min(440px,calc(100% - 28px));max-height:84dvh;overflow:auto;padding:22px;border:1px solid #b9ff2155;border-radius:16px;background:radial-gradient(ellipse at top right,#23331a66,transparent 65%),#0a100d;color:#eef5e8}
#gameRulesCard::backdrop{background:#020604b8;backdrop-filter:blur(5px)}
#gameRulesCard>small{font:700 9px Inter,sans-serif;letter-spacing:.15em;color:#b9ff21}
#gameRulesCard header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:10px 0 18px}
#gameRulesCard h3{font:italic 800 30px/1.1 'Barlow Condensed',sans-serif;text-transform:uppercase;margin:0;color:#eef5e8}
#gameRulesCard button{display:grid;place-items:center;flex:none;width:38px;height:38px;padding:0;border:1px solid #b9ff2133;border-radius:9px;background:#b9ff2108;color:#b9ff21;font-size:24px;cursor:pointer}
#gameRulesCard ol{padding:0;list-style:none;counter-reset:rule;margin:0;display:grid;gap:10px}
#gameRulesCard li{counter-increment:rule;position:relative;padding:15px 14px 15px 46px;border:1px solid #b9ff2126;border-radius:10px;background:#b9ff2104;font:400 13px/1.65 Inter,sans-serif;color:#c8d9bb}
#gameRulesCard li:before{content:counter(rule,decimal-leading-zero);position:absolute;left:13px;top:16px;color:#b9ff21;font:700 11px Inter,sans-serif}
#gameRulesCard :focus-visible,.game-info-button:focus-visible{outline:2px solid #b9ff21;outline-offset:3px}
#gameRulesCard .notification-modal-bell{display:none!important}

/* Aligned with the game's close control. */
.game-sheet-actions .game-info-button{position:static;float:none;flex:none;width:48px;height:48px;min-width:48px;min-height:48px;margin:0;padding:0;border-radius:14px;transform:none}
#weeklyCourtDialog>header .game-info-button{position:static;float:none;flex:none;margin:0 0 0 auto;width:38px;height:38px;min-height:38px}
#gameRulesCard ol{gap:12px}
#gameRulesCard li{padding:17px 16px 17px 68px;min-height:94px;background:linear-gradient(115deg,#23422b,#112317);border-color:#91e6a04d}
#gameRulesCard li:nth-child(2){background:linear-gradient(115deg,#183d4a,#10212b);border-color:#83d9ff55}
#gameRulesCard li:nth-child(3){background:linear-gradient(115deg,#49351b,#241b10);border-color:#ffd17d55}
#gameRulesCard li:before{display:none}
.rule-step-icon{position:absolute;left:15px;top:19px;display:grid;place-items:center;width:38px;height:38px;border:1px solid #b9ff2155;border-radius:11px;background:#b9ff2114;color:#caff82;font:24px Arial,sans-serif}
#gameRulesCard li:nth-child(2) .rule-step-icon{color:#a6e6ff;background:#7bdcff14;border-color:#7bdcff55}
#gameRulesCard li:nth-child(3) .rule-step-icon{color:#ffda94;background:#ffd17d14;border-color:#ffd17d55}
#gameRulesCard li strong{display:block;font-size:15px;color:#f4f8ee;line-height:1.35;margin-bottom:6px}
#gameRulesCard li p{font-size:12px;line-height:1.65;color:#ceddc5;margin:0}
.rule-extra{margin-top:18px;border-top:1px solid #ffffff20;padding-top:14px}
.rule-extra summary{cursor:pointer;color:#b9ff21;font:600 12px Inter,sans-serif;min-height:30px}
.rule-extra p{color:#b8c9ac;font:12px/1.7 Inter,sans-serif;padding:10px 0;margin:0;border-top:1px solid #ffffff0c}

.game-info-button,.game-sheet-actions .game-info-button{background:#b9ff21;color:#101909;border:1px solid #d6ff8c;box-shadow:0 2px 12px #b9ff2120}
.game-info-button svg{display:block;width:27px;height:27px;pointer-events:none}

.game-sound-toggle{flex:none;min-height:36px;padding:8px 10px;border:1px solid #b9ff2140;border-radius:9px;background:#b9ff2108;color:#cbe4b7;font:600 10px Inter,sans-serif;cursor:pointer}
.game-sound-toggle[aria-pressed=false]{color:#9aab90;background:transparent}
.game-sound-toggle:focus-visible{outline:2px solid #b9ff21;outline-offset:2px}
/* One compact action group: sound, help, close. */
.game-sheet-actions{gap:7px}
.game-sheet-actions .game-speaker,.game-sheet-actions .game-info-button,.game-sheet-actions .rally-minimise,.game-sheet-actions .clash-close{box-sizing:border-box;display:grid!important;place-items:center;width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;margin:0!important;padding:8px!important;border:1px solid #b9ff213d;border-radius:10px;background:#101b12;color:#d6ebc6;box-shadow:none;font-size:24px}
.game-sheet-actions .game-info-button{background:#b9ff21;color:#101909}
.game-sheet-actions .game-speaker[aria-pressed=false]{color:#8e9e86;background:#0a100d}
.game-sheet-actions .game-speaker svg,.game-sheet-actions .game-info-button svg{width:23px;height:23px;display:block;pointer-events:none}
@media(max-width:380px){.game-sheet-actions{gap:5px}.game-sheet-handle{padding-left:0;padding-right:0}.game-sheet-handle small{font-size:8px}.game-sheet-toolbar{gap:6px}}

/* Identical geometry and optical centring for every game action. */
:is(#rallyGame,#smashGame,#clashDialog) .game-sheet-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;line-height:1}
:is(#rallyGame,#smashGame,#clashDialog) .game-sheet-actions>button{position:static!important;inset:auto!important;float:none!important;display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 40px!important;box-sizing:border-box;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;padding:0!important;margin:0!important;line-height:1!important;transform:none!important;vertical-align:middle;appearance:none}
:is(#rallyGame,#smashGame,#clashDialog) .game-sheet-actions>button>svg{display:block!important;flex:none;width:24px!important;height:24px!important;margin:0!important;padding:0!important;transform:none!important;pointer-events:none}
