/* FRBC V36.36 — MATCH MENU VISUAL PARITY + PROFILE OVER BLUR.
   The home/startup menu and the validated gameplay panels are untouched.
   Only active desktop match + visible match menu can match these rules.
   DO NOT set .frbc-home-screen during a live match. */
@media screen and (min-width:900px) and (min-height:480px) and (pointer:fine) and (hover:hover) {
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .close-modal {position:sticky!important;top:0!important;align-self:flex-end!important;z-index:3!important;margin:0 0 -52px!important;right:auto!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;display:grid!important;place-items:center!important;border:1px solid #a7d5f05c!important;border-radius:12px!important;background:#173b5ce8!important;color:#f3faff!important;font-size:27px!important;line-height:1!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .menu-card>.eyebrow {display:none!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout #welcome-title {font-size:clamp(34px,4.2vw,52px)!important;line-height:1.03!important;letter-spacing:-.055em!important;margin:7px 50px 4px 0!important;overflow-wrap:anywhere}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout #welcome-title:not(.frbc-member-title) {max-width:520px}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout.frbc-menu-guest .intro {display:none!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .intro {font-size:14px!important;line-height:1.55!important;margin:0 0 2px!important;color:#bfd4e7!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-home-auth-slot:not(:empty) {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin:4px 0 2px!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-home-auth-slot .account-entry-actions {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;width:100%!important;margin:0!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-home-auth-slot .account-entry-actions button {min-width:0!important;min-height:54px!important;padding:10px!important;border-radius:12px!important;font-size:13px!important;font-weight:780!important;white-space:normal!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-home-auth-slot .account-entry-actions .account-primary {background:linear-gradient(125deg,#e9f6ff,#a6d8ff)!important;color:#0c2d4b!important;border:1px solid #d0ebff!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-mode-picker {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin:2px 0!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-mode {display:flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;min-width:0!important;min-height:70px!important;padding:12px 10px!important;border:1px solid #8ec2e677!important;border-radius:14px!important;background:#143b5bbf!important;color:#eaf6ff!important;font-size:14px!important;font-weight:780!important;text-align:center!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-mode.active {background:linear-gradient(125deg,#e1f3ff,#91cdff)!important;color:#0b2c49!important;border-color:#d3efff!important;box-shadow:0 7px 18px #04172d69!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-mode-icon {font-size:22px!important;line-height:1!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout.frbc-menu-guest .frbc-home-member-slot {display:none!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-home-member-slot:not(:empty) {display:flex!important;flex-direction:column!important;gap:10px!important;margin:2px 0 0!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-member-title {display:flex!important;align-items:center!important;gap:14px!important;padding-right:38px!important;margin-top:3px!important;overflow-wrap:anywhere}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-member-title .frbc-welcome-avatar {flex:0 0 64px!important;width:64px!important;height:64px!important;border-radius:50%!important;font-size:30px!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-member-title .frbc-welcome-copy {min-width:0!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-member-title .frbc-welcome-label {display:block!important;color:#bfd5e9!important;font-size:.46em!important;line-height:1.4!important;letter-spacing:0!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-member-title .frbc-welcome-name {display:block!important;overflow-wrap:anywhere!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-home-member-slot .profile-entry {margin:0!important;min-height:64px!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-home-member-slot .account-member-actions {display:grid!important;grid-template-columns:repeat(auto-fit,minmax(118px,1fr))!important;gap:8px!important;margin:0!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-home-member-slot .account-member-actions button {min-width:0!important;min-height:45px!important;padding:8px 9px!important;border:1px solid #8cb8dc62!important;border-radius:10px!important;background:#163957!important;color:#e8f5ff!important;font-size:11px!important;font-weight:700!important;white-space:normal!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout #refresh-wallet {display:none!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .account-section {display:none!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-home-settings {display:flex!important;flex-direction:column!important;gap:0!important;margin:2px 0 0!important;padding:14px 16px!important;border:1px solid #a9d8fb!important;border-radius:18px!important;background:linear-gradient(145deg,#1a4a70f2,#163d5cf2)!important;box-shadow:inset 0 1px #e1f3ff1a!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-home-settings .settings-row {min-width:0!important;gap:10px!important;padding:9px 0!important;border-color:#b6d8f52a!important;color:#e4f2ff!important;font-size:12px!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-home-settings .settings-row label {min-width:0!important;line-height:1.35!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-home-settings .settings-row small {display:block!important;color:#b9d5eb!important;font-size:10px!important;line-height:1.35!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-home-settings select {max-width:57%!important;min-width:100px!important;min-height:38px!important;padding:7px 9px!important;font-size:12px!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-home-settings .guide-setting input,
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-home-settings #frbc-clock-option input {width:20px!important;height:20px!important;flex:0 0 auto!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-home-settings .audio-settings {display:grid!important;grid-template-columns:minmax(90px,.75fr) repeat(2,minmax(110px,1fr))!important;gap:12px!important;align-items:center!important;margin:5px 0 8px!important;padding:10px 0!important;border-top:1px solid #badcf22e!important;border-bottom:1px solid #badcf22e!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-home-settings .audio-settings label {min-width:0!important;font-size:11px!important;line-height:1.3!important;color:#d4e7f7!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-home-settings .audio-settings input[type=range] {display:block!important;width:100%!important;max-width:100%!important;margin:6px 0 0!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-home-play-actions {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;align-items:stretch!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-home-play-actions button {min-width:0!important;min-height:48px!important;margin:0!important;padding:10px 8px!important;border-radius:11px!important;font-size:12px!important;line-height:1.2!important;white-space:normal!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout #frbc-tour-open {min-height:49px!important;margin:0!important;padding:10px 14px!important;text-align:left!important;border-radius:11px!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .menu-tools {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;margin:0!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .menu-tools button {min-width:0!important;min-height:52px!important;margin:0!important;padding:10px!important;border-radius:11px!important;font-size:12px!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .menu-tools #training-button {display:none!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .menu-donation-feature {display:none!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout #exit-training {margin:0!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-links {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:0!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-links a {min-width:0!important;min-height:43px!important;padding:8px!important;font-size:11px!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout footer {display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;gap:9px!important;margin:4px 0 0!important;padding:12px 0 4px!important;border-top:1px solid #a9cde72d!important}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout footer button,html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout footer a {font-size:10px!important}

/* The active match MENU curtain (V36.34) can remain visible while a player
   opens their inventory. This modal must be ABOVE its backdrop-filter layer.
   The inventory remains a real dialog, not blurred and fully clickable. */
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo
body #profile-modal#profile-modal#profile-modal:not([hidden]) {
  position:fixed!important;
  inset:0!important;
  z-index:20000!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  visibility:visible!important;
  pointer-events:auto!important;
  filter:none!important;
  -webkit-filter:none!important;
}
html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo
body #profile-modal#profile-modal#profile-modal:not([hidden]) > .inventory-panel {
  position:relative!important;
  z-index:1!important;
  opacity:1!important;
  filter:none!important;
  -webkit-filter:none!important;
  pointer-events:auto!important;
}
}
@media screen and (min-width:900px) and (max-width:1000px) and (min-height:480px) and (orientation:landscape) and (pointer:fine) and (hover:hover) {
 html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout:not([hidden]) {padding:max(4px,env(safe-area-inset-top)) 0 max(4px,env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left))!important}
 html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout>.menu-card {width:min(500px,58vw)!important;height:100%!important;max-height:100%!important;padding:12px 17px max(10px,env(safe-area-inset-bottom))!important;gap:7px!important;border-radius:0 15px 15px 0!important}
 html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout #welcome-title {font-size:clamp(25px,5.5vh,37px)!important;margin:3px 48px 0 0!important}
 html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .intro {font-size:11px!important}
 html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-mode {min-height:45px!important;padding:7px!important;font-size:11px!important}
 html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-mode-icon {font-size:17px!important}
 html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-home-auth-slot .account-entry-actions button {min-height:39px!important;font-size:11px!important}
 html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-home-member-slot .profile-entry {min-height:46px!important;padding:7px 10px!important}
 html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-member-title .frbc-welcome-avatar {width:40px!important;height:40px!important;flex-basis:40px!important;font-size:22px!important}
 html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-home-member-slot .account-member-actions button {min-height:34px!important;padding:5px!important;font-size:9px!important}
 html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-home-settings {padding:7px 11px!important}
 html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-home-settings .settings-row {padding:5px 0!important;font-size:10px!important}
 html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-home-settings .settings-row select {min-height:31px!important;font-size:10px!important}
 html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-home-settings .audio-settings {grid-template-columns:minmax(72px,.75fr) repeat(2,minmax(76px,1fr))!important;gap:6px!important;padding:5px 0!important;margin:3px 0!important}
 html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-home-play-actions button {min-height:38px!important;font-size:10px!important}
 html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout #frbc-tour-open,html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .menu-tools button {min-height:37px!important;padding:6px!important;font-size:10px!important}
 html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout .frbc-links a {min-height:32px!important}
 html.frbc-v36-game-active.frbc-v3625-desktop.frbc-v28-demo body #menu-modal.frbc-match-home-layout footer {padding-top:7px!important}
}
