::selection {
  background: rgb(217 237 103 / 35%);
  color: #fffdf6;
}

@media (max-width: 480px) {
  body > header {
    padding-block: 6px;
  }
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
  width: min(100% - 48px, var(--footer-width, 1180px));
  margin-inline: auto;
  padding-block: 4px 12px;
  color: rgb(255 253 246 / 80%);
  font-size: 12px;
  line-height: 1.5;
}

footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 6px;
  color: #f0eee2;
  font-weight: inherit;
  text-decoration: none;
  transition: color 150ms ease;
}

footer a:hover,
footer a:focus-visible {
  color: #d9ed67;
}

.footer-links,
.footer-own {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-contact,
.footer-coloring,
.footer-hub {
  white-space: nowrap;
}

.footer-sep {
  opacity: 0.35;
  user-select: none;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.footer-own > .footer-social {
  margin-inline: -10px;
}

.footer-name,
.footer-own > .footer-publisher {
  padding-inline: 3px;
}

.footer-social .footer-sep {
  margin-inline: -0.15em;
}

.footer-social-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-social-link .footer-social-solid {
  fill: currentColor;
  stroke: none;
}

.footer-photo {
  position: relative;
}

.footer-photo-name {
  position: absolute;
  right: 6px;
  bottom: calc(100% - 12px);
  color: #d9ed67;
  text-shadow: 0 1px 2px rgb(0 0 0 / 80%);
  white-space: nowrap;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 150ms ease, visibility 150ms ease;
}

.footer-photo:focus-visible .footer-photo-name {
  visibility: visible;
  opacity: 1;
}

@media (hover: hover) {
  .footer-photo:hover .footer-photo-name {
    visibility: visible;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-photo-name {
    transition: none;
  }
}

.section-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: #d9ed67;
  text-decoration: none;
  background: rgb(6 20 16 / 78%);
  border: 1px solid rgb(217 237 103 / 60%);
  border-radius: 50%;
  transition: background 150ms ease, color 150ms ease;
}

.section-nav-link:hover,
.section-nav-link:focus-visible {
  color: #10382e;
  background: #d9ed67;
}

.section-nav-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

@media (prefers-reduced-motion: reduce) {
  .section-nav-link {
    transition: none;
  }
}

.footer-publisher a {
  padding-inline: 2px;
}

@media (min-width: 761px) {
  footer {
    gap: 0 18px;
    font-size: 11.5px;
  }

  footer a {
    padding-inline: 4px;
  }

  .footer-links,
  .footer-own {
    gap: 6px;
  }
}

@media (min-width: 761px) and (max-width: 1099px) {
  footer {
    gap: 0 10px;
  }

  footer a {
    padding-inline: 3px;
  }
}

@media (max-width: 760px) {
  footer {
    width: calc(100% - 32px);
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 0;
  }

  .footer-publisher {
    display: block;
  }

  .footer-links,
  .footer-own {
    justify-content: center;
    gap: 0 6px;
  }

  .footer-own > .footer-social {
    margin-inline: 0;
  }

  .footer-sep {
    display: none;
  }

  .footer-own .footer-publisher {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  footer a {
    transition: none;
  }
}

.privacy-dialog {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 20px;
  background: transparent;
  border: none;
  overflow: hidden;
}

.privacy-dialog[open] {
  display: grid;
  place-items: center;
}

.privacy-dialog::backdrop {
  background: rgb(6 18 15 / 92%);
  animation: privacy-fade 200ms ease;
}

.privacy-dialog-card {
  display: flex;
  flex-direction: column;
  width: min(100%, 640px);
  max-height: min(88vh, 720px);
  max-height: min(88svh, 720px);
  background: rgb(12 36 29);
  border: 1px solid rgb(255 253 246 / 20%);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgb(0 0 0 / 60%), 0 0 0 1px rgb(217 237 103 / 10%);
  overflow: hidden;
  animation: privacy-pop 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes privacy-pop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
}

@keyframes privacy-fade {
  from {
    opacity: 0;
  }
}

.privacy-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgb(255 253 246 / 12%);
}

.privacy-dialog-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.privacy-dialog-sign {
  width: 22px;
  height: 22px;
  color: var(--lime, #d9ed67);
  fill: none;
  stroke: var(--lime, #d9ed67);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  flex-shrink: 0;
}

.privacy-dialog-header h2 {
  margin: 0;
  font-family: var(--serif, Georgia, "Times New Roman", var(--ja, serif));
  font-size: 21px;
  font-weight: 500;
  color: var(--ink, #fffdf6);
}

.privacy-dialog-close {
  position: relative;
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -4px;
  padding: 0;
  color: rgb(255 253 246 / 70%);
  background: none;
  border: 0;
  border-radius: 50%;
  outline-offset: 0;
  cursor: pointer;
  transition: color 150ms ease;
}

.privacy-dialog-close::before {
  position: absolute;
  inset: 4px;
  content: "";
  background: rgb(255 253 246 / 8%);
  border: 1px solid rgb(255 253 246 / 14%);
  border-radius: 50%;
  transition: background 150ms ease, border-color 150ms ease;
}

.privacy-dialog-close svg {
  position: relative;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.privacy-dialog-close:is(:hover, :focus-visible) {
  color: var(--ink, #fffdf6);
}

.privacy-dialog-close:is(:hover, :focus-visible)::before {
  background: rgb(255 253 246 / 16%);
  border-color: var(--lime, #d9ed67);
}

.privacy-dialog-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft, #f0eee2);
  overscroll-behavior: contain;
}

.privacy-dialog-body:focus-visible {
  outline: none;
}

.privacy-dialog-body .effective {
  margin: 0 0 20px;
  font-size: 13px;
  color: rgb(255 253 246 / 55%);
}

.privacy-dialog-body h2 {
  margin: 24px 0 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--lime, #d9ed67);
  text-transform: uppercase;
}

.privacy-dialog-body h2:first-of-type {
  margin-top: 4px;
}

.privacy-dialog-body p {
  margin: 0 0 12px;
  color: rgb(255 253 246 / 88%);
}

.privacy-dialog-body ul {
  margin: 0 0 14px;
  padding-left: 20px;
  color: rgb(255 253 246 / 88%);
}

.privacy-dialog-body li {
  margin-bottom: 6px;
}

.privacy-dialog-body strong {
  color: var(--ink, #fffdf6);
  font-weight: 700;
}

.privacy-dialog-body code {
  padding: 0.05em 0.35em;
  color: var(--ink, #fffdf6);
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 0.9em;
  background: rgb(255 253 246 / 10%);
  border-radius: 6px;
}

.privacy-dialog-body a {
  color: var(--lime, #d9ed67);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}

.privacy-dialog-body a:hover {
  color: #fff;
}

.privacy-loading,
.privacy-error {
  padding: 40px 0;
  text-align: center;
  color: rgb(255 253 246 / 70%);
}

.privacy-error a {
  color: var(--lime, #d9ed67);
  text-decoration: underline;
}

.privacy-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-top: 1px solid rgb(255 253 246 / 12%);
  background: rgb(9 26 21 / 60%);
}

.privacy-dialog-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.privacy-page-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  margin-block: -4px;
  font-size: 12px;
  color: var(--lime, #d9ed67);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-page-link:hover {
  color: #fff;
}

.privacy-dialog-btn {
  min-width: 88px;
  min-height: 36px;
  padding: 0 16px;
  color: var(--lime, #d9ed67);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background-color: rgb(8 24 20 / 55%);
  background-image: linear-gradient(rgb(217 237 103 / 12%), rgb(217 237 103 / 12%));
  border: 1px solid rgb(217 237 103 / 70%);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
  flex-shrink: 0;
}

.privacy-dialog-btn:is(:hover, :focus-visible) {
  color: var(--green-dark, #10382e);
  background-color: var(--lime, #d9ed67);
  border-color: var(--lime, #d9ed67);
}

.privacy-dialog-btn {
  position: relative;
}

.privacy-dialog-btn::after {
  position: absolute;
  inset: -5px -1px;
  content: "";
}

.privacy-dialog h2[tabindex="-1"]:focus {
  outline: none;
}

:is(.privacy-dialog-body, .form-field textarea, .series-strip .book-grid) {
  scrollbar-width: thin;
  scrollbar-color: rgb(255 253 246 / 28%) transparent;
}

:is(.privacy-dialog-body, .form-field textarea, .series-strip .book-grid)::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

:is(.privacy-dialog-body, .form-field textarea, .series-strip .book-grid)::-webkit-scrollbar-track {
  background: transparent;
}

:is(.privacy-dialog-body, .form-field textarea, .series-strip .book-grid)::-webkit-scrollbar-thumb {
  background: rgb(255 253 246 / 28%);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

@media (max-width: 760px) {
  .privacy-dialog {
    padding: 8px;
  }

  .privacy-dialog-card {
    width: 100%;
    max-height: calc(100vh - 16px);
    max-height: calc(100svh - 16px);
    border-radius: 16px;
  }

  .privacy-dialog-header {
    padding: 14px 16px 12px;
  }

  .privacy-dialog-header h2 {
    font-size: 18px;
  }

  .privacy-dialog-body {
    padding: 14px 16px;
    font-size: 14px;
  }

  .privacy-dialog-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 16px;
  }

  .privacy-dialog-meta {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .privacy-page-link {
    justify-content: center;
    font-size: 12px;
  }

  .privacy-dialog-btn {
    width: 100%;
  }
}

.privacy-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .privacy-dialog::backdrop,
  .privacy-dialog-card {
    animation: none;
  }

  .privacy-dialog-close,
  .privacy-dialog-close::before,
  .privacy-dialog-btn {
    transition: none;
  }
}

html.low-power .fireflies {
  display: none;
}

html.low-power .age-orb-light,
html.low-power .age-orb-light::before,
html.low-power .age-orb-light .flame,
html.low-power .signup-orb-light,
html.low-power .signup-orb-light::before,
html.low-power .series-orb-light,
html.low-power .series-orb-light::before,
html.low-power .series-orb svg .flame,
html.low-power .contact-orb-light,
html.low-power .contact-orb-light::before,
html.low-power .error-orb-light,
html.low-power .error-orb-light::before {
  animation: none !important;
}

html.low-power *,
html.low-power *::before,
html.low-power *::after {
  animation-iteration-count: 1 !important;
}

html.no-entrance .reveal,
html.no-entrance .age-orb.reveal {
  animation: none;
}

html.is-restored *,
html.is-restored *::before,
html.is-restored *::after {
  transition: none !important;
}
