@import url("https://fonts.googleapis.com/css2?family=Bangers&family=Nunito:wght@500;700;800;900&display=swap");

html,
body {
  height: 100%;
}

.hib-comic-body {
  --ink: #09080f;
  --paper: #fff8d8;
  --blue: #5f78ff;
  --pink: #ff55b7;
  --yellow: #ffd84e;
  background: #05070f;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.hib-bg-video-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hib-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hib-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 6, 12, 0.78), rgba(6, 8, 15, 0.86)),
    radial-gradient(900px 420px at 30% 20%, rgba(55, 76, 186, 0.18), transparent 70%);
}

.hib-comic-body .vignette {
  display: none;
}

.hib-comic-body .chrome {
  background: #fff4cb;
  border-bottom: 4px solid var(--ink);
  backdrop-filter: none;
  box-shadow: 0 6px 0 rgba(9, 8, 15, 0.85);
}

.hib-comic-body .logo {
  color: #111;
  text-shadow: none;
}

.hib-comic-body .logo span {
  font-family: "Bangers", cursive;
  letter-spacing: 0.07em;
  font-size: 1.2rem;
}

.hib-comic-body .logo img {
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: #fff;
  box-shadow: 4px 4px 0 rgba(9, 8, 15, 0.82);
}

.hib-comic-body .menu a {
  font-family: "Bangers", cursive;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #151022;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 3px 3px 0 rgba(9, 8, 15, 0.9);
  padding: 0.38rem 0.82rem;
}

.hib-comic-body .menu a:hover,
.hib-comic-body .menu a.is-active {
  transform: translateY(-2px) rotate(-1deg);
  background: #ffef96;
  border-color: var(--ink);
  color: #050505;
  box-shadow: 5px 5px 0 rgba(9, 8, 15, 0.96);
}

.hib-comic-main {
  width: min(1340px, calc(100% - 1rem));
  margin: 0 auto;
  padding: 106px 0 0;
  display: grid;
  justify-items: center;
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  z-index: 2;
}

.hib-scroll-shell {
  width: min(1090px, 100%);
  border: 4px solid var(--ink);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 10px 10px 0 rgba(9, 8, 15, 0.95);
  overflow: hidden;
  height: 100%;
  max-height: calc(100vh - 190px);
  min-height: 420px;
  position: relative;
}

.hib-scroll-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.52rem 0.7rem;
  border-bottom: 4px solid var(--ink);
  background: linear-gradient(110deg, #ffd84e, #ff84ca);
}

.hib-scroll-head strong {
  font: 400 1.22rem/1 "Bangers", cursive;
  letter-spacing: 0.06em;
  color: #14122b;
}

.hib-scroll-head span {
  font: 800 0.78rem/1 "Nunito", sans-serif;
  text-transform: uppercase;
  color: #1b1940;
  letter-spacing: 0.08em;
}

.hib-scroll-table {
  height: calc(100% - 56px);
  min-height: 0;
  overflow-y: auto;
  padding: 0.72rem;
  display: grid;
  gap: 0.68rem;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.24) 1.2px, transparent 1.2px) 0 0 / 13px 13px,
    #fff7d4;
}

.hib-scroll-table::-webkit-scrollbar {
  width: 12px;
}

.hib-scroll-table::-webkit-scrollbar-track {
  background: #ffeebe;
  border-left: 3px solid var(--ink);
}

.hib-scroll-table::-webkit-scrollbar-thumb {
  background: #f6a7d7;
  border: 3px solid var(--ink);
}

.hib-row {
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: #fff;
  box-shadow: 4px 4px 0 rgba(9, 8, 15, 0.86);
  padding: 0.72rem;
  scroll-margin-top: 120px;
}

.hib-row-cover {
  display: grid;
  gap: 0.72rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(230px, 0.9fr);
  background: linear-gradient(130deg, #ffd06d, #ff80c7);
}

.hib-kicker {
  margin: 0;
  font: 400 0.92rem/1 "Bangers", cursive;
  letter-spacing: 0.08em;
  color: #2a2f98;
}

.hib-cover-copy h1 {
  margin: 0.3rem 0 0;
  font-family: "Bangers", cursive;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.9;
  letter-spacing: 0.06em;
  color: #fff;
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 3px 3px 0 rgba(9, 8, 15, 0.92);
}

.hib-cover-copy p {
  margin: 0.56rem 0 0;
  font: 800 0.94rem/1.55 "Nunito", sans-serif;
  color: #1c1a3e;
}

.hib-pills {
  margin-top: 0.64rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hib-pills span {
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  padding: 0.25rem 0.5rem;
  font: 800 0.73rem/1.2 "Nunito", sans-serif;
  color: #1a1637;
}

.hib-cover-art {
  margin: 0;
  border: 3px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 4px 4px 0 rgba(9, 8, 15, 0.9);
  background: #fff;
}

.hib-cover-art img {
  display: block;
  width: 100%;
  min-height: 390px;
  object-fit: cover;
  transform-origin: top center;
  will-change: transform, opacity;
}

.hib-title-line h2 {
  margin: 0.25rem 0 0;
  font-family: "Bangers", cursive;
  font-size: clamp(1.4rem, 3.1vw, 2.2rem);
  line-height: 0.95;
  letter-spacing: 0.06em;
  color: #fff;
  -webkit-text-stroke: 1.8px var(--ink);
  text-shadow: 3px 3px 0 rgba(9, 8, 15, 0.9);
}

.hib-grid-3 {
  margin-top: 0.62rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.hib-card,
.hib-feature {
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 0.56rem;
  background: #ffe7c0;
  box-shadow: 3px 3px 0 rgba(9, 8, 15, 0.86);
}

.hib-card:nth-child(2) {
  background: #ffd4ef;
}

.hib-card:nth-child(3) {
  background: #d9fff2;
}

.hib-card h3,
.hib-feature h3 {
  margin: 0.26rem 0 0;
  font-family: "Bangers", cursive;
  font-size: 1.06rem;
  letter-spacing: 0.04em;
  color: #17152b;
}

.hib-card p,
.hib-feature p {
  margin: 0.35rem 0 0;
  font: 800 0.88rem/1.5 "Nunito", sans-serif;
  color: #1f1a3f;
}

.hib-quote {
  margin: 0.64rem 0 0;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  padding: 0.48rem 0.68rem;
  font: 800 0.88rem/1.45 "Nunito", sans-serif;
  color: #1a1637;
}

.hib-video-grid {
  margin-top: 0.64rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.hib-video-card {
  border: 3px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 3px 3px 0 rgba(9, 8, 15, 0.86);
}

.hib-video-card h3 {
  margin: 0;
  padding: 0.42rem 0.55rem;
  border-bottom: 3px solid var(--ink);
  background: #ffe985;
  color: #141321;
  font-family: "Bangers", cursive;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
}

.hib-video-card video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: #050812;
}

.hib-row-final p {
  margin: 0.56rem 0 0;
  font: 800 0.95rem/1.55 "Nunito", sans-serif;
  color: #2a2143;
}

.hib-comic-body .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.62rem;
}

.hib-comic-body .btn-primary,
.hib-comic-body .btn-secondary {
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 rgba(9, 8, 15, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: "Bangers", cursive;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.55rem 0.8rem;
}

.hib-comic-body .btn-primary {
  background: var(--yellow);
  color: #161218;
}

.hib-comic-body .btn-secondary {
  background: #fff;
  color: #19132f;
}

.hib-comic-body .page-footer {
  border-top: 4px solid var(--ink);
  border-radius: 16px 16px 0 0;
  background: #fff4cb;
  color: #161222;
  box-shadow: 0 -5px 0 rgba(9, 8, 15, 0.8);
  position: relative;
  z-index: 2;
  margin-top: 0.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.72rem 0.46rem;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
}

.hib-comic-body .page-footer p {
  margin: 0;
}

.hib-comic-body .footer-social {
  margin-top: 0;
  gap: 0.28rem;
}

.hib-comic-body .footer-social-link {
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  color: #171226;
  width: 28px;
  height: 28px;
  border-width: 2px;
}

.hib-comic-body .footer-social-link svg {
  width: 13px;
  height: 13px;
}

@media (max-width: 980px) {
  .hib-row-cover {
    grid-template-columns: 1fr;
  }

  .hib-grid-3,
  .hib-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hib-comic-main {
    padding-top: 128px;
  }

  .hib-scroll-head strong {
    font-size: 1rem;
  }

  .hib-scroll-head span {
    display: none;
  }

  .hib-scroll-shell {
    max-height: calc(100vh - 222px);
  }

  .hib-scroll-table {
    height: calc(100% - 52px);
    overflow-y: auto;
  }

  .hib-comic-body .page-footer {
    gap: 0.36rem;
    padding: 0.34rem 0.56rem 0.4rem;
    font-size: 0.56rem;
  }

  .hib-grid-3,
  .hib-video-grid {
    grid-template-columns: 1fr;
  }

  .hib-cover-art img {
    min-height: 320px;
  }
}
