
/* Faceit ModalSteam chrome-dark — exact layout constants */
#steamBrowserRoot {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
}
#steamBrowserRoot.is-hidden { display: none; }
#steamBrowserDim {
  position: fixed;
  inset: 0;
  background: transparent;
  pointer-events: none;
}
#steamBrowserWindow {
  position: fixed;
  z-index: 99999;
  pointer-events: auto;
  width: 1000px;
  height: 800px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #1F2020;
  border: 1px solid #232323;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  overflow: hidden;
  color: #E3E3E3;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  box-sizing: border-box;
  isolation: isolate;
  contain: layout paint;
  min-width: 400px;
  min-height: 300px;
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
}
#steamBrowserWindow.is-live {
  left: var(--modal-live-left);
  top: var(--modal-live-top);
  width: var(--modal-live-width);
  height: var(--modal-live-height);
  transform: none;
}
#steamBrowserWindow.is-dragging {
  transform: translate(var(--drag-dx, 0px), var(--drag-dy, 0px));
}
#steamBrowserWindow.is-dragged:not(.is-live):not(.is-dragging):not(.is-fs) {
  transform: none;
}
#steamBrowserWindow.is-fs {
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  transform: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
#steamBrowserDragBlock {
  position: absolute;
  inset: 0;
  z-index: 10000;
  background: transparent;
  display: none;
}
#steamBrowserWindow.is-dragging #steamBrowserDragBlock,
#steamBrowserWindow.is-resizing #steamBrowserDragBlock {
  display: block;
}

/* resize handles */
.sb-rh {
  position: absolute;
  z-index: 5;
}
.sb-rh.n { top: 0; left: 6px; right: 6px; height: 6px; cursor: n-resize; }
.sb-rh.s { bottom: 0; left: 6px; right: 6px; height: 6px; cursor: s-resize; }
.sb-rh.w { left: 0; top: 6px; bottom: 6px; width: 6px; cursor: w-resize; }
.sb-rh.e { right: 0; top: 6px; bottom: 6px; width: 6px; cursor: e-resize; }
.sb-rh.nw { top: 0; left: 0; width: 6px; height: 6px; cursor: nw-resize; z-index: 25; }
.sb-rh.ne { top: 0; right: 0; width: 6px; height: 6px; cursor: ne-resize; z-index: 25; }
.sb-rh.sw { bottom: 0; left: 0; width: 6px; height: 6px; cursor: sw-resize; z-index: 25; }
.sb-rh.se { bottom: 0; right: 0; width: 6px; height: 6px; cursor: se-resize; z-index: 25; }
#steamBrowserWindow.is-fs .sb-rh { display: none; }

#steamBrowserTitleBar {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 5px;
  background: #1F2020;
  user-select: none;
  flex-shrink: 0;
  overflow: hidden;
  cursor: default;
}
#steamBrowserTitleLeft {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  pointer-events: none;
}
#steamBrowserTitleLeft .sb-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
#steamBrowserTitleLeft .sb-title {
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#steamBrowserTitleBtns {
  display: flex;
  align-items: center;
  height: 100%;
  flex-shrink: 0;
}
#steamBrowserTitleBtns button {
  width: 45px;
  height: 29px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: default;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 12px;
  line-height: 1;
}
#steamBrowserTitleBtns button:hover { background: #363737; }
#steamBrowserTitleBtns button.sb-close:hover { background: #E81123; }

#steamBrowserUrlBar {
  height: 34px;
  background: #282828;
  display: flex;
  align-items: flex-start;
  position: relative;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 0 6px 0 6px;
  overflow: hidden;
}
#steamBrowserUrlBar.is-hover { background: #4A4A4A; }
#steamBrowserUrlBar.is-focus { background: #3C3C3C; height: 32px; }
#steamBrowserUrlBar .sb-lock {
  position: absolute;
  left: 8px;
  top: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #3C3C3C;
  display: grid;
  place-items: center;
  z-index: 10;
}
#steamBrowserUrlBar .sb-lock img {
  width: 16px;
  height: 16px;
  opacity: .9;
}
#steamBrowserUrlText {
  position: absolute;
  left: 40px;
  right: 18px;
  top: 0;
  height: 34px;
  font-size: 14px;
  line-height: 20px;
  overflow: hidden;
  white-space: nowrap;
  cursor: text;
  display: flex;
  align-items: center;
}
#steamBrowserUrlText .muted { color: #C7C7C7; }
#steamBrowserUrlText .host { color: #E3E3E3; }
#steamBrowserUrlBar .sb-url-div {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #444746;
}
#steamBrowserUrlBar.is-hover .sb-url-div,
#steamBrowserUrlBar.is-focus .sb-url-div { height: 2px; }

#steamBrowserBody {
  flex: 1;
  min-height: 0;
  min-width: 0;
  background: #202124;
  position: relative;
  overflow: hidden;
}
#steamBrowserBody iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #202124;
  display: block;
}

@media (max-width: 1199px) {
  #steamBrowserWindow {
    inset: 0 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    border: none !important;
    box-shadow: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
  }
  #steamBrowserTitleBar,
  #steamBrowserUrlBar,
  .sb-rh { display: none !important; }
}
