body.tools-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(var(--duck-white-rgb), 0.75) 0%, rgba(var(--duck-blue-rgb), 0.18) 18%, rgba(var(--duck-blue-rgb), 0) 42%),
    var(--page-gradient-1);
  color: var(--duck-charcoal);
}

.tools-main {
  width: 100%;
  margin: 0 auto;
  padding: 0 0 4rem;
}

.tools-hero {
  position: relative;
  margin: 2rem 2rem 0;
  padding: 0;
  text-align: center;
}

.tools-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--title-font);
  font-size: 2rem !important;
  color: var(--duck-charcoal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 1.5rem;
  margin-bottom: 0;
  padding: 0;
  line-height: 1;
}

.tools-title i {
  position: relative;
  top: -0.08em;
  font-size: 1.5rem;
  color: var(--duck-yellow);
  filter: drop-shadow(0 1px 0 rgba(35, 35, 55, 0.25));
}

.tools-subtitle {
  margin: 0.6rem 0 0;
  font-family: var(--font-main);
  color: var(--duck-charcoal);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tools-intro {
  margin: 0.45rem 0 0;
  font-family: var(--font-main);
  color: var(--duck-charcoal-light);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.tools-grid-section {
  padding: 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem 2rem 1rem;
}

.tools-about {
  padding: 1rem 2rem 2rem;
}

.tools-about-inner {
  width: min(110rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.5rem, 2vw, 2.5rem)
           clamp(1.5rem, 3vw, 3rem);
  box-sizing: border-box;

  background: var(--duck-white);
  border: 2px solid rgba(44, 62, 80, 0.13);
  border-radius: 1.8rem;
  box-shadow: 0 0.2rem 1rem rgba(44, 62, 80, 0.08);
  text-align: left;
}

.tools-about h2 {
  margin: 0 0 1rem;
  font-family: var(--title-font);
  font-size: 22px;
  line-height: 1.15;
  color: var(--duck-charcoal);
  text-align: center;
}

.tools-about p {
  margin: 0 0 1rem;
  font-family: var(--font-main);
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--duck-charcoal);
}

.tools-about p:last-child {
  margin-bottom: 0;
}

.tools-about a {
  color: var(--duck-pink-deep);
  font-weight: 700;
}

.tool-card {
  background-color: var(--duck-white);
  padding: 1rem;
  border: 1.5px solid rgba(44, 62, 80, 0.13);
  border-radius: 1.8rem;
  box-shadow:
    0 0.2rem 1rem rgba(44, 62, 80, 0.08),
    0 0.15rem 0.4rem rgba(255, 209, 102, 0.05);
  text-align: center;
  transition: box-shadow 0.22s, transform 0.17s;
}

.tool-card:hover,
.tool-card:focus-within {
  transform: translateY(-0.2rem);
  box-shadow:
    0 0.8rem 3.2rem rgba(44, 62, 80, 0.18),
    0 0.5rem 1.1rem rgba(255, 166, 196, 0.12);
}

.tool-type {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.8rem, 1.8vw, 1.4rem);
  background-color: var(--duck-white);
  font-family: var(--font-main);
  color: var(--duck-charcoal);
  padding: 0.4rem 0.8rem;
  border-radius: 1.7rem;
  width: 22rem;
  max-width: 100%;
  margin: 0 auto 0.5rem;
  letter-spacing: 0.1rem;
  font-weight: 700;
  border: 2px solid var(--duck-charcoal-light);
  box-shadow: 0 0.12rem 0.2rem rgba(var(--duck-charcoal-rgb), 0.16);
  height: 3.2rem;
  text-align: center;
}

.tool-image-link {
  display: block;
  text-decoration: none;
}

.tool-image {
  display: block;
  width: 50%;
  height: auto;
  border-radius: 2.7rem;
  margin: 0 auto 1rem;
  transition: transform 0.2s cubic-bezier(0.33, 1.02, 0.46, 0.99), box-shadow 0.2s;
  border: 0.15rem solid rgba(var(--duck-white-rgb), 0.55);
  outline: 0.15rem solid rgba(var(--duck-charcoal-rgb), 0.07);
  outline-offset: -0.6rem;
  box-shadow:
    0 0.8rem 1.8rem rgba(var(--duck-charcoal-rgb), 0.18),
    0 0.25rem 0.6rem rgba(var(--duck-charcoal-rgb), 0.12);
}

.tool-card:hover .tool-image,
.tool-card:focus-within .tool-image {
  transform: scale(1.02);
  box-shadow:
    0 0.8rem 3.2rem rgba(44, 62, 80, 0.18),
    0 0.5rem 1.1rem rgba(255, 166, 196, 0.12);
}

.tool-title {
  font-family: var(--font-main);
  color: var(--duck-charcoal);
  font-weight: 800;
  letter-spacing: 0.1rem;
  font-size: 2rem;
  margin: 0 0 1rem;
  line-height: 1;
}

.tool-title a {
  color: inherit;
  text-decoration: none;
}

.tool-title a:hover,
.tool-title a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.tool-description {
  font-family: var(--font-main);
  color: var(--duck-charcoal);
  font-weight: 500;
  font-size: 1.3rem;
  margin: 1rem 0;
  line-height: 1.4;
}

.tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 50%;
  min-width: 25rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;

  border: none;
  border-radius: 999px;

  background: var(--go-btn-gradient);
  box-shadow: var(--go-btn-shadow-soft);

  color: var(--duck-white);
  font-family: var(--font-main);
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 0.15rem 0.25rem rgba(43, 45, 66, 0.22);

  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tool-button:hover,
.tool-button:focus-visible {
  background: var(--duck-pink-light);
  transform: translateY(-0.08rem);
}

.tool-button:focus-visible,
.tool-image-link:focus-visible {
  outline: 0.3rem solid rgba(var(--duck-charcoal-rgb), 0.18);
  outline-offset: 0.25rem;
}

@media (max-width: 1120px) {
  .tools-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .tools-main {
    padding-bottom: 3rem;
  }

  .tools-hero {
    margin: 1.2rem 1rem 0;
  }

  .tools-title {
    margin-top: 1rem;
  }

  .tools-subtitle {
    font-size: 1.4rem;
    margin-top: 0.45rem;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 1rem;
  }

  .tool-type {
    margin-bottom: 0.5rem;
  }

  .tool-image {
    margin-bottom: 0.5rem;
    width: 100%;
    outline-offset: -0.5rem;
  }

  .tool-title {
    font-size: 2rem;
  }

  .tool-description {
    font-size: 1.2rem;
    margin: 1.4rem 0;
    min-height: 3rem;
  }

  .tool-button {
    font-size: var(--go-font-tablet);
  }
}

@media (max-width: 550px) {
  .tools-about {
    padding: 1rem;
  }

  .tools-about-inner {
    padding: 2rem;
  }

  .tools-about h2 {
    font-size: 18px;
  }

  .tools-about p {
    font-size: 1.1rem;
  }

  .tools-subtitle {
    max-width: 38rem;
    margin: 0.35rem auto 0.5rem;
    font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .tool-type {
    margin-bottom: 0.4rem;
    height: auto;
    width: auto;
  }

  .tool-image {
    margin-top: 0.5rem;
    margin-bottom: 0.4rem;
    width: 70%;
    max-width: 24rem;
    outline-offset: -0.3rem;
  }

  .tool-title {
    font-size: 1.8rem;
    margin: 0.5rem 0;
  }

  .tool-card {
    padding: 2rem;
  }

  .tool-description {
    color: var(--duck-charcoal);
    font-size: 1rem;
    margin: 0.2rem 0;
    min-height: 3rem;
  }

  .tool-button {
    font-size: var(--go-font-mobile);
  }
}






/* ============================================================ */
/* HERO SECTION */
/* ============================================================ */
.hero-section {
  position: relative;
  overflow: hidden;
  /* width: 100%; */

  background: linear-gradient(
    115deg,
    var(--duck-pink) 0%,
    var(--duck-pink-lightest) 52%,
    var(--duck-yellow) 100%
  );

  backdrop-filter: blur(6px);

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 0rem 2rem 0.5rem 2rem;

  border-bottom-left-radius: 2.8rem;
  border-bottom-right-radius: 2.8rem;

  box-shadow: var(--page-title-card-shadow);
}


/* Decorative circles */

.hero-section::before,
.hero-section::after {
  position: absolute;
  border-radius: 50%;
  background: rgba(244, 244, 249, 0.22);
  content: "";
  pointer-events: none;
}

.hero-section::before {
  top: -10rem;
  left: -7rem;
  width: 22rem;
  height: 22rem;
}

.hero-section::after {
  right: -5rem;
  bottom: -15rem;
  width: 28rem;
  height: 28rem;
}


/* Hero content */

.hero-content {
  max-width: 100rem;
  text-align: center;
  position: relative;
  z-index: 1;
}


/* Main heading */

.hero-section h1 {
  font-family: var(--title-font);
  font-size: clamp(1.6rem, 6vw, 5rem);

  margin-top: 0.5rem;
  margin-bottom: 0rem;

  color: var(--duck-charcoal);
  font-weight: 700;
  letter-spacing: 0.1rem;
  line-height: 1.12;
}


/* Main subtitle */

#hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.6rem);
  color: var(--duck-charcoal);
  font-family: var(--font-main);

  margin-top: 0rem;
  margin-bottom: 1.2rem;

  font-weight: 500;
  line-height: 1;
}


/* Second paragraph — Games page only */

.hero-section .games-intro {
  font-family: var(--font-main);
  font-size: clamp(1rem, 2vw, 1.4rem);

  color: var(--duck-charcoal);
  font-weight: 500;
  line-height: 1.3;

  margin: 0 0 0.5rem;
}


/* ============================================================
   GAMES HERO — TABLET
   551px to 1023px
   ============================================================ */

@media (min-width: 551px) and (max-width: 1023px) {

  .hero-section {
    padding: 0rem 1.6rem 0.9rem 1.6rem;

    border-bottom-left-radius: 1.8rem;
    border-bottom-right-radius: 1.8rem;
  }

  .hero-section h1 {
    font-size: clamp(1rem, 4vw, 4rem);
    margin-top: 0.5rem;
    margin-bottom: 0rem;
  }

  .hero-section #hero-subtitle {
    font-size: clamp(0.6rem, 2vw, 1.5rem);
    margin-top: 0rem;
    margin-bottom: 1.3rem;
  }

  .hero-section .games-intro {
    font-size: clamp(0.6rem, 2vw, 1.5rem);
    margin-top: 0rem;
    margin-bottom: 0.5rem;
  }

}


/* ============================================================
   GAMES HERO — MOBILE
   550px and below
   ============================================================ */

@media (max-width: 550px) {

  .hero-section {
    border-bottom-left-radius: 1.8rem;
    border-bottom-right-radius: 1.8rem;
  }

  .hero-section h1 {
    font-size: clamp(1rem, 4.2vw, 2.2rem);
    margin-top: 0.5rem;
    margin-bottom: 0rem;
  }

  .hero-section #hero-subtitle {
    font-size: clamp(1.1rem, 2.4vw, 1.4rem);
    line-height: 1.2;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .hero-section .games-intro {
    font-size: clamp(1.1rem, 2.4vw, 1.4rem);
    line-height: 1.2;
    margin-top: 0rem;
    margin-bottom: 0.5rem;
  }

}
