* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #101014;
  color: #ffffff;
}

a {
  color: inherit;
}

/* Header / Navigation */

.site-header {
  background: #17171d;
  border-bottom: 1px solid #2a2a35;
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: #e7e7e7;
  text-decoration: none;
  font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffcc66;
}

.menu-button {
  display: none;
  background: #24242e;
  color: white;
  border: 1px solid #3a3a48;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo-image {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  image-rendering: pixelated;
}

.logo-text {
  line-height: 1;
}

/* Hero Section */

.hero {
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 55px 24px 35px;
  text-align: center;
  background:
    linear-gradient(rgba(16, 16, 20, 0.55), rgba(16, 16, 20, 0.95)),
    radial-gradient(circle at top, #35354c, #101014 60%);
}

.hero-content {
  max-width: 850px;
}

.small-title {
  color: #ffcc66;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: bold;
  font-size: 14px;
}

.hero h1 {
  font-size: 64px;
  margin: 12px 0 20px;
  line-height: 1;
}

.hero-text {
  color: #d4d4d8;
  font-size: 21px;
  line-height: 1.6;
  margin: 0 auto 32px;
  max-width: 700px;
}

/* Buttons */

.button-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  background: #ffcc66;
  color: #111118;
  text-decoration: none;
  font-weight: 800;
  padding: 14px 22px;
  border-radius: 10px;
  border: 2px solid #ffcc66;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.secondary {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.card .button {
  margin-top: 10px;
  margin-right: 8px;
}

/* Page Header */

.page-header {
  padding: 90px 24px 60px;
  text-align: center;
  background: linear-gradient(135deg, #242433, #111118);
  border-bottom: 1px solid #2a2a35;
}

.page-header h1 {
  font-size: 48px;
  margin: 0 0 16px;
}

.page-header p {
  color: #d4d4d8;
  font-size: 19px;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.monster-header {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(
      rgba(16, 16, 20, 0.15),
      rgba(16, 16, 20, 0.45),
      rgba(16, 16, 20, 0.95)
    ),
    url("images/MonsterWildlandsBanner.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}

.monster-header h1 {
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.85);
}

.monster-header p {
  color: #f0f0f0;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.85);
}

/* General Sections */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 24px;
}

.section h2 {
  font-size: 34px;
  margin-top: 0;
}

.section p {
  color: #d4d4d8;
  line-height: 1.7;
  font-size: 17px;
}

/* Homepage Game Cards */

.grid-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 35px 24px 45px;
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 500px));
  gap: 32px;
  justify-content: center;
  align-items: stretch;
}

/* Normal Cards */

.card {
  background: #17171d;
  border: 1px solid #2a2a35;
  border-radius: 14px;
  padding: 26px;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.card p {
  color: #cfcfd5;
}

.grid-section > .card {
  min-height: 560px;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Portrait Image Card for LetsGoPlanin */

.portrait-game-card {
  position: relative;
  width: 100%;
  height: 560px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #2a2a35;
  background: #17171d;
}

.portrait-game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  display: block;
}

.portrait-game-overlay {
  position: absolute;
  inset: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(
    rgba(0, 0, 0, 0.05),
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0.9)
  );
}

.portrait-game-overlay h3 {
  font-size: 32px;
  margin: 0 0 12px;
}

.portrait-game-overlay p {
  color: #e8e8e8;
  line-height: 1.6;
  margin: 0 0 22px;
}

.portrait-button {
  width: 100%;
  text-align: center;
}

/* MonsterWildlands card image crop */
.portrait-game-card.monster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom !important;
  display: block;
  image-rendering: pixelated;
}

/* Games Info Below Cards */

.games-info {
  max-width: 800px;
  margin: 0 auto;
  padding: 35px 24px 45px;
  text-align: center;
}

/* Support Section */

.support-section {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 55px;
  padding: 45px 24px 55px;
}

/* Links */

.text-link {
  color: #ffcc66;
  text-decoration: none;
  font-weight: bold;
}

.text-link:hover {
  text-decoration: underline;
}

/* Contact Page */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.contact-form {
  background: #17171d;
  border: 1px solid #2a2a35;
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form label {
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px;
  border-radius: 8px;
  border: 1px solid #3a3a48;
  background: #101014;
  color: white;
  font-size: 16px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #ffcc66;
}

/* Follow Icons */

.follow-box {
  margin-top: 24px;
}

.follow-box h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.social-image-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-image-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  text-decoration: none;
}

.social-image-row img {
  width: 78px !important;
  height: 78px !important;
  max-width: 78px !important;
  max-height: 78px !important;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.social-image-row a:hover img {
  transform: translateY(-2px) scale(1.12);
}

/* -------------------------------------------------------------------Video */

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #2a2a35;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
}

/* Devlog */

.note {
  font-size: 14px;
  color: #9d9da8 !important;
}

.devlog-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.devlog-post {
  background: #17171d;
  border: 1px solid #2a2a35;
  border-radius: 14px;
  padding: 28px;
}

.devlog-post h2 {
  margin-bottom: 12px;
}

.date {
  color: #ffcc66 !important;
  font-size: 14px !important;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Footer */

.site-footer {
  text-align: center;
  padding: 34px 24px;
  background: #17171d;
  border-top: 1px solid #2a2a35;
}

.site-footer p {
  color: #9d9da8;
  margin: 0;
}

/* LetsGoPlanin Page Header */

.letsgo-header {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(
      rgba(16, 16, 20, 0.25),
      rgba(16, 16, 20, 0.55),
      rgba(16, 16, 20, 0.95)
    ),
    url("images/letsgoplanin-hangar.png");
  background-size: cover;
  background-position: 65% center;
  background-repeat: no-repeat;
}

.letsgo-header h1 {
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.8);
}

.letsgo-header p {
  color: #f0f0f0;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.8);
}

.home-hero {
  min-height: 460px;
  padding-bottom: 45px;
}

.home-card-section {
  padding-top: 0;
  margin-top: -35px;
  position: relative;
  z-index: 2;
}

/* -------------------------------------------------------------Tablet */

@media (max-width: 850px) {
  .grid-section {
    grid-template-columns: 1fr;
    max-width: 540px;
  }

  .grid-section > .card {
    min-height: 420px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 48px;
  }

  .portrait-game-card {
    height: 560px;
  }
}

/* --------------------------------------------------------------Phone */

@media (max-width: 650px) {
  .menu-button {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 24px;
    right: 24px;
    background: #17171d;
    border: 1px solid #2a2a35;
    border-radius: 12px;
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    min-height: 390px;
    padding: 45px 20px 25px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-text {
    font-size: 18px;
  }

  .page-header h1 {
    font-size: 38px;
  }

  .section {
    padding: 52px 24px;
  }

  .grid-section {
    padding-top: 28px;
    padding-bottom: 35px;
  }

  .portrait-game-card {
    height: 520px;
  }

  .grid-section > .card {
    min-height: 360px;
    padding: 30px;
  }

  .portrait-game-overlay {
    padding: 22px;
  }

  .portrait-game-overlay h3 {
    font-size: 28px;
  }

  .games-info {
    padding-top: 25px;
  }

  .support-section {
    padding-top: 35px;
  }

  .social-image-row a {
    width: 22px;
    height: 22px;
  }

  .social-image-row img {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
  }
  /* MonsterWildlands Image Card */

  .monster-game-card {
    position: relative;
    width: 100%;
    height: 560px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #2a2a35;
    background: #17171d;
  }

  .monster-game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    /* This makes sure the bottom of the image stays visible */
    object-position: center bottom;

    display: block;
    image-rendering: pixelated;
  }

  .monster-game-overlay {
    position: absolute;
    inset: 0;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(
      rgba(0, 0, 0, 0.05),
      rgba(0, 0, 0, 0.25),
      rgba(0, 0, 0, 0.9)
    );
  }

  .monster-game-overlay h3 {
    font-size: 32px;
    margin: 0 0 12px;
  }

  .monster-game-overlay p {
    color: #e8e8e8;
    line-height: 1.6;
    margin: 0 0 22px;
  }

  @media (max-width: 850px) {
    .monster-game-card {
      height: 560px;
    }
  }

  @media (max-width: 650px) {
    .monster-game-card {
      height: 520px;
    }

    .monster-game-overlay {
      padding: 22px;
    }

    .monster-game-overlay h3 {
      font-size: 28px;
    }
  }
}

/* --------------------------------------------------------------
   Final mobile fixes
   Applies only to phone screens. Desktop layout stays unchanged.
-------------------------------------------------------------- */

.home-hero-logo {
  display: block;
  width: 92px;
  height: 92px;
  object-fit: contain;
  image-rendering: pixelated;
  margin: 0 auto 18px;
}

@media (max-width: 650px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    position: relative;
  }

  img,
  video,
  iframe {
    max-width: 100%;
  }

  .site-header {
    width: 100%;
    overflow-x: hidden;
  }

  .navbar {
    width: 100%;
    max-width: 100%;
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
  }

  .logo {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-align: center;
    letter-spacing: 0;
    overflow: hidden;
  }

  .site-logo-image {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: contain;
    display: block;
    image-rendering: pixelated;
  }

  .logo-text {
    display: block;
    max-width: calc(100vw - 92px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
    line-height: 1.05;
  }

  .menu-button {
    display: none !important;
  }

  .nav-links,
  .nav-links.open {
    display: flex !important;
    position: static !important;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    max-width: 100%;
    padding: 2px 0 0;
    background: transparent;
    border: none;
    border-radius: 0;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    overflow: visible;
  }

  .nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    margin: 2px 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #d9d9df;
    font-size: 12px;
    line-height: 1.15;
    text-decoration: none;
    white-space: nowrap;
  }

  .nav-links a + a {
    border-left: 1px solid rgba(255, 255, 255, 0.24);
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: #ffcc66;
    background: transparent;
  }

  .section,
  .page-header,
  .hero,
  .grid-section,
  .games-info,
  .support-section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-header {
    padding-left: 20px;
    padding-right: 20px;
  }

  .home-hero {
    min-height: 430px;
    padding: 44px 20px 32px;
  }

  .home-hero-logo {
    width: 78px;
    height: 78px;
    margin-bottom: 16px;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .home-hero h1,
  .hero h1 {
    max-width: 100%;
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.08;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .hero-text {
    max-width: 100%;
    font-size: 17px;
    line-height: 1.5;
    overflow-wrap: break-word;
  }

  .small-title {
    font-size: 12px;
  }

  .page-header h1 {
    max-width: 100%;
    font-size: 38px;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .video-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .portrait-game-card,
  .monster-game-card,
  .card,
  .devlog-post,
  .contact-form {
    max-width: 100%;
  }
}
