:root {
  --main-bg: #836656;
  --accent-bg: #fff;
  --accent: #fff;
  --primary: #836656;
  --secondary: #a68a6b;
  --shadow: 0 4px 24px 0 rgba(70, 50, 30, 0.09), 0 1.5px 8px 0 rgba(60, 40, 20, 0.05);
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --radius-xs: 4px;
  --border: 1px solid rgba(131, 102, 86, 0.09);
  --text: #2d1d10;
  --text-light: #6d5543;
  --text-muted: #b6a89c;
  --transition: all .28s cubic-bezier(.4,0,.2,1);
  --max-width: 1240px;
  --font-main: 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-size: 14px;
  --h1-size: 2.2rem;
  --h2-size: 1.4rem;
  --h3-size: 1.1rem;
  --card-gap: 32px;
  --section-pad: 56px;
  --section-pad-mob: 32px;
}

html, body {
  min-height: 100%;
  background: var(--main-bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: var(--font-size);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body.thegrugs-body {
  background: var(--main-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .18s;
}
a:hover, a:focus {
  color: var(--secondary);
}

.thegrugs-header {
  background: var(--accent-bg);
  box-shadow: var(--shadow);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.thegrugs-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 32px;
  height: 72px;
  justify-content: space-between;
}
.thegrugs-logo__img {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px 0 rgba(131, 102, 86, 0.13);
  background: #fff;
  object-fit: cover;
  transition: transform .18s;
}
.thegrugs-logo__img:hover {
  transform: scale(1.07) rotate(-5deg);
}
.thegrugs-nav__list {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.thegrugs-nav__link {
  color: var(--primary);
  background: transparent;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 14px;
  letter-spacing: 0.01em;
  position: relative;
}
.thegrugs-nav__link:hover, .thegrugs-nav__link:focus {
  background: var(--main-bg);
  color: var(--accent);
  box-shadow: 0 2px 8px 0 rgba(131,102,86,0.08);
}

.thegrugs-hero {
  background: var(--main-bg);
  padding: var(--section-pad) 0 var(--section-pad) 0;
  display: flex;
  justify-content: center;
}
.thegrugs-hero__wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  align-items: stretch;
}
.thegrugs-hero__col {
  flex: 1 1 350px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.thegrugs-hero__col--left {
  min-width: 320px;
  max-width: 520px;
  justify-content: center;
  gap: 18px;
  display: flex;
  flex-direction: column;
}
.thegrugs-hero__title {
  font-size: var(--h1-size);
  font-weight: 800;
  margin: 0 0 12px 0;
  color: var(--accent-bg);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(70,50,30,0.09);
}
.thegrugs-hero__subtitle {
  font-size: 1.07rem;
  color: var(--text-light);
  margin: 0 0 18px 0;
  font-weight: 500;
}
.thegrugs-hero__meta {
  list-style: none;
  padding: 0;
  margin: 0 0 22px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.thegrugs-hero__meta-item {
  color: var(--text-muted);
  font-size: 13px;
  padding-left: 20px;
  position: relative;
}
.thegrugs-hero__meta-item::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent-bg);
  border-radius: 50%;
  position: absolute;
  left: 0; top: 5px;
  box-shadow: 0 1px 3px 0 rgba(120,80,60,0.07);
}
.thegrugs-hero__cta {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 12px;
}
.thegrugs-hero__button {
  background: var(--accent-bg);
  color: var(--primary);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-lg);
  font-size: 15px;
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
  outline: none;
  display: inline-block;
}
.thegrugs-hero__button:hover, .thegrugs-hero__button:focus {
  background: var(--secondary);
  color: var(--accent-bg);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px 0 rgba(70,50,30,0.13);
}
.thegrugs-hero__secondary {
  color: var(--accent-bg);
  font-size: 13px;
  font-weight: 500;
  opacity: .8;
  text-decoration: underline;
  transition: opacity .18s;
}
.thegrugs-hero__secondary:hover { opacity: 1; }

.thegrugs-hero__col--right {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-end;
  min-width: 320px;
  max-width: 480px;
}
.thegrugs-hero__art {
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--accent-bg);
  margin-bottom: 12px;
  align-self: flex-end;
}
.thegrugs-hero__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
}
.thegrugs-hero__quicklist {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  width: 100%;
}
.thegrugs-hero__card {
  flex: 1 1 150px;
  background: var(--accent-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 18px 18px 14px 18px;
  min-width: 150px;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow .18s, transform .18s;
}
.thegrugs-hero__card:hover {
  box-shadow: 0 8px 24px 0 rgba(131,102,86,0.14);
  transform: translateY(-2px) scale(1.03);
}
.thegrugs-hero__card-title {
  font-size: 1.01rem;
  font-weight: 700;
  margin: 0 0 2px 0;
  color: var(--primary);
}
.thegrugs-hero__card-text {
  color: var(--text-light);
  font-size: 13px;
  margin: 0;
}

/* Features Section */
.thegrugs-features {
  background: var(--accent-bg);
  padding: var(--section-pad) 0;
  display: flex;
  justify-content: center;
}
.thegrugs-features__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1.5fr;
  gap: 48px;
  align-items: stretch;
  padding: 0 32px;
}
.thegrugs-features__media {
  display: flex;
  align-items: center;
  justify-content: center;
}
.thegrugs-features__image {
  width: 100%;
  max-width: 340px;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.thegrugs-features__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.thegrugs-section-title {
  font-size: var(--h2-size);
  font-weight: 800;
  margin: 0 0 14px 0;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.thegrugs-features__lead {
  color: var(--text-light);
  font-weight: 500;
  font-size: 1.02rem;
  margin-bottom: 8px;
}
.thegrugs-features__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.thegrugs-features__item {
  position: relative;
  padding-left: 22px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
.thegrugs-features__item::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--main-bg);
  border-radius: 50%;
  position: absolute;
  left: 0; top: 7px;
  box-shadow: 0 1px 3px 0 rgba(120,80,60,0.07);
}

/* Mechanics Section */
.thegrugs-mechanics {
  background: var(--main-bg);
  padding: var(--section-pad) 0;
  display: flex;
  justify-content: center;
}
.thegrugs-mechanics__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}
.thegrugs-mechanics__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
  margin-top: 32px;
}
.thegrugs-mechanics__card {
  background: var(--accent-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow .18s, transform .18s;
  min-height: 170px;
}
.thegrugs-mechanics__card:hover {
  box-shadow: 0 8px 24px 0 rgba(131,102,86,0.14);
  transform: translateY(-2px) scale(1.03);
}
.thegrugs-mechanics__card-title {
  font-size: var(--h3-size);
  font-weight: 700;
  margin: 0 0 2px 0;
  color: var(--primary);
}
.thegrugs-mechanics__card-text {
  color: var(--text-light);
  font-size: 13px;
  margin: 0;
}

/* Gameplay Section */
.thegrugs-gameplay {
  background: var(--accent-bg);
  padding: var(--section-pad) 0;
  display: flex;
  justify-content: center;
}
.thegrugs-gameplay__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 48px;
  align-items: stretch;
  padding: 0 32px;
}
.thegrugs-gameplay__image {
  width: 100%;
  max-width: 420px;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.thegrugs-gameplay__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.thegrugs-gameplay__steps {
  list-style: none;
  counter-reset: steps;
  margin: 0 0 12px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.thegrugs-gameplay__step {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}
.thegrugs-gameplay__step::before {
  counter-increment: steps;
  content: counter(steps) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--main-bg);
  background: var(--accent-bg);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-xs);
  min-width: 18px;
  text-align: center;
}
.thegrugs-gameplay__note {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
  font-style: italic;
  margin-top: 8px;
}

/* Screenshots Section */
.thegrugs-screenshots {
  background: var(--main-bg);
  padding: var(--section-pad) 0;
  display: flex;
  justify-content: center;
}
.thegrugs-screenshots__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}
.thegrugs-screenshots__lead {
  color: var(--text-light);
  font-size: 1.01rem;
  margin-bottom: 22px;
}
.thegrugs-screenshots__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 24px;
}
.thegrugs-screenshots__item {
  background: var(--accent-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: box-shadow .18s, transform .18s;
}
.thegrugs-screenshots__item:hover {
  box-shadow: 0 8px 24px 0 rgba(131,102,86,0.14);
  transform: translateY(-2px) scale(1.03);
}
.thegrugs-screenshots__img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.thegrugs-screenshots__caption {
  font-size: 12px;
  color: var(--text-muted);
  padding: 10px 12px 12px 12px;
  background: var(--accent-bg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  margin: 0;
  text-align: center;
}

/* Reviews Section */
.thegrugs-reviews {
  background: var(--accent-bg);
  padding: var(--section-pad) 0;
  display: flex;
  justify-content: center;
}
.thegrugs-reviews__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}
.thegrugs-reviews__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 32px;
}
.thegrugs-review {
  background: var(--main-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--accent-bg);
  transition: box-shadow .18s, transform .18s;
  min-height: 160px;
}
.thegrugs-review:hover {
  box-shadow: 0 8px 24px 0 rgba(131,102,86,0.14);
  transform: translateY(-2px) scale(1.03);
}
.thegrugs-review__author {
  font-size: 1.01rem;
  font-weight: 700;
  margin: 0 0 2px 0;
  color: var(--accent-bg);
  opacity: .85;
}
.thegrugs-review__text {
  color: var(--accent-bg);
  font-size: 13px;
  margin: 0;
  opacity: .92;
  font-style: italic;
}

/* FAQ Section */
.thegrugs-faq {
  background: var(--main-bg);
  padding: var(--section-pad) 0;
  display: flex;
  justify-content: center;
}
.thegrugs-faq__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}
.thegrugs-faq__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 32px;
}
.thegrugs-faq__item {
  background: var(--accent-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow .18s, transform .18s;
  min-height: 110px;
}
.thegrugs-faq__item:hover {
  box-shadow: 0 8px 24px 0 rgba(131,102,86,0.14);
  transform: translateY(-2px) scale(1.03);
}
.thegrugs-faq__q {
  font-size: 1.01rem;
  font-weight: 700;
  margin: 0 0 2px 0;
  color: var(--primary);
}
.thegrugs-faq__a {
  color: var(--text-light);
  font-size: 13px;
  margin: 0;
}

/* Download Callout */
.thegrugs-download {
  background: var(--accent-bg);
  padding: var(--section-pad) 0;
  display: flex;
  justify-content: center;
}
.thegrugs-download__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 48px;
  align-items: stretch;
  padding: 0 32px;
}
.thegrugs-download__img {
  width: 100%;
  max-width: 340px;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  align-self: center;
}
.thegrugs-download__box {
  background: var(--main-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 320px;
  max-width: 520px;
  justify-content: center;
  align-items: flex-start;
}
.thegrugs-download__text {
  color: var(--accent-bg);
  font-size: 14px;
  margin: 0 0 8px 0;
}
.thegrugs-download__button {
  background: var(--accent-bg);
  color: var(--primary);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-lg);
  font-size: 15px;
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
  outline: none;
  display: inline-block;
  margin-top: 8px;
}
.thegrugs-download__button:hover, .thegrugs-download__button:focus {
  background: var(--secondary);
  color: var(--accent-bg);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px 0 rgba(70,50,30,0.13);
}

/* Footer */
.thegrugs-footer {
  background: var(--main-bg);
  color: var(--accent-bg);
  padding: 48px 0 24px 0;
  font-size: 13px;
  box-shadow: 0 -2px 16px 0 rgba(70,50,30,0.09);
}
.thegrugs-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  padding: 0 32px;
}
.thegrugs-footer__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.thegrugs-footer__logoimg {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: #fff;
  object-fit: cover;
  box-shadow: 0 2px 8px 0 rgba(131,102,86,0.13);
}
.thegrugs-footer__about {
  color: var(--accent-bg);
  opacity: .7;
  margin: 0 0 8px 0;
}
.thegrugs-footer__copyright {
  color: var(--text-muted);
  margin: 0;
  font-size: 12px;
}
.thegrugs-footer__title {
  color: var(--accent-bg);
  font-size: 1.01rem;
  font-weight: 700;
  margin: 0 0 6px 0;
}
.thegrugs-footer__links,
.thegrugs-footer__anchors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.thegrugs-footer__link {
  color: var(--accent-bg);
  opacity: .8;
  text-decoration: underline;
  transition: opacity .18s, color .18s;
  font-size: 13px;
}
.thegrugs-footer__link:hover, .thegrugs-footer__link:focus {
  opacity: 1;
  color: var(--secondary);
}
.thegrugs-footer__download {
  color: var(--accent-bg);
  margin: 0;
  font-size: 13px;
}

/* Responsive Design */
@media (max-width: 1150px) {
  .thegrugs-hero__wrap,
  .thegrugs-features__inner,
  .thegrugs-gameplay__inner,
  .thegrugs-download__inner,
  .thegrugs-footer__inner {
    gap: 28px;
  }
  .thegrugs-mechanics__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .thegrugs-screenshots__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .thegrugs-reviews__list {
    grid-template-columns: repeat(2, 1fr);
  }
  .thegrugs-faq__list {
    grid-template-columns: 1fr;
  }
  .thegrugs-footer__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .thegrugs-hero__wrap,
  .thegrugs-features__inner,
  .thegrugs-gameplay__inner,
  .thegrugs-download__inner {
    flex-direction: column;
    display: flex;
    gap: 32px;
    align-items: stretch;
  }
  .thegrugs-hero__col,
  .thegrugs-hero__col--right,
  .thegrugs-features__media,
  .thegrugs-features__content,
  .thegrugs-gameplay__content {
    max-width: 100%;
    min-width: 0;
  }
  .thegrugs-gameplay__image,
  .thegrugs-download__img {
    max-width: 100%;
    margin: 0 auto;
  }
  .thegrugs-mechanics__grid {
    grid-template-columns: 1fr;
  }
  .thegrugs-screenshots__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .thegrugs-reviews__list {
    grid-template-columns: 1fr;
  }
  .thegrugs-footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 700px) {
  :root {
    --section-pad: var(--section-pad-mob);
  }
  .thegrugs-header__inner,
  .thegrugs-hero__wrap,
  .thegrugs-features__inner,
  .thegrugs-gameplay__inner,
  .thegrugs-download__inner,
  .thegrugs-screenshots__inner,
  .thegrugs-reviews__inner,
  .thegrugs-faq__inner,
  .thegrugs-footer__inner {
    padding: 0 12px;
  }
  .thegrugs-header__inner {
    height: 56px;
  }
  .thegrugs-logo__img {
    width: 34px;
    height: 34px;
  }
  .thegrugs-nav__list {
    gap: 10px;
  }
  .thegrugs-hero__title {
    font-size: 1.3rem;
  }
  .thegrugs-section-title {
    font-size: 1.07rem;
  }
  .thegrugs-hero__image,
  .thegrugs-features__image,
  .thegrugs-gameplay__image,
  .thegrugs-download__img {
    height: 150px;
    max-height: 150px;
    min-height: 90px;
  }
  .thegrugs-screenshots__grid {
    grid-template-columns: 1fr;
  }
}

/* Hide scrollbars for cards on small screens if overflow */
@media (max-width: 500px) {
  .thegrugs-mechanics__grid,
  .thegrugs-reviews__list,
  .thegrugs-screenshots__grid {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
  }
  .thegrugs-mechanics__card,
  .thegrugs-review,
  .thegrugs-screenshots__item {
    min-width: 240px;
    max-width: 320px;
    scroll-snap-align: start;
  }
}

/* Hide number input arrows for Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none;
  margin: 0; 
}
input[type=number] {
  -moz-appearance: textfield;
}