/* Keep the game's masthead positioning and any live status row. */
[data-xgh-host] {
  flex-wrap: wrap !important;
  row-gap: 4px !important;
}
[data-xgh-host] .xgh-legacy-brand {
  display: none !important;
}
.xgh-native-control {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  min-inline-size: 0 !important;
  min-block-size: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
.xgh-floating {
  position: fixed;
  inset: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) auto max(12px, env(safe-area-inset-left));
  z-index: 11;
  pointer-events: none;
}
#xerosh-game-header {
  --xgh-ink: #eef6f4;
  --xgh-secondary: #b3c8c5;
  --xgh-bg: #162329e8;
  --xgh-outline: #62757b;
  --xgh-hover: #304149;
  --xgh-control: 44px;
  --xgh-circle: 40px;
  --xgh-gap: 4px;
  --xgh-logo: 38px;
  position: relative;
  flex: 0 0 100%;
  order: -1;
  grid-column: 1 / -1;
  inline-size: 100%;
  min-inline-size: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0;
  color: var(--xgh-ink);
  font: 14px/1.15 Arial, "PingFang SC", sans-serif;
  text-align: left;
  pointer-events: none;
  isolation: isolate;
}
#xerosh-game-header[data-xgh-theme="light"] {
  --xgh-ink: #253638;
  --xgh-secondary: #546661;
  --xgh-bg: #f4f1eced;
  --xgh-outline: #c1c8bd;
  --xgh-hover: #e0eae5;
}
#xerosh-game-header :where(.xgh-brand, .xgh-button) {
  pointer-events: auto;
  touch-action: manipulation;
}
#xerosh-game-header .xgh-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: max-content;
  min-width: 0;
  color: var(--xgh-ink);
  text-decoration: none;
}
#xerosh-game-header .xgh-brand img {
  display: block;
  flex: none;
  width: var(--xgh-logo);
  height: var(--xgh-logo);
}
#xerosh-game-header .xgh-brand span {
  min-width: 0;
}
#xerosh-game-header .xgh-brand :is(strong,small) {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 4px var(--xgh-bg);
}
#xerosh-game-header .xgh-brand strong {
  color: inherit;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: .085em;
}
#xerosh-game-header .xgh-brand small {
  margin-top: 4px;
  color: var(--xgh-secondary);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
}
#xerosh-game-header :is(.xgh-tools,.xgh-extras) {
  display: flex;
  align-items: center;
  gap: var(--xgh-gap);
}
#xerosh-game-header .xgh-tools { flex: none; }
#xerosh-game-header .xgh-button {
  appearance: none;
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  inline-size: var(--xgh-control);
  block-size: var(--xgh-control);
  min-inline-size: 0;
  min-block-size: 0;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: var(--xgh-ink);
  box-shadow: none;
  font: 600 12px/1 Arial, "PingFang SC", sans-serif;
  cursor: pointer;
  transform: none;
  overflow: visible;
}
#xerosh-game-header .xgh-button::before {
  content: '';
  position: absolute;
  inline-size: var(--xgh-circle);
  block-size: var(--xgh-circle);
  box-sizing: border-box;
  border: 1px solid var(--xgh-outline);
  background: var(--xgh-bg);
  border-radius: 50%;
  pointer-events: none;
}
#xerosh-game-header .xgh-button[aria-pressed="true"]::before {
  background: var(--xgh-hover);
}
@media (hover:hover) {
  #xerosh-game-header .xgh-button:hover::before { background: var(--xgh-hover); }
}
#xerosh-game-header :is(.xgh-button,.xgh-brand):focus-visible {
  outline: 2px solid #71a32e;
  outline-offset: 2px;
}
#xerosh-game-header .xgh-button:disabled { opacity: .52; cursor: default; }
#xerosh-game-header .xgh-button > :is(svg,span) { position: relative; margin: 0; pointer-events: none; }
#xerosh-game-header .xgh-button svg { inline-size: 19px; block-size: 19px; }
#xerosh-game-header .xgh-button svg.xgh-glyph {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#xerosh-game-header [data-xgh-action="more"] { display: none; }
#xerosh-game-header:not([data-xgh-fullscreen]) [data-xgh-action="fullscreen"] { display: none; }
#xerosh-game-header [hidden] { display: none !important; }
.xgh-dialog {
  max-width: min(330px, calc(100vw - 24px));
  padding: 23px;
  margin: auto;
  border: 1px solid #697c70;
  border-radius: 16px;
  background: #182622;
  color: #f3f6ee;
  text-align: center;
  font: 15px/1.4 Arial, "PingFang SC", sans-serif;
}
.xgh-dialog::backdrop { background: #0c1519e8; }
.xgh-dialog h2 { margin-block: 0 15px; color: inherit; font-size: 18px; }
.xgh-dialog button {
  padding: 10px 20px;
  border: 0;
  border-radius: 25px;
  background: #c5f475;
  color: #202e1e;
  font: inherit;
}
body.xgh-page #game-seo-info:not([open]) { display: none !important; }
body.xgh-page #game-seo-info[open] {
  position: fixed;
  inset: 0;
  z-index: 11000;
  width: auto;
  background: #1020265c;
}
body.xgh-page #game-seo-info > summary { display: none; }
body.xgh-page #game-seo-info .game-info-content {
  top: var(--xgh-info-top, 60px);
  max-height: calc(100dvh - var(--xgh-info-top, 60px) - 12px);
}
body.xgh-page #game-seo-info .xgh-info-close {
  float: right;
  margin: 0 0 6px 10px;
  padding: 8px 10px;
  border: 1px solid #6d8063;
  border-radius: 8px;
  background: #29392e;
  color: #f3f6ee;
  font: 13px/1.2 Arial, "PingFang SC", sans-serif;
}
@media (max-width: 700px) {
  #xerosh-game-header {
    --xgh-circle: 34px;
    --xgh-control: 40px;
    --xgh-logo: 32px;
    --xgh-gap: 0px;
  }
  #xerosh-game-header .xgh-brand { gap: 6px; }
  #xerosh-game-header .xgh-brand strong { font-size: 12px; letter-spacing: .045em; }
  #xerosh-game-header .xgh-brand small { margin-top: 3px; }
  #xerosh-game-header .xgh-button svg { inline-size: 17px; block-size: 17px; }
}
@media (max-width: 520px) {
  #xerosh-game-header .xgh-extras:not([data-open]) { display: none; }
  #xerosh-game-header .xgh-extras[data-open] {
    position: absolute;
    inset: calc(100% + 4px) 0 auto auto;
    max-width: 100%;
    padding: 3px;
    border: 1px solid var(--xgh-outline);
    border-radius: 12px;
    background: var(--xgh-bg);
    pointer-events: auto;
  }
  #xerosh-game-header:has(.xgh-extras > button:not([hidden])) [data-xgh-action="more"] { display: grid; }
}
@media (max-height: 450px) and (orientation: landscape) {
  #xerosh-game-header { --xgh-control: 37px; --xgh-circle: 32px; --xgh-logo: 28px; }
}

#xerosh-game-header .xgh-extra[data-xgh-text] {
  inline-size: auto;
  min-inline-size: var(--xgh-control);
  white-space: nowrap;
  padding-inline: 8px;
}
#xerosh-game-header .xgh-extra[data-xgh-text]::before { inline-size: 100%; border-radius: 25px; }
.wildbond-header-content { display: contents; }
[data-xgh-game="number-stride"] [data-xgh-host] { position: relative; z-index: 51; }
[data-xgh-game="starport-pinball"] [data-xgh-host] { inset-inline: max(6px, env(safe-area-inset-left)) max(6px, env(safe-area-inset-right)); }
.immersive-expert [data-xgh-host].mast { display: flex; padding-inline: 7px; }
