/* Honor Games — shared stylesheet */

:root {
  --bg: #fdf6ec;
  --card: #ffffff;
  --ink: #2b2b33;
  --ink-soft: #6b6b76;
  --accent: #ff7a59;
  --accent-dark: #e2603f;
  --outline: #2b2b33;
  --sky: #eaf4ff;
  --mint: #e3f7ea;
  --mint-dark: #57b980;
  --lilac: #f2e9fb;
  --lilac-dark: #9c6fd1;
  --red-tile: #ff6b6a;
  --blue-tile: #7cc6f0;
  --green-tile: #6fcf97;
  --purple-tile: #b98fe0;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-pop: 6px 6px 0 var(--outline);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

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

a {
  color: var(--accent-dark);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

header.site-header {
  background: var(--card);
  border-bottom: 3px solid var(--outline);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.logo {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--accent);
}

.logo .logo-badge {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--red-tile);
  border: 2px solid var(--outline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff9f0;
  font-weight: 800;
  font-size: 0.95rem;
}

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

nav.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  margin-left: 20px;
}

nav.site-nav a.active {
  color: var(--accent-dark);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 2px solid var(--outline);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Hero */

.hero {
  padding: 56px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 40%;
  opacity: 0.55;
  z-index: 0;
  filter: blur(1px);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
}

.hero h1 span {
  color: var(--accent-dark);
}

.hero p {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 3px solid var(--outline);
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-pop);
  background: var(--card);
  color: var(--ink);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--outline);
}

.btn:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 var(--outline);
}

.btn-primary {
  background: var(--accent);
  color: #fff9f0;
}

.btn-store {
  background: var(--ink);
  color: #fff9f0;
}

.btn-outline {
  background: var(--card);
}

.btn-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

/* Games grid / section */

.section {
  padding: 20px 0 60px;
}

.section-title {
  text-align: center;
  margin-bottom: 8px;
  font-size: 1.7rem;
}

.section-subtitle {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 36px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.game-card {
  background: var(--card);
  border: 3px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 26px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  box-shadow: var(--shadow-pop);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.game-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 var(--outline);
}

.game-card-icon {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  border: 3px solid var(--outline);
  margin: 0 auto 18px;
  overflow: hidden;
}

.game-card h3 {
  text-align: center;
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.game-card p {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0 0 16px;
}

.game-card .tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  display: inline-block;
  background: var(--sky);
  border: 2px solid var(--outline);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.pill.mint {
  background: var(--mint);
}

.pill.lilac {
  background: var(--lilac);
}

.game-card-cta {
  text-align: center;
  font-weight: 700;
  color: var(--accent-dark);
  margin-top: 4px;
}

.coming-soon-card {
  border-style: dashed;
  opacity: 0.85;
}

/* Cards used by legal / content pages */

.card {
  background: var(--card);
  border: 3px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 28px 30px;
  margin-bottom: 24px;
}

.card h2 {
  font-size: 1.25rem;
  margin-top: 0;
  color: var(--accent-dark);
}

.card h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.card ul {
  padding-left: 22px;
}

.card li {
  margin-bottom: 6px;
}

main.page {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

main.page h1 {
  font-size: 2rem;
  margin-bottom: 4px;
}

.updated {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

/* Game detail page */

.game-hero {
  padding: 48px 0 20px;
}

.game-hero-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.game-hero-icon {
  width: 128px;
  height: 128px;
  border-radius: 26px;
  border: 4px solid var(--outline);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  flex-shrink: 0;
}

.game-hero-text h1 {
  margin: 0 0 6px;
  font-size: 2.1rem;
}

.game-hero-text p.tagline {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0 0 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.feature-card {
  background: var(--card);
  border: 3px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 20px;
}

.feature-card .emoji {
  font-size: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid var(--outline);
  margin-bottom: 10px;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.tile-preview {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 30px 0;
  flex-wrap: wrap;
}

.tile-preview .tile {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 3px solid var(--outline);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff9f0;
}

/* FAQ */

.faq-item {
  border: 3px solid var(--outline);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--card);
}

.faq-question {
  padding: 18px 22px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question .icon {
  transition: transform 0.2s ease;
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  color: var(--ink-soft);
}

.faq-item.active .faq-answer {
  padding: 0 22px 18px;
  max-height: 240px;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.contact-card {
  background: var(--card);
  border: 3px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.contact-card .emoji {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

/* Footer */

footer.site-footer {
  border-top: 3px solid var(--outline);
  background: var(--card);
  padding: 50px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  margin-bottom: 30px;
}

.footer-grid h4 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink-soft);
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 10px;
}

.footer-grid a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: var(--accent-dark);
}

.footer-bottom {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  border-top: 2px solid #eee0cf;
  padding-top: 24px;
}

.footer-bottom a {
  color: var(--ink-soft);
}

@media (max-width: 720px) {
  nav.site-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 3px solid var(--outline);
    padding: 10px 20px 20px;
  }

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

  nav.site-nav a {
    margin: 10px 0 0;
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .game-hero-inner {
    text-align: center;
    justify-content: center;
  }
}
