/*
Theme Name: Y71 Games People First
Theme URI: https://y71games.com/
Author: Y71 Games
Author URI: https://y71games.com/
Description: A fast, mobile-first WordPress theme for the Y71 Games information website.
Version: 2.0.0
Requires at least: 6.3
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: y71games
*/

:root {
  --y71-green: #f1c24d;
  --y71-green-dark: #a96800;
  --y71-ink: #1a0c08;
  --y71-panel: #170706;
  --y71-muted: #71635d;
  --y71-line: #eadbc7;
  --y71-soft: #fff8eb;
  --y71-white: #ffffff;
  --y71-shadow: 0 18px 48px rgba(50, 12, 7, 0.12);
  --y71-radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--y71-ink);
  background: #f5f8f7;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

a { color: #8b3f16; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--y71-green-dark); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { top: 10px; left: 10px; width: auto; height: auto; padding: 10px 14px; clip: auto; color: #000; background: var(--y71-green); z-index: 9999; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: #fff;
  background: rgba(20, 5, 4, 0.98);
  border-bottom: 3px solid var(--y71-green);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-branding { display: flex; align-items: center; min-width: max-content; }
.custom-logo-link { display: flex; }
.custom-logo { max-height: 46px; width: auto; }
.brand-link { color: #fff; text-decoration: none; line-height: 1; }
.brand-name { display: block; font-size: 1.35rem; font-weight: 900; letter-spacing: 0.06em; }
.brand-name span { color: var(--y71-green); }
.brand-domain { display: block; margin-top: 5px; color: #d9c6b5; font-size: 0.73rem; font-weight: 650; letter-spacing: 0.08em; }

.menu-toggle {
  display: none;
  padding: 9px 12px;
  color: #fff;
  background: transparent;
  border: 1px solid #385048;
  border-radius: 8px;
  cursor: pointer;
}

.primary-nav ul { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: block; padding: 11px 10px; color: #fff9ed; font-size: 0.91rem; font-weight: 700; text-decoration: none; border-radius: 8px; }
.primary-nav a:hover, .primary-nav a:focus { color: #1b0904; background: var(--y71-green); }

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 10%, rgba(241, 194, 77, 0.2), transparent 33%),
    linear-gradient(145deg, #180504 0%, #340907 55%, #120403 100%);
}

.hero::after {
  content: "Y71";
  position: absolute;
  right: -18px;
  bottom: -90px;
  color: rgba(241, 194, 77, 0.055);
  font-size: clamp(9rem, 24vw, 21rem);
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; width: min(940px, calc(100% - 32px)); margin: 0 auto; padding: 76px 0 54px; text-align: center; }
.hero-featured-image { width: 118px; height: 118px; margin: 0 auto 20px; padding: 6px; background: linear-gradient(145deg, #fff6a6, #d79818); border-radius: 26px; box-shadow: 0 16px 46px rgba(0, 0, 0, 0.38); }
.hero-featured-image img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 21px; }
.eyebrow { display: inline-flex; margin: 0 0 14px; padding: 6px 12px; color: var(--y71-green); border: 1px solid rgba(34, 223, 166, 0.5); border-radius: 999px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.hero h1 { max-width: 900px; margin: 0 auto; font-size: clamp(2.15rem, 5.2vw, 4.25rem); line-height: 1.08; letter-spacing: -0.045em; }
.hero-intro { max-width: 720px; margin: 20px auto 0; color: #eaded4; font-size: 1.08rem; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 720px; margin: 32px auto 0; border: 1px solid #64402e; border-radius: 12px; background: rgba(255,255,255,0.035); }
.hero-fact { padding: 14px 18px; }
.hero-fact + .hero-fact { border-left: 1px solid #64402e; }
.hero-fact strong { display: block; color: var(--y71-green); font-size: 1.02rem; }
.hero-fact span { display: block; color: #d8c6b8; font-size: 0.78rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 21px;
  color: #1a0904;
  background: var(--y71-green);
  border: 1px solid var(--y71-green);
  border-radius: 9px;
  box-shadow: 0 8px 28px rgba(241, 194, 77, 0.18);
  font-weight: 850;
  text-decoration: none;
}
.button:hover, .button:focus { color: #1a0904; background: #ffda70; transform: translateY(-1px); }
.button-secondary { color: #fff; background: transparent; border-color: #8a5d3c; box-shadow: none; }
.button-secondary:hover, .button-secondary:focus { color: #fff; background: #3a100b; }

.page-shell { width: min(1080px, calc(100% - 32px)); margin: -1px auto 56px; }
.toc-card { position: relative; z-index: 3; margin-top: 34px; padding: 20px 24px; background: #fff; border: 1px solid var(--y71-line); border-top: 4px solid var(--y71-green); border-radius: var(--y71-radius); box-shadow: var(--y71-shadow); }
.toc-card summary { cursor: pointer; font-size: 1.08rem; font-weight: 850; }
.toc-card ul { columns: 2; gap: 40px; margin: 16px 0 0; padding-left: 20px; }
.toc-card li { margin-bottom: 6px; break-inside: avoid; }
.toc-card a { color: #26342f; font-weight: 650; text-decoration: none; }
.toc-card a:hover { color: var(--y71-green-dark); }

.article-card { margin-top: 26px; padding: clamp(24px, 4vw, 48px); background: #fff; border: 1px solid var(--y71-line); border-radius: var(--y71-radius); box-shadow: var(--y71-shadow); }
.article-card > *:first-child { margin-top: 0; }
.article-card h2 { margin: 52px -48px 24px; padding: 16px 48px 15px; color: #fff; background: var(--y71-panel); border-left: 6px solid var(--y71-green); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.25; }
.article-card h3 { margin-top: 32px; font-size: 1.25rem; line-height: 1.35; }
.article-card p, .article-card li { color: #293630; }
.article-card ul, .article-card ol { padding-left: 24px; }
.article-card li { margin-bottom: 9px; }
.article-card strong { color: #1a0c08; }

.y71-notice { margin: 24px 0; padding: 18px 20px; background: #fff8e8; border-left: 5px solid #f0b43c; border-radius: 8px; }
.y71-note { margin: 24px 0; padding: 18px 20px; background: var(--y71-soft); border-left: 5px solid var(--y71-green); border-radius: 8px; }
.y71-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 22px 0; }
.y71-feature { padding: 20px; background: var(--y71-soft); border: 1px solid #efcf8a; border-radius: 10px; }
.y71-feature h3 { margin: 0 0 6px; }
.y71-feature p { margin: 0; }

.y71-gallery-note { margin-bottom: 16px; color: var(--y71-muted) !important; font-size: 0.94rem; }
.y71-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0 28px; }
.y71-gallery-item { margin: 0; overflow: hidden; background: #180504; border: 1px solid #e3bd61; border-radius: 12px; box-shadow: 0 10px 28px rgba(50, 12, 7, 0.12); }
.y71-gallery-item img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: #180504; }
.y71-gallery-item figcaption { min-height: 64px; padding: 10px 11px; color: #fff8e8; background: #180504; font-size: 0.78rem; font-weight: 700; line-height: 1.35; text-align: center; }

.article-card table { width: 100%; margin: 22px 0; border-collapse: collapse; font-size: 0.96rem; }
.article-card th, .article-card td { padding: 13px 15px; border: 1px solid var(--y71-line); text-align: left; vertical-align: top; }
.article-card th { color: #fff; background: #2a0b08; }
.article-card tr:nth-child(even) td { background: #f5faf8; }

.step-list { counter-reset: y71-step; padding: 0 !important; list-style: none; }
.step-list li { position: relative; min-height: 42px; padding: 7px 0 12px 52px; }
.step-list li::before { counter-increment: y71-step; content: counter(y71-step); position: absolute; top: 3px; left: 0; display: grid; width: 36px; height: 36px; place-items: center; color: #1a0904; background: var(--y71-green); border-radius: 50%; font-weight: 900; }

.faq-list details { margin: 12px 0; padding: 0 18px; border: 1px solid var(--y71-line); border-radius: 9px; background: #fff; }
.faq-list summary { padding: 15px 0; cursor: pointer; font-weight: 800; }
.faq-list details p { margin-top: 0; }

.basic-page { width: min(880px, calc(100% - 32px)); margin: 46px auto; padding: clamp(24px, 4vw, 46px); background: #fff; border: 1px solid var(--y71-line); border-radius: var(--y71-radius); }
.basic-page h1 { margin-top: 0; line-height: 1.2; }
.post-list article { padding: 24px 0; border-bottom: 1px solid var(--y71-line); }
.archive-intro { margin-top: -8px; color: var(--y71-muted); }
.post-meta { margin: -8px 0 28px; color: var(--y71-muted) !important; font-size: 0.85rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; color: var(--y71-muted); font-size: 0.82rem; }
.breadcrumbs a { color: #8b3f16; text-decoration: none; }
.basic-page > article > h2, .basic-page .entry-content h2 { margin-top: 42px; line-height: 1.3; }
.basic-page table { width: 100%; margin: 22px 0; border-collapse: collapse; }
.basic-page th, .basic-page td { padding: 12px 14px; border: 1px solid var(--y71-line); text-align: left; vertical-align: top; }
.basic-page th { color: #fff; background: var(--y71-panel); }
.basic-page tr:nth-child(even) td { background: #f5faf8; }
.basic-page .y71-note, .basic-page .y71-notice { padding: 18px 20px; border-left: 5px solid var(--y71-green); border-radius: 8px; background: var(--y71-soft); }
.basic-page .y71-notice { border-left-color: #f0b43c; background: #fff8e8; }
.basic-page .step-list { counter-reset: y71-step; padding: 0; list-style: none; }
.basic-page .step-list li { position: relative; min-height: 42px; padding: 7px 0 12px 52px; }
.basic-page .step-list li::before { counter-increment: y71-step; content: counter(y71-step); position: absolute; top: 3px; left: 0; display: grid; width: 36px; height: 36px; place-items: center; color: #1a0904; background: var(--y71-green); border-radius: 50%; font-weight: 900; }

.guides-section { margin-top: 42px; padding: clamp(28px, 5vw, 48px); color: #fff; background: var(--y71-panel); border-radius: var(--y71-radius); box-shadow: var(--y71-shadow); }
.section-heading { max-width: 680px; margin-bottom: 28px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.2; }
.section-heading > p:last-child { margin-bottom: 0; color: #d8c5b8; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.guide-card { padding: 22px; color: var(--y71-ink); background: #fff; border: 1px solid #5b3021; border-radius: 10px; }
.guide-card-thumbnail { float: right; width: 70px; height: 70px; margin: 0 0 12px 14px; padding: 3px; background: #f3cf5f; border-radius: 15px; }
.guide-card-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.guide-card .card-label { margin: 0 0 8px; color: var(--y71-green-dark); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.09em; }
.guide-card h3 { margin: 0 0 10px; font-size: 1.2rem; line-height: 1.35; }
.guide-card h3 a { color: var(--y71-ink); text-decoration: none; }
.guide-card p { margin: 0 0 14px; color: var(--y71-muted); font-size: 0.92rem; }
.guide-card .card-link { font-weight: 800; text-decoration: none; }
.related-posts { margin-top: 42px; padding: 22px; background: var(--y71-soft); border-radius: 10px; }
.related-posts h2 { margin-top: 0; }
.related-posts li { margin-bottom: 8px; }
.post-featured-image { max-width: 240px; margin: 0 auto 30px; padding: 7px; background: linear-gradient(145deg, #fff6a6, #d79818); border-radius: 28px; box-shadow: var(--y71-shadow); }
.post-featured-image img { display: block; width: 100%; height: auto; border-radius: 22px; }
.post-list .archive-thumbnail { float: right; width: 92px; margin: 0 0 12px 18px; border-radius: 18px; overflow: hidden; }
.post-list .archive-thumbnail img { display: block; width: 100%; height: auto; }
.related-policy-links { margin-top: 42px; padding: 20px 22px; background: var(--y71-soft); border: 1px solid #efcf8a; border-radius: 10px; }
.related-policy-links h2 { margin-top: 0 !important; font-size: 1.3rem; }
.related-policy-links ul { margin-bottom: 0; }
.related-policy-links li { margin-bottom: 7px; }
.html-sitemap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.html-sitemap h2 { grid-column: auto; }

.site-footer { color: #d5c7bd; background: #120403; border-top: 3px solid var(--y71-green); }
.footer-inner { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.site-footer p { margin: 0; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { color: #f4e7d6; text-decoration: none; }
.footer-nav a:hover { color: var(--y71-green); }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav { position: absolute; top: calc(100% + 3px); right: 16px; left: 16px; display: none; padding: 10px; background: #170605; border: 1px solid #603626; border-radius: 10px; box-shadow: var(--y71-shadow); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav a { padding: 12px; }
  .article-card h2 { margin-right: -24px; margin-left: -24px; padding-right: 24px; padding-left: 24px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .header-inner { width: min(100% - 24px, 1180px); min-height: 64px; }
  .brand-domain { display: none; }
  .hero-inner { padding: 54px 0 42px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-fact + .hero-fact { border-top: 1px solid #64402e; border-left: 0; }
  .hero-actions .button { width: 100%; }
  .toc-card { padding: 17px 19px; }
  .toc-card ul { columns: 1; }
  .article-card { padding: 24px; }
  .article-card h2 { margin-top: 40px; }
  .y71-grid { grid-template-columns: 1fr; }
  .y71-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .y71-gallery-item figcaption { min-height: 58px; padding: 9px 7px; font-size: 0.74rem; }
  .guide-grid, .html-sitemap { grid-template-columns: 1fr; }
  .article-card table { display: block; overflow-x: auto; white-space: nowrap; }
  .footer-inner { display: block; text-align: center; }
  .footer-nav { justify-content: center; margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
