:root {
  --asphalt: #3d4450;
  --feather-cream: #f5f0e6;
  --nest-shadow: #c8c0b4;
  --nest-light: #ffffff;
  --comb-crimson: #d62839;
  --yolk-amber: #f4a261;
  --lane-green: #2a9d6e;
  --ink-muted: #5c6370;
  --header-height: 70px;
  --font-heading: "Merriweather", Georgia, serif;
  --font-body: "Source Sans Pro", system-ui, sans-serif;
  --neuro-out: 8px 8px 18px var(--nest-shadow), -8px -8px 18px var(--nest-light);
  --neuro-in: inset 6px 6px 14px var(--nest-shadow), inset -6px -6px 14px var(--nest-light);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.gap-4 { gap: 1rem; }
.hidden { display: none !important; }

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--asphalt);
  min-height: 100vh;
  overflow-x: hidden !important;
  background: var(--feather-cream);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(244, 162, 97, 0.18), transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(42, 157, 110, 0.12), transparent 45%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--comb-crimson);
  text-underline-offset: 3px;
}

a:hover {
  color: #a81f2d;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  color: var(--asphalt);
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page__main {
  flex: 1;
}

.wrap {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

.dr-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--feather-cream);
  box-shadow: var(--neuro-out);
}

.dr-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

.dr-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--asphalt);
}

.dr-logo span {
  color: var(--comb-crimson);
}

.dr-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: var(--feather-cream);
  box-shadow: var(--neuro-out);
  cursor: pointer;
}

.dr-nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--asphalt);
  transition: transform 0.25s, opacity 0.25s;
}

.dr-nav__toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.dr-nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.dr-nav__toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.dr-nav__list {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dr-nav__link {
  display: block;
  padding: 0.45rem 0.85rem;
  text-decoration: none;
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 10px;
  transition: color 0.2s, box-shadow 0.2s;
}

.dr-nav__link:hover,
.dr-nav__link--active {
  color: var(--asphalt);
  box-shadow: var(--neuro-in);
}

.hero {
  padding: calc(var(--header-height) + 3rem) 0 2.5rem;
  text-align: center;
}

.hero__tag {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lane-green);
  background: var(--feather-cream);
  border-radius: 999px;
  box-shadow: var(--neuro-out);
}

.hero__title {
  font-size: clamp(1.85rem, 4.8vw, 3rem);
  margin: 0 0 1rem;
  max-width: 24ch;
  margin-inline: auto;
}

.hero__lead {
  margin: 0 auto;
  max-width: 58ch;
  color: var(--ink-muted);
  font-size: 1.08rem;
}

.section {
  padding: 2.5rem 0;
}

.section__title {
  font-size: clamp(1.4rem, 3.2vw, 1.95rem);
  margin: 0 0 0.75rem;
}

.section__title--center {
  text-align: center;
}

.section__title--spaced {
  margin-bottom: 4rem;
  text-align: center;
}

.section__sub {
  margin: 0 0 2rem;
  color: var(--ink-muted);
  max-width: 58ch;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.dr-tile {
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: var(--feather-cream);
  box-shadow: var(--neuro-out);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.dr-tile:hover {
  transform: translateY(-3px);
  box-shadow: 12px 12px 24px var(--nest-shadow), -10px -10px 22px var(--nest-light);
}

.dr-tile__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--asphalt);
}

.dr-tile__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dr-tile__body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.dr-tile__name {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
}

.dr-tile__hint {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.dr-feature {
  border-radius: 18px;
  padding: 1.5rem;
  background: var(--feather-cream);
  box-shadow: var(--neuro-out);
  border-left: 4px solid var(--yolk-amber);
}

.dr-feature__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.dr-feature__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.faq {
  max-width: 720px;
  margin-inline: auto;
}

.faq__item {
  margin-bottom: 0.75rem;
  border-radius: 14px;
  background: var(--feather-cream);
  box-shadow: var(--neuro-out);
  overflow: hidden;
}

.faq__question {
  width: 100%;
  padding: 1rem 1.25rem;
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: var(--asphalt);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq__question::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--comb-crimson);
  transition: transform 0.2s;
}

.faq__item.is-open .faq__question::after {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq__item.is-open .faq__answer {
  max-height: 280px;
}

.faq__answer p {
  margin: 0;
  padding: 0 1.25rem 1.15rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.cta {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  background: var(--feather-cream);
  box-shadow: var(--neuro-out);
  margin-bottom: 3rem;
}

.cta h2 {
  margin: 0 0 0.75rem;
}

.cta p {
  margin: 0 0 1.25rem;
  color: var(--ink-muted);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(90deg, var(--comb-crimson) 0%, var(--comb-crimson) 50%, var(--yolk-amber) 50%, var(--yolk-amber) 100%);
  background-size: 200% 100%;
  background-position: 0 0;
  transition: background-position 0.35s ease, transform 0.2s;
}

.btn:hover {
  background-position: 100% 0;
  color: #fff;
  transform: translateY(-1px);
}

.btn--outline {
  background: var(--feather-cream);
  color: var(--comb-crimson);
  box-shadow: var(--neuro-out);
  border: 2px solid transparent;
}

.btn--outline:hover {
  box-shadow: var(--neuro-in);
  background-position: 0 0;
}

.dr-footer {
  margin-top: auto;
  padding: 2.5rem 0 1.5rem;
  background: rgba(61, 68, 80, 0.06);
  border-top: 1px solid rgba(61, 68, 80, 0.08);
}

.dr-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.dr-footer__heading {
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.dr-footer p {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.dr-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dr-footer__links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.dr-footer__bottom {
  padding-top: 1rem;
  border-top: 1px solid rgba(61, 68, 80, 0.1);
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.cookie-bar {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 200;
  max-width: min(360px, 92vw);
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: var(--feather-cream);
  box-shadow: var(--neuro-out);
  font-size: 0.88rem;
}

.cookie-bar p {
  margin: 0 0 0.75rem;
  color: var(--ink-muted);
}

.page-head {
  padding: calc(var(--header-height) + 2.5rem) 0 1.5rem;
}

.page-head h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
}

.page-head__lead {
  margin: 0;
  max-width: 58ch;
  color: var(--ink-muted);
  font-size: 1.08rem;
}

.prose {
  padding-bottom: 3rem;
  max-width: 72ch;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
}

.prose p,
.prose li {
  color: var(--ink-muted);
}

.prose ul {
  padding-left: 1.25rem;
}

.form {
  max-width: 520px;
  padding-bottom: 3rem;
}

.form__group {
  margin-bottom: 1.15rem;
}

.form__label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 12px;
  font: inherit;
  background: var(--feather-cream);
  box-shadow: var(--neuro-in);
  color: var(--asphalt);
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

.form__status {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--lane-green);
  font-weight: 600;
}

.blog-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 3rem;
}

.blog-card {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 1.5rem;
  padding: 1.25rem;
  border-radius: 18px;
  background: var(--feather-cream);
  box-shadow: var(--neuro-out);
}

.blog-card__thumb {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.blog-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 6px;
  background: rgba(214, 40, 57, 0.12);
  color: var(--comb-crimson);
  margin-bottom: 0.5rem;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin: 0.75rem 0 1rem;
}

.blog-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.blog-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.article {
  padding: calc(var(--header-height) + 2rem) 0 3rem;
  max-width: 72ch;
}

.article__header h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 4vw, 2.2rem);
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-bottom: 2rem;
}

.article__content section {
  margin-bottom: 2rem;
}

.article__content h2 {
  font-size: 1.3rem;
  margin: 0 0 0.75rem;
}

.article__content p,
.article__content li {
  color: var(--ink-muted);
}

.article__content ul {
  padding-left: 1.25rem;
}

.game-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(61, 68, 80, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.game-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.game-modal__panel {
  width: min(960px, 100%);
  height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: var(--asphalt);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.game-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: #2a2f38;
  color: #fff;
}

.game-modal__title {
  margin: 0;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.game-modal__close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.35rem;
}

.game-modal__frame {
  flex: 1;
  width: 100%;
  border: none;
  background: #111;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .dr-footer__grid {
    grid-template-columns: 1fr;
  }

  .blog-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dr-nav__toggle {
    display: flex;
  }

  .dr-nav {
    position: fixed;
    top: calc(var(--header-height) - 1px);
    left: 0;
    right: 0;
    background: var(--feather-cream);
    box-shadow: var(--neuro-out);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  }

  .dr-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .dr-nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .dr-nav__link {
    padding: 0.75rem 1rem;
  }
}
