@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@400;500;600;700;800&display=swap');

/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
  --nyt-black:   #121212;
  --nyt-white:   #ffffff;
  --nyt-gray:    #5a5a5a;
  --nyt-border:  #e0e0e0;
  --nyt-surface: #f7f7f7;
  --nyt-green:   #6aaa64;
  --nyt-yellow:  #c9b458;
  --nyt-gray-tile: #787c7e;
  --nyt-max:     680px;
  --nyt-font:    'Libre Franklin', 'Nunito', sans-serif;
}

body.dark {
  --nyt-black:   #ffffff;
  --nyt-white:   #121212;
  --nyt-gray:    #a0a0a0;
  --nyt-border:  #2e2e2e;
  --nyt-surface: #1e1e1e;
}

/* ============================================================
   BODY & BASE
   ============================================================ */
body {
  background: var(--nyt-white);
  color: var(--nyt-black);
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   HEADER — tighten up the game header
   ============================================================ */
.App-header {
  border-bottom: 1px solid var(--nyt-border) !important;
}
body.dark .App-header {
  border-bottom-color: var(--nyt-border) !important;
}

/* ============================================================
   PAGE CONTENT WRAPPER
   ============================================================ */
.nyt-page {
  max-width: var(--nyt-max);
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.nyt-section {
  border-top: 1px solid var(--nyt-border);
  padding: 28px 0;
}

.nyt-section-label {
  font-family: var(--nyt-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nyt-gray);
  margin: 0 0 16px;
}

.nyt-section-title {
  font-family: var(--nyt-font);
  font-size: 20px;
  font-weight: 800;
  color: var(--nyt-black);
  margin: 0 0 16px;
  line-height: 1.2;
}

/* ============================================================
   ABOUT / INTRO
   ============================================================ */
.nyt-page-h1 {
  font-family: var(--nyt-font);
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--nyt-black);
  margin: 0 0 12px !important;
  line-height: 1.25;
}

.nyt-about-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--nyt-gray);
  margin: 0;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.nyt-stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
}

.nyt-stat {
  text-align: center;
  min-width: 60px;
}

.nyt-stat-number {
  font-family: var(--nyt-font);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  color: var(--nyt-black);
}

.nyt-stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--nyt-gray);
  margin-top: 6px;
}

/* ============================================================
   HOW TO PLAY
   ============================================================ */
.nyt-howto-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.nyt-howto-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.nyt-step-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--nyt-black);
  color: var(--nyt-white);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
  font-family: var(--nyt-font);
}

.nyt-step-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--nyt-gray);
  margin: 0;
}

/* ============================================================
   COLOR GUIDE
   ============================================================ */
.nyt-color-guide {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 4px;
}

.nyt-color-tile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nyt-tile-box {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  font-family: var(--nyt-font);
  flex-shrink: 0;
}

.nyt-tile-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--nyt-black);
  line-height: 1.2;
}

.nyt-tile-desc {
  font-size: 12px;
  color: var(--nyt-gray);
  margin-top: 2px;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.nyt-faq-list {
  padding: 0;
  margin: 0;
}

.nyt-faq-item {
  border-bottom: 1px solid var(--nyt-border);
}

.nyt-faq-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--nyt-black);
  font-family: var(--nyt-font);
  gap: 16px;
  line-height: 1.4;
}

.nyt-faq-btn:hover {
  color: var(--nyt-gray);
}

.nyt-faq-icon {
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  color: var(--nyt-gray);
  transition: transform 0.2s;
}

.nyt-faq-item.open .nyt-faq-icon {
  transform: rotate(45deg);
}

.nyt-faq-answer {
  font-size: 14px;
  line-height: 1.75;
  color: var(--nyt-gray);
  padding-bottom: 16px;
  display: none;
  max-width: 600px;
}

.nyt-faq-item.open .nyt-faq-answer {
  display: block;
}

/* ============================================================
   SHARE SECTION
   ============================================================ */
.nyt-share {
  text-align: center;
}

.nyt-share-heading {
  font-family: var(--nyt-font);
  font-size: 18px;
  font-weight: 800;
  color: var(--nyt-black);
  margin: 0 0 8px;
}

.nyt-share-text {
  font-size: 14px;
  color: var(--nyt-gray);
  margin: 0 0 20px;
  line-height: 1.6;
}

/* ============================================================
   GAMES GRID
   ============================================================ */
.nyt-games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (max-width: 560px) {
  .nyt-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.nyt-game-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--nyt-border);
  border-radius: 8px;
  text-decoration: none !important;
  color: var(--nyt-black) !important;
  background: var(--nyt-white);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.nyt-game-card:hover {
  border-color: #999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

body.dark .nyt-game-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.nyt-game-card img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
}

.nyt-card-title {
  font-size: 13px;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
  color: var(--nyt-black);
  font-family: var(--nyt-font);
}

.nyt-card-sub {
  font-size: 11px;
  color: var(--nyt-gray);
  line-height: 1.3;
}

.nyt-more-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--nyt-black) !important;
  text-decoration: none !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--nyt-font);
}

.nyt-more-link:hover {
  text-decoration: underline !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.nyt-footer {
  border-top: 1px solid var(--nyt-border);
  padding: 20px 16px;
  margin-top: 16px;
}

.nyt-footer-inner {
  max-width: var(--nyt-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.nyt-footer-brand {
  font-size: 14px;
  font-weight: 800;
  color: var(--nyt-black);
  font-family: var(--nyt-font);
  letter-spacing: 0.02em;
  text-decoration: none !important;
}

.nyt-footer-brand:hover {
  color: var(--nyt-gray) !important;
}

.nyt-footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.nyt-footer-links a {
  font-size: 12px;
  color: var(--nyt-gray) !important;
  text-decoration: none !important;
}

.nyt-footer-links a:hover {
  color: var(--nyt-black) !important;
}

/* ============================================================
   EZOIC AD SPACER
   ============================================================ */
[id^="ezoic-pub-ad-placeholder"] {
  margin: 8px 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
  .nyt-stat-number { font-size: 28px; }
  .nyt-color-guide { gap: 14px; }
  .nyt-footer-inner { flex-direction: column; align-items: flex-start; }
}
