:root {
  --read-progress: 10%;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.topbar {
  position: fixed;
  top: 0;
  top: env(safe-area-inset-top);
  left: 0;
  width: 100%;
  z-index: 50;
  height: 5px;
  background: linear-gradient(
    to right,
    #37D0DC 0%,
    #37D0DC var(--read-progress, 10%),
    transparent var(--read-progress, 10%),
    transparent 100%
  );
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
}

.topbar-spacer {
  flex: 1;
}

.manga-wrap {
  width: min(1080px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 16px 0 0;
}

.manga-top {
  margin: 0 0 14px;
}

.capas-top {
  display: flex;
  justify-content: center;
}

.manga-brand-link {
  display: block;
  width: fit-content;
  margin: 50px auto 16px;
}

.capas-brand-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 24px);
  margin: 0 auto 34px;
}

.capas-brand-logo {
  width: min(360px, 82%);
  height: auto;
  margin: 0 auto 34px;
}

.capas-brand-lockup .capas-brand-logo {
  margin: 0;
}

.capas-brand-gdc-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 24px);
  white-space: nowrap;
}

.capas-brand-logo-edens {
  width: min(360px, 52vw);
  max-width: 100%;
  height: auto;
}

.capas-brand-separator {
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 500;
  line-height: 1;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
}

.capas-brand-logo-gdc {
  width: auto;
  max-height: 120px;
  max-width: min(300px, 35vw);
  height: auto;
}

.manga-byline {
  margin: 0 0 20px;
  font-size: 22px;
  line-height: 1.45;
  text-align: center;
  color: #888888;
}

.manga-actions {
  margin: 10px 0 40px;
  text-align: center;
}

.manga-actions-bottom {
  margin: 30px 0 0;
  text-align: center;
}

.manga-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.manga-back-link span {
  text-decoration-line: underline;
  text-decoration: underline;
  text-decoration-color: rgba(55, 208, 220, 0.5);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: text-decoration-color .25s ease;
}

.manga-back-link:hover span,
.manga-back-link:focus-visible span {
  text-decoration-color: rgba(55, 208, 220, 1);
}

.container {
  width: 100%;
  max-width: calc(1280px + (20px * 2));
  padding-left: 20px;
  padding-right: 20px;
  margin: 0 auto;
}

.manga-pages {
  margin: 0;
  padding: 0;
}

.manga-page-link {
  display: block;
}

.manga-page-image {
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  outline: 0;
  transition: opacity .2s ease;
}

.manga-page-link:hover .manga-page-image,
.manga-page-link:focus-visible .manga-page-image {
  opacity: .93;
}

.footer-strip {
  padding: 45px 0;
  background: #000;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 27.5px;
  align-items: start;
  justify-items: center;
}

.footer-brand {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand .brand-logo {
  width: 225px;
  height: auto;
}

.footer-text {
  text-align: center;
  padding-left: 30px;
  padding-right: 30px;
}

.footer-text p {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #cfcfe0;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 300;
}

.footer-text a {
  text-decoration: underline;
  text-decoration-line: underline;
  text-decoration-color: rgba(55, 208, 220, 0.5);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  opacity: .95;
  transition: text-decoration-color .25s ease;
}

.footer-text a:hover,
.footer-text a:focus-visible {
  text-decoration-color: rgba(55, 208, 220, 1);
}

@media (max-width: 980px) {
  .manga-wrap {
    width: min(1080px, calc(100vw - 12px));
    padding-top: 10px;
  }

  .capas-brand-lockup {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 12px;
    row-gap: 10px;
    max-width: min(92vw, 560px);
  }

  .capas-brand-gdc-group {
    column-gap: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .capas-brand-logo-edens {
    width: min(360px, 72vw);
  }

  .capas-brand-separator {
    font-size: clamp(32px, 10vw, 52px);
  }

  .capas-brand-logo-gdc {
    max-height: 88px;
    max-width: min(280px, 64vw);
  }

  .manga-byline {
    font-size: 18px;
  }

  .langs-capas {
    font-size: 13px;
    line-height: 1.45;
  }
}

@media (max-width: 560px) {
  .capas-brand-lockup {
    flex-direction: column;
    max-width: 86vw;
  }

  .capas-brand-gdc-group {
    gap: 10px;
  }

  .capas-brand-logo-edens {
    width: min(340px, 82vw);
  }

  .capas-brand-logo-gdc {
    max-height: none;
    max-width: min(260px, 74vw);
  }
}
