.guide-hero,
.codes-page .codes-hero {
  border-radius: 28px 8px 28px 8px;
}

.guide-hero h1,
.guide-hub-heading h2,
.guide-category > summary strong,
.guide-link-card strong,
.codes-page .codes-hero h1,
.codes-page .codes-game h2,
.codes-page .codes-policy h2 {
  font-family: var(--font-display, "Fredoka", sans-serif) !important;
  font-weight: 700;
}

.guide-hub-heading,
.codes-page .codes-toolbar {
  position: relative;
}

.guide-hub-heading::after,
.codes-page .codes-toolbar::after {
  content: "";
  display: block;
  width: 74px;
  height: 5px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #52e7ff, #9f8cff);
  transform: rotate(-1deg);
}

.guide-category {
  --library-accent: #52e7ff;
  overflow: hidden;
  border-left: 4px solid var(--library-accent) !important;
  border-radius: 6px 18px 18px 6px !important;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--library-accent) 7%, transparent), transparent 22%),
    #131b28 !important;
}

.guide-category:nth-of-type(2n) {
  --library-accent: #b8ff39;
}

.guide-category:nth-of-type(3n) {
  --library-accent: #9f8cff;
}

.guide-category > summary {
  transition: background 180ms ease, color 180ms ease;
}

.guide-category > summary:hover {
  background: rgba(255, 255, 255, 0.025);
}

.guide-category > summary small,
.guide-link-card small {
  color: var(--library-accent, #52e7ff) !important;
  font-family: var(--font-ui, "Nunito", sans-serif) !important;
  font-weight: 900;
}

.guide-link-card {
  border-radius: 16px 5px 16px 5px !important;
  transition: transform 180ms cubic-bezier(.2, .8, .2, 1), border-color 180ms ease, box-shadow 180ms ease !important;
}

.guide-link-card:hover,
.guide-link-card:focus-visible {
  transform: translateY(-3px) rotate(-0.2deg) !important;
  border-color: color-mix(in srgb, var(--library-accent, #52e7ff) 52%, transparent) !important;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.guide-filter-row button,
.codes-page button,
.codes-page .growth-primary,
.codes-page .growth-secondary {
  font-family: var(--font-ui, "Nunito", sans-serif) !important;
  font-weight: 900;
}

.codes-page .codes-summary-item {
  border-radius: 14px 4px 14px 4px;
}

.codes-page .codes-game {
  --code-accent: #52e7ff;
  position: relative;
  border-left: 4px solid var(--code-accent);
  border-radius: 7px 20px 20px 7px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--code-accent) 6%, transparent), transparent 18%),
    #151d2b;
}

.codes-page .codes-library .codes-game:nth-child(2n) {
  --code-accent: #b8ff39;
}

.codes-page .codes-library .codes-game:nth-child(3n) {
  --code-accent: #9f8cff;
}

.codes-page .codes-type-grid article {
  border-radius: 15px 5px 15px 5px;
  transition: transform 170ms cubic-bezier(.2, .8, .2, 1), border-color 170ms ease;
}

.codes-page .codes-type-grid article:hover {
  transform: translateY(-2px);
  border-color: rgba(82, 231, 255, 0.38);
}

.codes-page [data-code-copy] {
  box-shadow: 0 4px 0 #1d718e;
  transition: transform 130ms ease, box-shadow 130ms ease, background 160ms ease;
}

.codes-page [data-code-copy]:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #1d718e;
}

.codes-page .codes-toolbar {
  padding: 15px;
  border: 1px solid #34435a;
  border-radius: 16px 5px 16px 5px;
  background: #111925;
}

@media (max-width: 700px) {
  .guide-hero,
  .codes-page .codes-hero {
    border-radius: 20px 6px 20px 6px;
  }

  .guide-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border-radius: 14px 4px 14px 4px;
  }

  .guide-facts span {
    display: grid;
    min-width: 0;
    gap: 4px;
    padding: 8px 6px;
    border: 0;
    border-radius: 9px;
    background: rgba(184, 255, 57, 0.055);
    font-size: 0.62rem;
    line-height: 1.25;
  }

  .guide-facts strong {
    font-size: 0.72rem;
    overflow-wrap: anywhere;
  }

  .guide-filter-row {
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
  }

  .guide-filter-row button {
    min-height: 42px;
    scroll-snap-align: start;
  }

  .guide-category {
    border-radius: 5px 14px 14px 5px !important;
  }

  .guide-category > summary {
    gap: 12px;
  }

  .guide-category > summary > b {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 5px 8px;
    border: 1px solid color-mix(in srgb, var(--library-accent) 34%, transparent);
    border-radius: 8px 3px 8px 3px;
    background: color-mix(in srgb, var(--library-accent) 8%, transparent);
    white-space: nowrap;
  }

  .guide-category > summary > b::after {
    margin-left: 5px;
  }

  .guide-link-card {
    border-radius: 13px 4px 13px 4px !important;
  }

  .codes-page .codes-summary {
    display: flex;
    gap: 8px;
    margin-inline: -2px;
    padding: 2px 2px 6px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .codes-page .codes-summary::-webkit-scrollbar {
    display: none;
  }

  .codes-page .codes-summary-item {
    flex: 0 0 min(78vw, 230px);
    min-height: 82px;
    padding: 12px;
    border: 1px solid rgba(82, 231, 255, 0.18);
    background: rgba(11, 18, 28, 0.7);
    scroll-snap-align: start;
  }

  .codes-page .codes-summary-item:nth-child(2) {
    border-color: rgba(184, 255, 57, 0.2);
  }

  .codes-page .codes-toolbar {
    padding: 12px;
    border-radius: 13px 4px 13px 4px;
  }

  .codes-page .codes-game {
    border-left-width: 3px;
    border-radius: 5px 15px 15px 5px;
  }
}

@media (hover: none), (pointer: coarse) {
  .guide-link-card:hover,
  .guide-link-card:focus-visible,
  .codes-page .codes-type-grid article:hover {
    transform: none !important;
    box-shadow: none;
  }
}

@media (max-width: 430px) {
  .guide-facts {
    grid-template-columns: 1fr 1fr;
  }

  .guide-facts span:last-child {
    grid-column: 1 / -1;
  }

  .codes-page .codes-summary-item {
    flex-basis: 84vw;
  }
}
