:root {
  --color-bg: #eaf6fb;
  --color-bg-gradient: linear-gradient(135deg, rgba(202, 236, 255, 0.16) 0%, rgba(234, 246, 251, 0.24) 100%);
  --color-bg-card: #f6fbfd;
  --color-bg-card-gradient: linear-gradient(120deg, rgba(202, 236, 255, 0.08) 0%, rgba(234, 246, 251, 0.14) 100%);
  --color-accent: #7fff8a;
  --color-accent-hover: #5ed86b;
  --color-accent-text: #1a3a2f;
  --color-text: #19223a;
  --color-text-muted: #5f6c87;
  --color-border: rgba(60, 120, 180, 0.10);
  --color-shadow: 0 4px 24px 0 rgba(60, 120, 180, 0.08);
  --color-shadow-hover: 0 8px 32px 0 rgba(60, 120, 180, 0.13);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.22s cubic-bezier(.5,1,.89,1);
  --max-width: 1240px;
  --font-main: 'Inter', 'Segoe UI', Arial, sans-serif;
}

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

body.tilematch-body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  background-image: var(--color-bg-gradient);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--color-accent-hover);
}

.tilematch-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.tilematch-header {
  background: var(--color-bg-card);
  background-image: var(--color-bg-card-gradient);
  box-shadow: var(--color-shadow);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.tilematch-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
}

.tilematch-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.tilematch-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(60,120,180,0.07);
  object-fit: cover;
}

.tilematch-title {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.tilematch-nav {
  display: flex;
  align-items: center;
}

.tilematch-nav-list {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tilematch-nav-link {
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-xs);
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.tilematch-nav-link:hover, .tilematch-nav-link:focus {
  color: var(--color-accent-text);
  background: rgba(127,255,138,0.10);
}

.tilematch-hero {
  background: var(--color-bg-card);
  background-image: var(--color-bg-card-gradient);
  box-shadow: var(--color-shadow);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-bottom: 32px;
  padding: 0 0 36px 0;
}

.tilematch-hero-inner {
  display: flex;
  gap: 36px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 0 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.tilematch-hero-left {
  flex: 1 1 340px;
  min-width: 300px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.tilematch-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.tilematch-hero-tagline {
  font-size: 1.12rem;
  color: var(--color-text-muted);
  margin: 0 0 10px 0;
}

.tilematch-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  list-style: none;
  margin: 0 0 12px 0;
  padding: 0;
}
.tilematch-stat {
  color: var(--color-text);
  font-size: 1em;
  background: rgba(202,236,255,0.18);
  border-radius: var(--radius-xs);
  padding: 6px 14px;
  font-weight: 500;
  box-shadow: 0 1px 4px 0 rgba(60,120,180,0.03);
}

.tilematch-hero-cta {
  display: flex;
  gap: 18px;
  margin-top: 8px;
}

.tilematch-btn {
  display: inline-block;
  font-size: 1em;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 28px;
  background: var(--color-accent);
  color: var(--color-accent-text);
  box-shadow: 0 2px 8px 0 rgba(127,255,138,0.11);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
  text-align: center;
  text-decoration: none;
  outline: none;
}
.tilematch-btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-text);
}
.tilematch-btn-primary:hover, .tilematch-btn-primary:focus {
  background: var(--color-accent-hover);
  color: #fff;
  box-shadow: 0 4px 18px 0 rgba(127,255,138,0.18);
}
.tilematch-btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  box-shadow: none;
}
.tilematch-btn-secondary:hover, .tilematch-btn-secondary:focus {
  background: rgba(127,255,138,0.08);
  color: var(--color-accent-hover);
}
.tilematch-btn-ghost {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  box-shadow: none;
}
.tilematch-btn-ghost:hover, .tilematch-btn-ghost:focus {
  background: rgba(127,255,138,0.08);
  color: var(--color-accent-hover);
}

.tilematch-hero-right {
  flex: 1 1 320px;
  min-width: 280px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.tilematch-hero-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tilematch-card {
  background: var(--color-bg-card);
  background-image: var(--color-bg-card-gradient);
  border-radius: var(--radius-lg);
  box-shadow: var(--color-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 220px;
  max-width: 320px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.tilematch-card:hover {
  box-shadow: var(--color-shadow-hover);
  transform: translateY(-2px) scale(1.025);
}
.tilematch-card-overlap {
  margin-left: 36px;
  margin-right: 12px;
  margin-top: -30px;
  z-index: 2;
  position: relative;
}

.tilematch-card-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.tilematch-card-caption {
  padding: 14px 16px;
  font-size: 1em;
  color: var(--color-text-muted);
  background: rgba(202,236,255,0.09);
  border-top: 1px solid var(--color-border);
  font-weight: 500;
}

.tilematch-section-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 28px 0;
  color: var(--color-text);
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(202,236,255,0.14);
}

.tilematch-world {
  margin: 0 0 48px 0;
  padding: 36px 0 0 0;
}

.tilematch-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 36px;
  align-items: flex-start;
}

.tilematch-grid-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tilematch-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-card);
  background-image: var(--color-bg-card-gradient);
  box-shadow: var(--color-shadow);
  max-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 220px;
}

.tilematch-figure-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  max-height: 220px;
}

.tilematch-figure-caption {
  padding: 12px 18px;
  font-size: 1em;
  color: var(--color-text-muted);
  background: rgba(202,236,255,0.09);
  border-top: 1px solid var(--color-border);
  font-weight: 500;
}

.tilematch-block {
  background: var(--color-bg-card);
  background-image: var(--color-bg-card-gradient);
  border-radius: var(--radius-md);
  box-shadow: var(--color-shadow);
  padding: 18px 20px;
  margin-bottom: 6px;
}

.tilematch-subtitle {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 10px 0;
  letter-spacing: 0.01em;
}

.tilematch-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tilematch-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}
.tilematch-list li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 6px;
  opacity: 0.7;
}

.tilematch-entities {
  margin-top: 30px;
  background: var(--color-bg-card);
  background-image: var(--color-bg-card-gradient);
  border-radius: var(--radius-md);
  box-shadow: var(--color-shadow);
  padding: 22px 26px 18px 26px;
}

.tilematch-gameplay {
  margin: 0 0 48px 0;
  padding: 36px 0 0 0;
}

.tilematch-grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: flex-start;
}

.tilematch-col-left, .tilematch-col-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tilematch-minisub {
  font-size: 1em;
  font-weight: 600;
  margin: 18px 0 6px 0;
  color: var(--color-text-muted);
}

.tilematch-quicksteps {
  background: var(--color-bg-card);
  background-image: var(--color-bg-card-gradient);
  border-radius: var(--radius-md);
  box-shadow: var(--color-shadow);
  padding: 18px 20px;
}

.tilematch-quicksteps ol {
  margin: 0;
  padding-left: 18px;
  color: var(--color-text-muted);
  font-size: 1em;
}
.tilematch-quicksteps li {
  margin-bottom: 7px;
}

.tilematch-features {
  margin: 0 0 48px 0;
  padding: 36px 0 0 0;
}

.tilematch-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.tilematch-feature-card {
  background: var(--color-bg-card);
  background-image: var(--color-bg-card-gradient);
  border-radius: var(--radius-lg);
  box-shadow: var(--color-shadow);
  padding: 22px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.tilematch-feature-card:hover {
  box-shadow: var(--color-shadow-hover);
  transform: translateY(-2px) scale(1.025);
}

.tilematch-card-title {
  font-size: 1.04rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--color-text);
}

.tilematch-content {
  margin: 0 0 48px 0;
  padding: 36px 0 0 0;
}

.tilematch-screenshots {
  margin: 0 0 48px 0;
  padding: 36px 0 0 0;
}

.tilematch-intro {
  color: var(--color-text-muted);
  margin-bottom: 22px;
}

.tilematch-screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
}

.tilematch-screenshot {
  background: var(--color-bg-card);
  background-image: var(--color-bg-card-gradient);
  border-radius: var(--radius-md);
  box-shadow: var(--color-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.tilematch-screenshot:hover {
  box-shadow: var(--color-shadow-hover);
  transform: scale(1.03);
}

.tilematch-screenshot-img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  display: block;
}

.tilematch-screenshot-caption {
  padding: 12px 14px;
  font-size: 0.98em;
  color: var(--color-text-muted);
  background: rgba(202,236,255,0.09);
  border-top: 1px solid var(--color-border);
  font-weight: 500;
}

.tilematch-experience {
  margin: 0 0 48px 0;
  padding: 36px 0 0 0;
}

.tilematch-faq {
  margin: 0 0 48px 0;
  padding: 36px 0 0 0;
}

.tilematch-faq-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.tilematch-faq-item {
  background: var(--color-bg-card);
  background-image: var(--color-bg-card-gradient);
  border-radius: var(--radius-md);
  box-shadow: var(--color-shadow);
  padding: 18px 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.tilematch-faq-item:hover {
  box-shadow: var(--color-shadow-hover);
  transform: translateY(-2px) scale(1.015);
}

.tilematch-faq-q {
  font-size: 1.01rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 6px 0;
}

.tilematch-faq-a {
  color: var(--color-text-muted);
  margin: 0;
}

.tilematch-testimonials {
  margin: 0 0 48px 0;
  padding: 36px 0 0 0;
}

.tilematch-quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.tilematch-quote {
  background: var(--color-bg-card);
  background-image: var(--color-bg-card-gradient);
  border-radius: var(--radius-lg);
  box-shadow: var(--color-shadow);
  padding: 22px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.tilematch-quote::before {
  content: '“';
  font-size: 2.6rem;
  color: var(--color-accent);
  position: absolute;
  left: 14px;
  top: 0;
  opacity: 0.15;
  font-weight: 800;
  pointer-events: none;
}

.tilematch-quote-text {
  font-size: 1.04em;
  color: var(--color-text);
  margin: 0 0 8px 0;
  line-height: 1.5;
}

.tilematch-quote-author {
  font-size: 0.97em;
  color: var(--color-text-muted);
  font-style: normal;
  font-weight: 500;
}

.tilematch-download {
  margin: 0 0 48px 0;
  padding: 36px 0 0 0;
}
.tilematch-cta {
  display: flex;
  gap: 18px;
  margin-top: 18px;
}

.tilematch-footer {
  background: var(--color-bg-card);
  background-image: var(--color-bg-card-gradient);
  box-shadow: 0 -2px 16px 0 rgba(60,120,180,0.07);
  border-top: 1px solid var(--color-border);
  padding: 0;
}

.tilematch-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 38px 24px 28px 24px;
  display: flex;
  gap: 36px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.tilematch-footer-column {
  flex: 1 1 220px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tilematch-footer-title {
  font-size: 1.01rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}

.tilematch-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tilematch-footer-link {
  color: var(--color-text-muted);
  transition: color var(--transition);
  font-size: 0.98em;
  text-decoration: none;
}
.tilematch-footer-link:hover, .tilematch-footer-link:focus {
  color: var(--color-accent-hover);
}

.tilematch-footer-text {
  color: var(--color-text-muted);
  font-size: 0.98em;
  margin: 0 0 10px 0;
}
.tilematch-footer-rights {
  color: var(--color-text-muted);
  font-size: 0.95em;
  margin: 0;
  opacity: 0.7;
}

/* Remove default list markers for custom lists */
ul, ol {
  margin: 0 0 12px 0;
  padding-left: 20px;
}
ul.tilematch-list,
.tilematch-footer-list,
.tilematch-nav-list {
  list-style: none;
  padding-left: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .tilematch-header-inner,
  .tilematch-footer-inner {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    padding: 14px 14px;
  }
  .tilematch-hero-inner {
    flex-direction: column;
    gap: 32px;
    padding: 36px 14px 0 14px;
  }
  .tilematch-hero-right {
    justify-content: flex-start;
  }
  .tilematch-hero-cards {
    flex-direction: row;
    gap: 16px;
  }
  .tilematch-card,
  .tilematch-card-overlap {
    min-width: 160px;
    max-width: 220px;
    margin: 0;
  }
  .tilematch-card-img {
    height: 110px;
  }
  .tilematch-card-caption {
    padding: 10px 10px;
  }
  .tilematch-grid,
  .tilematch-grid-2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .tilematch-figure-img {
    height: 140px;
    max-height: 140px;
  }
  .tilematch-figure-caption {
    padding: 8px 10px;
  }
  .tilematch-cards,
  .tilematch-screens-grid,
  .tilematch-faq-list,
  .tilematch-quotes {
    grid-template-columns: 1fr 1fr;
  }
  .tilematch-footer-inner {
    padding: 28px 14px 18px 14px;
  }
}

@media (max-width: 700px) {
  .tilematch-header-inner,
  .tilematch-footer-inner {
    flex-direction: column;
    gap: 10px;
    padding: 10px 6px;
  }
  .tilematch-hero-inner {
    flex-direction: column;
    gap: 22px;
    padding: 24px 6px 0 6px;
  }
  .tilematch-hero-left {
    gap: 16px;
  }
  .tilematch-hero-title {
    font-size: 1.25rem;
  }
  .tilematch-hero-stats {
    gap: 10px 8px;
  }
  .tilematch-hero-cta,
  .tilematch-cta {
    flex-direction: column;
    gap: 10px;
  }
  .tilematch-card,
  .tilematch-card-overlap {
    min-width: 120px;
    max-width: 100%;
    margin: 0;
  }
  .tilematch-card-img {
    height: 80px;
  }
  .tilematch-card-caption {
    padding: 8px 6px;
  }
  .tilematch-grid,
  .tilematch-grid-2 {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .tilematch-cards,
  .tilematch-screens-grid,
  .tilematch-faq-list,
  .tilematch-quotes {
    grid-template-columns: 1fr;
  }
  .tilematch-figure-img {
    height: 80px;
    max-height: 80px;
  }
  .tilematch-figure-caption {
    padding: 6px 6px;
  }
  .tilematch-block,
  .tilematch-entities,
  .tilematch-quicksteps,
  .tilematch-feature-card,
  .tilematch-faq-item,
  .tilematch-quote {
    padding: 12px 8px;
    border-radius: var(--radius-xs);
  }
  .tilematch-footer-inner {
    padding: 18px 6px 10px 6px;
    gap: 8px;
  }
  .tilematch-footer-column {
    gap: 8px;
  }
  .tilematch-section-title {
    font-size: 1.1rem;
    margin-bottom: 18px;
  }
}

/* Hide scrollbars for cards on mobile if overflowing */
@media (max-width: 700px) {
  .tilematch-hero-cards {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
}