/* =============================================
   Y1 Game – Home Page (Article Layout)
   ============================================= */

/* -------- Hero -------- */
.home-hero {
  background: transparent;
  border-bottom: 1px solid var(--border);
  padding: 64px 0 48px;
  text-align: center;
}

.home-hero .container {
  max-width: 900px;
}

.home-hero-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.home-logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  border: 2px solid var(--border-lt);
  box-shadow: 0 6px 28px rgba(0,0,0,.45);
}

.home-logo-name {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.2px;
}

.home-h1 {
  font-size: clamp(1.85rem, 5.5vw, 2.75rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -.5px;
  max-width: 820px;
  margin: 0 auto 32px;
  padding: 0 8px;
}

.home-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  width: 100%;
}

.home-hero-actions .btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  min-width: 220px;
}

.home-hero-actions .btn-lg svg {
  width: 22px;
  height: 22px;
}

.home-intro {
  color: var(--text-muted);
  font-size: .97rem;
  line-height: 1.78;
  max-width: 780px;
  margin: 0 auto 14px;
  text-align: left;
}

/* -------- Screenshots (full viewport width) -------- */
.home-screenshots {
  width: 100vw;
  max-width: 100vw;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.home-shot {
  width: 100vw;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  border: none;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}
.home-shot:last-child { border-bottom: none; }

.home-shot img {
  width: 100vw;
  max-width: 100vw;
  height: auto;
  display: block;
  object-fit: cover;
}

/* -------- Article body -------- */
.home-article {
  padding: 56px 0 20px;
}

.home-content {
  max-width: 820px;
  margin: 0 auto;
}

/* Headings */
.home-content h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 800;
  color: var(--white);
  margin: 48px 0 14px;
  letter-spacing: -.25px;
  line-height: 1.25;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.home-content h2:first-child { margin-top: 0; }

.home-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--amber-lt);
  margin: 28px 0 10px;
  letter-spacing: -.1px;
}

/* Paragraphs */
.home-content p {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.78;
  margin-bottom: 14px;
}
.home-content p a {
  color: var(--amber-lt);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home-content p a:hover { color: var(--amber); }

/* -------- Steps (ordered) -------- */
.home-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  counter-reset: steps;
}
.home-steps li {
  counter-increment: steps;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-bottom: none;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.55;
  position: relative;
}
.home-steps li:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.home-steps li:last-child  { border-bottom: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); }
.home-steps li::before {
  content: counter(steps);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: rgba(201,149,46,.12);
  border: 1px solid rgba(201,149,46,.25);
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 800;
  color: var(--amber-lt);
  margin-top: 1px;
}

/* -------- Bullet list -------- */
.home-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.home-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .93rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.home-list li:first-child { padding-top: 0; }
.home-list li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  margin-top: 8px;
}

/* -------- Download CTA inline -------- */
.home-dl-cta {
  margin: 28px 0 36px;
  display: flex;
  justify-content: center;
}

/* -------- Section image -------- */
.home-section-img {
  margin: 32px 0 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  max-width: 340px;
}
.home-section-img img { width: 100%; display: block; }

/* -------- Pros & Cons -------- */
.home-proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 18px;
}

.home-pros,
.home-cons {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
}
.home-pros { border-top: 3px solid #2bc96e; }
.home-cons { border-top: 3px solid #e06060; }

.home-pros h3 {
  color: #2bc96e;
  margin: 0 0 16px;
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.home-cons h3 {
  color: #e06060;
  margin: 0 0 16px;
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.home-pros ul,
.home-cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.home-pros ul li,
.home-cons ul li {
  font-size: .88rem;
  color: var(--text-muted);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.home-pros ul li:last-child,
.home-cons ul li:last-child { border-bottom: none; }
.home-pros ul li::before {
  content: '✓';
  color: #2bc96e;
  font-weight: 700;
  flex-shrink: 0;
  font-size: .85rem;
}
.home-cons ul li::before {
  content: '✕';
  color: #e06060;
  font-weight: 700;
  flex-shrink: 0;
  font-size: .85rem;
}

/* -------- Notice / Disclaimer / Author -------- */
.home-notice {
  background: rgba(201,149,46,.06);
  border: 1px solid rgba(201,149,46,.18);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 36px 0 0;
}
.home-notice h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: var(--amber-lt);
}
.home-notice p { margin-bottom: 0; }

.home-disclaimer {
  background: rgba(239,68,68,.05);
  border: 1px solid rgba(239,68,68,.15);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 14px;
}
.home-disclaimer h3 {
  color: #e06060;
  margin: 0 0 8px;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.home-disclaimer p { margin-bottom: 0; font-size: .88rem; }

.home-author {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 14px;
  margin-bottom: 48px;
}
.home-author h3 {
  color: var(--white);
  margin: 0 0 8px;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.home-author p { margin-bottom: 0; font-size: .88rem; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-page-hero {
  min-height: calc(100vh - 66px);
  display: flex;
  align-items: center;
  padding: 60px 0 80px;
  background: transparent;
  position: relative;
  overflow: hidden;
}
.about-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 400px at 50% 40%, rgba(201,149,46,.05) 0%, transparent 65%),
    radial-gradient(ellipse 500px 350px at 100% 100%, rgba(180, 35, 35, .1) 0%, transparent 60%);
  pointer-events: none;
}

.about-page-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  max-width: 680px;
  margin: 0 auto;
}

.about-logo-wrap {
  padding: 16px;
  background: var(--bg-2);
  border: 1px solid var(--border-lt);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.about-big-logo {
  width: 96px;
  height: 96px;
  display: block;
  border-radius: 16px;
}

.about-page-h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -.4px;
  line-height: 1.2;
  margin: 0;
}

.about-page-body {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  text-align: left;
}
.about-page-body p {
  color: var(--text-muted);
  font-size: .97rem;
  line-height: 1.78;
  margin-bottom: 14px;
}
.about-page-body p:last-child { margin-bottom: 0; }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 88px;
  right: 20px;
  z-index: 9998;
  width: 42px;
  height: 42px;
  background: var(--bg-2);
  border: 1px solid var(--border-lt);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, background .2s ease, transform .2s ease;
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-top:hover {
  background: var(--bg-3);
  border-color: var(--amber);
  transform: translateY(-2px);
}
.scroll-top svg {
  width: 18px;
  height: 18px;
  color: var(--amber);
}

@media (max-width: 480px) {
  .scroll-top { bottom: 84px; right: 14px; }
}

/* -------- Responsive -------- */
@media (max-width: 768px) {
  .home-hero {
    padding: 48px 0 40px;
    width: 100vw;
    max-width: 100vw;
  }

  .home-hero .container {
    width: 100%;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  .home-hero-top {
    gap: 16px;
    margin-bottom: 32px;
  }

  .home-logo {
    width: 110px;
    height: 110px;
    border-radius: 24px;
  }

  .home-logo-name {
    font-size: 1.65rem;
  }

  .home-h1 {
    font-size: clamp(1.75rem, 6.5vw, 2.2rem);
    margin-bottom: 36px;
    padding: 0 4px;
  }

  .home-intro   { font-size: .9rem; text-align: center; }

  .home-hero-actions {
    margin-bottom: 36px;
    padding: 0 4px;
  }

  .home-hero-actions .btn-lg {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 20px 28px;
    font-size: 1.15rem;
  }

  .home-hero-actions .btn-lg svg {
    width: 24px;
    height: 24px;
  }

  .home-screenshots { margin-top: 28px; }

  .home-proscons { grid-template-columns: 1fr; gap: 12px; }

  .home-content h2 { font-size: 1.2rem; margin-top: 36px; }

  .home-section-img { max-width: 100%; }
}

@media (max-width: 480px) {
  .home-hero { padding: 44px 0 36px; }

  .home-logo {
    width: 120px;
    height: 120px;
  }

  .home-logo-name { font-size: 1.75rem; }

  .home-h1 { font-size: 1.85rem; }

  .home-hero-actions .btn-lg {
    padding: 10px 28px;
    font-size: 1.2rem;
  }
}
