/* =========================================================
   GamesLand Visual Polish v1
   Stable layout + soft GameGuide-inspired visual direction
   ========================================================= */

:root {
  --primary: #5f7569;
  --primary-dark: #3f554a;
  --secondary: #9ecfc0;
  --bg: #f6f3ec;
  --card: #fffdf8;
  --heading: #1f2a24;
  --body: #4b5a52;
  --muted: #7b8a82;
  --border: #e5ded2;
  --shadow: 0 18px 45px rgba(64, 78, 69, 0.12);
  --shadow-soft: 0 10px 26px rgba(64, 78, 69, 0.08);
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(circle at 8% 12%, rgba(158, 207, 192, 0.22), transparent 26%),
    radial-gradient(circle at 92% 8%, rgba(245, 204, 178, 0.20), transparent 24%),
    linear-gradient(180deg, #fbf8f1 0%, #f6f3ec 46%, #f8faf7 100%);
  color: var(--body);
}

/* Header navigation used by new pages */
.site-header {
  background: rgba(255, 253, 248, 0.86);
  border-bottom: 1px solid rgba(229, 222, 210, 0.88);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 66px;
}

.logo {
  color: var(--heading);
  letter-spacing: -0.04em;
}

.logo::before {
  content: "🎮";
  margin-right: 8px;
  font-size: 0.86em;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 15px;
  font-weight: 700;
}

.main-nav a {
  color: var(--body);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-dark);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

/* Button aliases used by new pages */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(64, 78, 69, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(64, 78, 69, 0.14);
}

.primary-button {
  background: var(--primary-dark);
  color: #ffffff;
}

.primary-button:hover {
  background: #31443a;
}

.secondary-button {
  background: rgba(255, 253, 248, 0.92);
  color: var(--primary-dark);
  border-color: var(--border);
}

.secondary-button:hover {
  border-color: var(--primary);
}

/* Section layout */
.section {
  padding: 70px 0;
}

.soft-section {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.58), rgba(236, 244, 239, 0.68));
}

.section-header {
  display: block;
  max-width: 820px;
  margin: 0 0 34px;
}

.eyebrow,
.section-header .eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-header h2 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.12;
  color: var(--heading);
  letter-spacing: -0.045em;
}

.section-header p {
  margin: 0;
  color: var(--body);
  line-height: 1.75;
}

.section-action {
  margin-top: 28px;
}

/* Hero layout */
.hero {
  padding: 46px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 46px;
  align-items: center;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(229, 222, 210, 0.95);
  border-radius: 34px;
  background:
    radial-gradient(circle at 82% 18%, rgba(158, 207, 192, 0.34), transparent 26%),
    radial-gradient(circle at 18% 82%, rgba(245, 204, 178, 0.24), transparent 30%),
    linear-gradient(135deg, #fffdf8 0%, #f6f1e7 48%, #eaf4ef 100%);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-grid::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -52px;
  top: -52px;
  border-radius: 999px;
  background: rgba(95, 117, 105, 0.08);
}

.hero-grid::after {
  content: "✦";
  position: absolute;
  left: 28px;
  bottom: 22px;
  color: rgba(95, 117, 105, 0.18);
  font-size: 58px;
  line-height: 1;
}

.hero-content,
.hero-media {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--heading);
  letter-spacing: -0.065em;
}

.hero-content p {
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.hero-stats div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid rgba(229, 222, 210, 0.92);
  box-shadow: var(--shadow-soft);
}

.hero-stats strong {
  display: block;
  color: var(--heading);
  font-size: 1.16rem;
}

.hero-stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 22px;
}

.card-grid.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.guide-item,
.qa-item,
.tool-card,
.membership-card,
.quick-answer-box,
.ad-slot {
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(229, 222, 210, 0.95);
  box-shadow: var(--shadow-soft);
}

.card,
.tool-card {
  display: block;
  padding: 26px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.card::before,
.tool-card::before {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.8), transparent 42%),
    linear-gradient(135deg, rgba(158, 207, 192, 0.9), rgba(245, 204, 178, 0.62));
}

.card h3,
.tool-card h3 {
  margin: 0 0 10px;
  color: var(--heading);
  letter-spacing: -0.02em;
}

.card p,
.tool-card p {
  margin: 0;
  color: var(--body);
  line-height: 1.7;
}

/* Guide cards */
.guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.guide-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  padding: 24px;
  text-decoration: none;
  color: inherit;
}

.guide-item::before {
  content: "";
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.88), transparent 44%),
    linear-gradient(135deg, #c7e6dc, #f2d4c0);
}

.guide-item > div {
  min-width: 0;
}

.guide-item h3 {
  margin: 6px 0 8px;
  color: var(--heading);
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.guide-item p {
  margin: 0;
  color: var(--body);
  line-height: 1.65;
}

.tag {
  display: inline-block;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e6f4ed;
  color: #3f735f;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* QA cards */
.qa-list {
  display: grid;
  gap: 16px;
}

.qa-item {
  display: block;
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
}

.qa-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qa-item strong {
  color: var(--heading);
  font-size: 1rem;
}

/* Tool cards */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* Premium / notice / ads */
.membership-card {
  padding: 30px;
  background:
    radial-gradient(circle at 86% 18%, rgba(158, 207, 192, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.92), rgba(232, 245, 239, 0.9));
}

.quick-answer-box {
  padding: 26px;
  background: linear-gradient(135deg, rgba(238, 247, 243, 0.95), rgba(255, 253, 248, 0.92));
}

.ad-slot {
  padding: 22px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.58);
  border-style: dashed;
}

/* Hover polish */
a.card,
a.guide-item,
a.qa-item,
a.tool-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.card:hover,
a.guide-item:hover,
a.qa-item:hover,
a.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(95, 117, 105, 0.26);
}

/* Footer compatibility */
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer {
  background: rgba(255, 253, 248, 0.9);
  border-top: 1px solid rgba(229, 222, 210, 0.95);
}

/* Mobile */
@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 12px 16px;
  }

  .hero-grid,
  .card-grid.three-columns,
  .tools-grid,
  .guide-list {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section,
  .hero {
    padding: 46px 0;
  }

  .hero-grid {
    padding: 24px;
    border-radius: 26px;
  }

  .main-nav {
    font-size: 14px;
  }

  .guide-item {
    flex-direction: row;
    padding: 20px;
  }

  .guide-item::before {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 15px;
  }

  .hero-actions .button,
  .section-action .button {
    width: 100%;
    text-align: center;
  }

  .card,
  .tool-card,
  .membership-card,
  .qa-item,
  .guide-item {
    border-radius: 20px;
  }
}
