:root {
  --hf-bg-dark: #10240f;
  --hf-bg-panel: #19491c;
  --hf-bg-panel-dark: #102d12;
  --hf-bg-blue: rgba(22, 53, 121, 0.96);
  --hf-bg-blue-light: #2f63c9;
  --hf-bg-paper: #d9c391;

  --hf-text-main: #f6f1d8;
  --hf-text-dark: #2f210e;
  --hf-text-soft: #d9d1a9;

  --hf-border-dark: #2b1807;
  --hf-border-mid: #68411b;
  --hf-border-gold: #b8842f;
  --hf-border-green: #264f18;

  --hf-shadow-main: rgba(0, 0, 0, 0.45);

  --hf-content-width: 1180px;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  color: var(--hf-text-main);
  background: #000;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.hf-background {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(180deg, #36661ff5 0%, #1b330f 100%);
}

.hf-banner-top,
.hf-banner-bottom {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  pointer-events: none;
  user-select: none;
}

.hf-banner-top {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.hf-banner-bottom {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
}

.hf-overlay {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 220px;
}

.hf-header {
  padding: 18px 20px 10px;
}

.hf-header-inner {
  width: min(calc(100% - 24px), var(--hf-content-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.hf-logo-area {
  width: 270px;
  min-width: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hf-logo {
  max-width: 260px;
  width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
}

.hf-top-menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.hf-main {
  flex: 1;
  padding: 10px 20px 40px;
}

.hf-layout {
  width: min(calc(100% - 24px), var(--hf-content-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 16px;
  align-items: start;
}

.hf-sidebar-left,
.hf-content-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hf-panel {
  border: 3px solid var(--hf-border-dark);
  outline: 2px solid var(--hf-border-mid);
  box-shadow: 0 8px 18px var(--hf-shadow-main);
}

.hf-panel-blue {
  background: linear-gradient(to bottom, #1a3269 0%, #11244c 100%);
}

.hf-panel-green,
.hf-panel-hero,
.hf-panel-parchment,
.hf-panel-shop {
  background: linear-gradient(
    to bottom,
    hsla(115, 50%, 26%, 0.95),
    hsla(122, 53%, 15%, 0.95)
  );
}

.hf-panel-title {
  display: inline-block;
  margin: 10px 0 0 10px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--hf-text-dark);
  background: linear-gradient(to bottom, #f1dba5 0%, #c9a85f 100%);
  border: 2px solid var(--hf-border-mid);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}

.hf-panel-content {
  padding: 14px;
}

.hf-panel-content-paper {
  margin: 12px 10px 10px;
  background: var(--hf-bg-paper);
  color: var(--hf-text-dark);
  border: 2px solid #7b5a27;
  line-height: 1.55;
  font-size: 0.95rem;
}

.hf-panel-content-paper p {
  margin: 0 0 10px;
}

.hf-panel-content-paper p:last-child {
  margin-bottom: 0;
}

.hf-footer-decor {
  display: none;
}

@media (max-width: 980px) {
  .hf-header-inner,
  .hf-layout {
    width: min(calc(100% - 12px), var(--hf-content-width));
  }

  .hf-layout {
    grid-template-columns: 1fr;
  }

  .hf-overlay {
    padding-bottom: 150px;
  }
}

@media (max-width: 680px) {
  .hf-header-inner {
    flex-direction: column;
    align-items: center;
  }

  .hf-top-menu {
    justify-content: center;
  }

  .hf-main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hf-overlay {
    padding-bottom: 110px;
  }
}
