/* Isolated components on the page, without a framed scene. */
html,
body,
#root,
#fui-root {
  background: transparent !important;
}
/* Match the host canvas where an embedded browser paints transparent frames white. */
html,
body {
  background: #08080c !important;
  color-scheme: dark;
}
.demo-scene {
  display: none !important;
}
.pm-fx-grade,
.pm-fx-vignette {
  display: none !important;
}
.fui-overlay {
  background: transparent !important;
  backdrop-filter: none !important;
}
.fui-hud-compass,
.fui-hud-map,
.fui-player-info {
  display: none !important;
}
.fui-hud-walk:has(> .fui-hud-walk),
.fui-hud-dash:has(> .fui-hud-dash),
.fui-vehicle-position {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) scale(1.65) !important;
  transform-origin: center !important;
}
.fui-context {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
}
html[data-demo-view='speedometer'] .fui-hud-walk {
  display: none !important;
}
.fui-vehicle-position {
  transform: translate(-50%, -50%) scale(1.15) !important;
}
.fui-context-panel {
  flex: none;
  width: 360px !important;
}
html[data-demo-view='hologram'] #surface {
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) scale(0.65) perspective(900px) rotateY(-13deg) rotateZ(2deg) !important;
}
html[data-demo-view='world'] #surface {
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) scale(0.62) !important;
}
html[data-demo-view='pause'] .pm-left-rail {
  width: auto !important;
  max-width: 70% !important;
}
html[data-demo-view='pause'] .pm-character-summary {
  min-width: 160px;
}
html[data-demo-view='pause'] .pm-backdrop {
  background: transparent !important;
}

/* Stable demo dimensions: the game combines fixed rings with viewport-based offsets. */
html[data-demo-view='speedometer'] .fui-hud-dash:has(> .fui-hud-dash) {
  width: 360px !important;
  height: 300px !important;
  transform: translate(-50%, -50%) scale(1.2) !important;
}
html[data-demo-view='speedometer'] .fui-hud-speedo {
  width: 140px;
  height: 140px;
}
html[data-demo-view='speedometer'] .fui-hud-speedo-core strong {
  font-size: 36px;
}
html[data-demo-view='speedometer'] .fui-hud-speedo-ins {
  font-size: 12px;
  gap: 12px;
}
html[data-demo-view='speedometer'] .fui-hud-orb:first-child em {
  left: 50%;
  right: auto;
  top: -12px;
  transform: translate(-50%, -100%);
  text-align: center;
}
html[data-demo-view='chat'] .fui-chat {
  inset: 0 !important;
  width: 100% !important;
}
html[data-demo-view='chat'] .is-chatHistory {
  left: 50% !important;
  top: 45px !important;
  width: 520px !important;
  max-height: 125px !important;
  transform: translateX(-50%) !important;
}
html[data-demo-view='chat'] .is-chatBox {
  left: 50% !important;
  top: 190px !important;
  width: 520px !important;
  transform: translateX(-50%) !important;
}
html[data-demo-view='chat'] .fui-chat-body {
  font-size: 15px;
  line-height: 1.5;
}
html[data-demo-view='chat'] .fui-chat-tag {
  font-size: 11px;
}
html[data-demo-view='chat'] .fui-chat-input input {
  font-size: 15px;
}
html[data-demo-view='pause'] .pm-brand-name {
  font-size: 15px;
}
html[data-demo-view='pause'] .pm-meta-line em {
  font-size: 10px;
}
html[data-demo-view='pause'] .pm-meta-line strong {
  font-size: 12px;
}
html[data-demo-view='pause'] .pm-dock-btn span {
  font-size: 23px;
}
html[data-demo-view='pause'] .pm-news {
  width: 285px !important;
  top: 125px;
  right: 35px;
}
html[data-demo-view='pause'] .pm-news h2 {
  font-size: 25px;
}
html[data-demo-view='pause'] .pm-news h3 {
  font-size: 18px;
}
html[data-demo-view='pause'] .pm-news-content > p {
  font-size: 13px;
  line-height: 1.65;
}
html[data-demo-view='pause'] .pm-news-meta > span,
html[data-demo-view='pause'] .pm-news-meta > time {
  font-size: 10px;
}
html[data-demo-view='pause'] .pm-character-summary > strong {
  font-size: 20px;
}
html[data-demo-view='pause'] .pm-character-summary p {
  font-size: 12px;
}
html[data-demo-view='pause'] .pm-account-summary strong {
  font-size: 20px;
}
html[data-demo-view='speedometer'] .fui-hud-orb:nth-child(1) {
  left: calc(50% + -22.87px) !important;
  top: calc(50% + -107.596px) !important;
}
html[data-demo-view='speedometer'] .fui-hud-orb:nth-child(2) {
  left: calc(50% + -73.604px) !important;
  top: calc(50% + -81.746px) !important;
}
html[data-demo-view='speedometer'] .fui-hud-orb:nth-child(3) {
  left: calc(50% + -104.616px) !important;
  top: calc(50% + -33.992px) !important;
}
html[data-demo-view='speedometer'] .fui-hud-orb:nth-child(4) {
  left: calc(50% + -107.596px) !important;
  top: calc(50% + 22.87px) !important;
}
html[data-demo-view='speedometer'] .fui-hud-orb:nth-child(5) {
  left: calc(50% + -81.746px) !important;
  top: calc(50% + 73.604px) !important;
}
html[data-demo-view='speedometer'] .fui-hud-orb:nth-child(6) {
  left: calc(50% + 73.604px) !important;
  top: calc(50% + -81.746px) !important;
}
html[data-demo-view='speedometer'] .fui-hud-orb:nth-child(7) {
  left: calc(50% + 106.733px) !important;
  top: calc(50% + -26.611px) !important;
}
html[data-demo-view='speedometer'] .fui-hud-orb:nth-child(8) {
  left: calc(50% + 103.366px) !important;
  top: calc(50% + 37.622px) !important;
}
html[data-demo-view='speedometer'] .fui-classic-instruments {
  height: 100% !important;
  width: 100% !important;
}
