.site-extra-dock {
  --dock-offset: min(22vh, 196px);
  position: fixed;
  inset: max(104px, var(--dock-offset)) 16px auto auto;
  z-index: 85;
  max-width: calc(100vw - 32px);
}

.site-extra-dock [hidden] { display: none; }
.site-extra-actions { display: flex; justify-content: flex-end; gap: 6px; }
.site-extra-tab, .site-extra-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c39958;
  border-radius: 4px;
  background: #202626;
  color: #fff1cd;
  font: inherit;
  cursor: pointer;
}
.site-extra-tab {
  min-height: 42px;
  gap: 6px;
  padding-inline: 11px;
  box-shadow: 0 3px 12px #14141542;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.site-hot-launch { background: #702b24; }
.site-extra-tab:hover, .site-extra-close:hover { background: #3f4a48; }
.site-hot-launch:hover { background: #87382d; }
.site-extra-tab-icon { font-size: 21px; line-height: 1; }
.site-extra-tab[aria-expanded="true"] .site-extra-tab-icon { transform: scaleX(-1); }
.site-extra-close {
  width: 36px;
  height: 36px;
  font-size: 22px;
  line-height: 1;
}
.site-extra-dock :focus-visible, .site-hot-popup :focus-visible {
  outline: 2px solid #e9b65f;
  outline-offset: 2px;
}

.site-utility-panel {
  position: absolute;
  inset: calc(100% + 10px) 0 auto auto;
  isolation: isolate;
  box-sizing: border-box;
  width: min(250px, calc(100vw - 32px));
  max-height: calc(100vh - max(104px, var(--dock-offset)) - 120px);
  max-height: calc(100dvh - max(104px, var(--dock-offset)) - 120px);
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #c39958;
  border-radius: 5px;
  background: #262427;
  color: #fff2d8;
  box-shadow: 0 12px 30px #10141552, 0 0 0 3px #302824b0;
  animation: utility-in 190ms ease-out both;
}
@keyframes utility-in {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}
.site-utility-panel::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 5px double #c3995866;
  background: linear-gradient(170deg, #24191935, #1f1e2075 55%, #251c2042);
  content: "";
  pointer-events: none;
}
.site-utility-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.site-utility-content {
  position: relative;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 11px 15px 17px;
  overflow-wrap: anywhere;
}
.site-utility-header {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 36px;
  gap: 4px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #cfab685b;
}
.site-utility-ornament { color: #eab976; text-align: center; }
.site-utility-header h2 {
  margin: 0;
  color: #fff2d8;
  font-family: inherit;
  font-weight: 750;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}
.site-utility-description { margin: 8px 0 0; color: #f3e6d2; font-size: 12px; line-height: 1.55; text-align: center; }
.site-utility-qr { display: grid; justify-items: center; gap: 6px; margin: 11px 0 0; text-align: center; font-size: 12px; }
.site-utility-qr img {
  display: block;
  box-sizing: content-box;
  width: 112px;
  height: 112px;
  object-fit: contain;
  border-radius: 3px;
  background: #fff;
  padding: 6px;
}
.site-utility-links { display: grid; gap: 5px; margin-top: 11px; }
.site-utility-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid #d7b879;
  border-radius: 3px;
  background: #f2e3be;
  color: #442e20;
  font-size: 12px;
  font-weight: 750;
}
.site-utility-link:hover { background: #fff0c8; color: #251c18; }
.site-fanpage { margin-top: 8px; font-size: 12px; color: #fff0ce; }
.site-fanpage summary { min-height: 32px; padding: 7px 2px; cursor: pointer; }
.site-fanpage iframe { display: block; max-width: 100%; border: 0; border-radius: 3px; background: #fff; }

.site-hot-popup {
  box-sizing: border-box;
  width: min(742px, calc(100vw - 36px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: visible;
  border: 1px solid #c39958;
  border-radius: 6px;
  background: #f9f2e1;
  color: #272628;
  box-shadow: 0 20px 64px #05070788, 0 0 0 4px #d7ab6240;
}
.site-hot-popup::backdrop { background: #111617ba; }
html:has(.site-hot-popup[open]) { overflow: hidden; }
.site-hot-shell {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  border-radius: 5px;
  overflow: hidden;
}
.site-hot-header {
  flex: none;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid #c39958;
  background: #642822;
  color: #fff2d6;
}
.site-hot-header h2, .site-hot-header h3 {
  grid-column: 2;
  margin: 0;
  overflow-wrap: anywhere;
  color: inherit;
  text-align: center;
  font-family: inherit;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.45;
}
.site-hot-header .site-extra-close { background: #53231e; }
.site-hot-header .site-extra-close:hover { background: #853e33; }
.public-site .site-hot-body.prose {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px 22px;
  border: 0;
  color: #272628;
  background: #f9f2e1;
  overflow-wrap: anywhere;
}
.public-site .site-hot-body.prose > :first-child { margin-top: 0; }
.public-site .site-hot-body.prose > :last-child { margin-bottom: 0; }
.public-site .site-hot-body.prose :is(h1,h2,h3,h4,h5,h6) { color: inherit; }
.public-site .site-hot-body.prose img { height: auto; }
.public-site .site-hot-body.prose table { max-width: 100%; min-width: 360px; }
.public-site .site-hot-body.prose :focus-visible { outline-offset: -2px; }

@media (max-width: 767px), (max-height: 550px) {
  .site-extra-dock {
    inset: auto max(12px, env(safe-area-inset-right)) max(67px, calc(env(safe-area-inset-bottom) + 67px)) auto;
  }
  .site-utility-panel {
    inset: auto 0 calc(100% + 10px) auto;
    max-height: calc(100vh - 140px);
    max-height: calc(100dvh - 140px);
  }
  .site-hot-header h2, .site-hot-header h3 { font-size: 16px; }
  .public-site .site-hot-body.prose { padding: 13px 14px; }
}
@media (prefers-reduced-motion: reduce) { .site-utility-panel { animation: none; } }
