/* Green Man Gaming's banners on HydeCo's own pages (tools/build_partner.py
   writes the placements; each one links this file). It carries its own
   colours because it sits on two stylesheets: site.css (front page, Splotch,
   pack pages, the showcase) and hc-ui.css (the asset library). */

.house {
  display: block; box-sizing: border-box; text-align: center;
  margin: 34px auto 0; max-width: 1000px; padding: 10px 0 12px;
  border-top: 1px solid rgba(255, 138, 40, .22); border-bottom: 1px solid rgba(255, 138, 40, .22);
  font: 400 12.5px/1.45 "Rubik", "Segoe UI", system-ui, sans-serif; color: #7f89a3;
}
.house[hidden], .house [hidden] { display: none !important }
.house-tag {
  display: block; margin: 0 0 8px; font: 700 10.5px/1 "Rubik", "Segoe UI", system-ui, sans-serif;
  letter-spacing: .14em; text-transform: uppercase; color: #ffb066;
}
.house-art { display: flex; justify-content: center }
.house-art a { display: block; width: 100%; line-height: 0 }
.house-art img { display: block; width: 100%; height: auto; margin: 0; image-rendering: auto; border: 0 }
.house-fine { margin: 8px auto 0; max-width: 728px }
.house-fine a { color: #b7bfd2 }

/* one picture on a wide screen, the other on a phone; the hidden one is
   never fetched (both load lazily) */
.house .banner-narrow { display: none !important }
@media (max-width: 760px) {
  .house .banner-wide { display: none !important }
  .house .banner-narrow { display: block !important }
}

/* the asset library's details panel: under the intro, or under an asset's details */
#side .house--box { margin: 16px 0; padding: 10px 0 12px; max-width: none }
#side .house--box .house-fine { font-size: 12px }

/* Splotch: a rail right of the editor, only where the editor keeps its room */
.house--rail { display: none }
@media (min-width: 1280px) {
  .house--rail {
    display: block; flex: none; width: 184px; margin: 0; padding: 10px 12px; overflow: auto;
    border: 0; border-left: 1px solid #332d24; background: #131110; font-size: 11.5px;
  }
}

/* the floating bar at the foot of the window */
.house--float {
  position: fixed; z-index: 40; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(764px, 100%); margin: 0; padding: 10px 14px 8px;
  background: linear-gradient(180deg, #0c1430, #08102a);
  border: 1px solid rgba(255, 138, 40, .45); border-bottom: 0; border-top: 3px solid #ff8a28;
  border-radius: 10px 10px 0 0; box-shadow: 0 -12px 32px rgba(0, 0, 0, .55);
}
.house--float .house-fine { margin-top: 6px; font-size: 11.5px }
.house--float .house-tag { display: inline; margin: 0 6px 0 0; font-size: 10px }
.house-x {
  position: absolute; top: -15px; right: 10px; width: 30px; height: 30px; padding: 0;
  border-radius: 50%; cursor: pointer; font: 700 18px/1 "Rubik", "Segoe UI", system-ui, sans-serif;
  color: #ffebb4; background: #08102a; border: 1px solid rgba(255, 138, 40, .6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
}
.house-x:hover { color: #050817; background: #ff8a28 }
.house-x:focus-visible { outline: 2px solid #ffebb4; outline-offset: 2px }

/* while the bar shows: room under the page, and the contact bubble lifted clear */
html.has-float body { padding-bottom: 150px }
html.has-float .chat-bubble { bottom: 160px }
html.has-float .chat-popout { bottom: 222px }
@media (max-width: 760px) {
  .house--float { padding: 8px 8px 6px; border-radius: 0 }
  .house--float .house-fine { font-size: 10.5px }
  html.has-float body { padding-bottom: 126px }
  html.has-float .chat-bubble { bottom: 134px }
  html.has-float .chat-popout { bottom: 196px }
}
