@import url('https://fonts.googleapis.com/css2?family=nyt-cheltenham:wght@300;400;500;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bg: #ffffff;
  --bg-alt: #f7f7f5;
  --bg-dark: #121213;
  --text: #121213;
  --text-secondary: #5a5a5a;
  --text-light: #787878;
  --border: #e0e0e0;
  --border-light: #ebebeb;
  --accent: #326891;
  --accent-hover: #254b6d;
  --green: #6aaa64;
  --yellow: #c9b458;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.2s ease;
  --max-width: 1080px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

.page-transition {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0.7; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.92);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--bg-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.5px;
}

.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}

.nav-link:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.nav-link-active {
  background: var(--bg-dark);
  color: white;
}

.nav-link-active:hover {
  background: var(--bg-dark);
  color: white;
}

/* ============ HERO ============ */
.hero {
  background: linear-gradient(180deg, #f7f7f5 0%, #ffffff 100%);
  padding: 64px 24px 48px;
  text-align: center;
}

.hero-compact {
  padding: 40px 24px 32px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
  color: var(--text);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ============ SEARCH ============ */
.search-box {
  max-width: 640px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  border: 1px solid var(--border-light);
}

.search-input-group {
  position: relative;
  margin-bottom: 8px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-light);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-alt);
  transition: all var(--transition);
  outline: none;
}

.search-input:focus {
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 3px rgba(50, 104, 145, 0.1);
}

.search-input::placeholder {
  color: var(--text-light);
}

.search-filters {
  display: flex;
  gap: 8px;
}

.search-select {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-alt);
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23787878' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.search-select:focus {
  border-color: var(--accent);
}

.search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--bg-dark);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.search-btn:hover {
  background: #2a2a2b;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.search-btn:active {
  transform: translateY(0);
}

/* ============ CONTAINER / SECTION ============ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  margin-bottom: 32px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
}

/* ============ GAME CARDS GRID ============ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

.game-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
  cursor: pointer;
}

.game-card:hover {
  border-color: var(--accent, var(--border));
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.game-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.game-card-body {
  flex: 1;
  min-width: 0;
}

.game-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
  letter-spacing: -0.2px;
}

.game-card-meta {
  font-size: 13px;
  color: var(--text-light);
}

.game-card-arrow {
  width: 20px;
  height: 20px;
  color: var(--text-light);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.game-card:hover .game-card-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

/* ============ CLUES LIST (Trending) ============ */
.clues-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.clue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: white;
  cursor: pointer;
  transition: background var(--transition);
}

.clue-item:hover {
  background: #fafaf8;
}

.clue-text {
  font-size: 15px;
  color: var(--text);
  flex: 1;
  min-width: 0;
}

.clue-answer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.clue-length {
  font-size: 12px;
  color: var(--text-light);
  background: var(--bg-alt);
  padding: 2px 8px;
  border-radius: 10px;
}

.clue-reveal {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  transition: opacity var(--transition);
}

.clue-answer-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 1px;
  display: none;
}

.revealed .clue-reveal {
  display: none;
}

.revealed .clue-answer-text {
  display: inline;
}

/* ============ ABOUT ============ */
.about-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-card {
  padding: 32px 24px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-align: center;
}

.about-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.about-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.about-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============ PAGE HEADER ============ */
.page-header {
  background: linear-gradient(180deg, #f7f7f5 0%, #ffffff 100%);
  padding: 32px 0 40px;
  border-bottom: 1px solid var(--border-light);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--accent);
}

.page-header-content {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}

.page-header-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.page-header-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.page-header-meta {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.page-header-desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 560px;
}

/* ============ DATE GRID ============ */
.date-group {
  margin-bottom: 40px;
}

.date-group-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
}

.dates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}

.date-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}

.date-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.date-card-today {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(50,104,145,0.04) 0%, rgba(50,104,145,0.01) 100%);
}

.date-card-day {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.date-card-num {
  font-size: 22px;
  font-weight: 700;
  margin: 2px 0;
  letter-spacing: -0.5px;
}

.date-card-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(50,104,145,0.1);
  padding: 1px 8px;
  border-radius: 8px;
  margin-top: 4px;
}

/* ============ ANSWERS ============ */
.answers-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.answers-direction {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-dark);
}

.answers-list {
  display: flex;
  flex-direction: column;
}

.answer-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background var(--transition);
  align-items: flex-start;
}

.answer-item:hover {
  background: rgba(0,0,0,0.01);
}

.answer-number {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-light);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.answer-body {
  flex: 1;
}

.answer-clue {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}

.answer-value {
  display: flex;
  align-items: center;
  gap: 8px;
}

.answer-item .clue-reveal {
  font-size: 13px;
}

.answer-item .clue-answer-text {
  font-size: 15px;
  letter-spacing: 2px;
}

.answer-item.revealed .clue-reveal {
  display: none;
}

.answer-item.revealed .clue-answer-text {
  display: inline;
}

.reveal-all-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.reveal-all-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: white;
  border: 2px solid var(--bg-dark);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text);
}

.reveal-all-btn:hover {
  background: var(--bg-dark);
  color: white;
}

/* ============ SEARCH RESULTS ============ */
.results-header {
  margin-bottom: 24px;
}

.results-count {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* (table layout removed — using card layout now) */

.no-results {
  text-align: center;
  padding: 80px 24px;
}

.no-results-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.no-results h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.no-results p {
  font-size: 15px;
  color: var(--text-secondary);
}

/* ============ SEARCH TABS ============ */
.search-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 8px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
}

.search-tab {
  flex: 1;
  padding: 8px 16px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
}

.search-tab:hover {
  color: var(--text);
}

.search-tab.active {
  background: white;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* ============ LOADING ============ */
.loading-indicator {
  text-align: center;
  padding: 60px 24px;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-indicator p {
  font-size: 15px;
  color: var(--text-secondary);
}

/* ============ SEARCH PROMPT ============ */
.search-prompt {
  text-align: center;
  padding: 80px 24px;
}

.search-prompt-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.search-prompt h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.search-prompt p {
  font-size: 15px;
  color: var(--text-secondary);
}

.search-prompt code {
  background: var(--bg-alt);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}

/* ============ BEST ANSWER CARD ============ */
.best-answer-card {
  background: white;
  border: 2px solid var(--green);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
  text-align: center;
  position: relative;
}

.best-answer-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--green);
  margin-bottom: 16px;
}

.best-answer-word {
  font-family: 'Courier New', monospace;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--text);
  margin-bottom: 10px;
}

.best-answer-meta {
  margin-bottom: 16px;
}

.best-answer-length {
  font-size: 14px;
  color: var(--text-light);
  background: var(--bg-alt);
  padding: 4px 14px;
  border-radius: 20px;
}

.best-answer-def {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.def-pos {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(50, 104, 145, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 6px;
  text-transform: lowercase;
  font-style: italic;
}

.def-form {
  font-size: 13px;
  color: var(--text-light);
  margin-right: 4px;
}

/* ============ OTHER ANSWERS ============ */
.other-answers-section {
  margin-top: 8px;
}

.other-answers-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
}

.other-answers-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.other-answer-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.other-answer-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.other-answer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.other-answer-length {
  font-size: 13px;
  color: var(--text-light);
  background: var(--bg-alt);
  padding: 2px 10px;
  border-radius: 10px;
  flex-shrink: 0;
}

.other-answer-def {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: 2px;
}

.answer-word {
  font-weight: 700;
  color: var(--green);
  letter-spacing: 2px;
  font-size: 16px;
  font-family: 'Courier New', monospace;
}

/* ============ CLUE PAGE ============ */
.clue-page-header {
  background: linear-gradient(180deg, #f7f7f5 0%, #ffffff 100%);
  padding: 32px 0 40px;
  border-bottom: 1px solid var(--border-light);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--border);
}

.breadcrumb-current {
  color: var(--text-secondary);
  font-weight: 500;
}

.clue-page-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  color: var(--text);
}

.clue-page-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}

.clue-article {
  max-width: 720px;
}

.clue-intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.clue-seo-text {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.clue-seo-text h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.clue-seo-text p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.clue-seo-text a {
  color: var(--accent);
  text-decoration: none;
}

.clue-seo-text a:hover {
  text-decoration: underline;
}

/* ============ RELATED CLUES ============ */
.related-clues {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.related-clues-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

.related-clues-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.related-clue-link {
  display: inline-block;
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  transition: all var(--transition);
}

.related-clue-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* ============ CLUE PAGE BOTTOM SEARCH ============ */
.clue-page-search {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.clue-page-search h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ============ TRENDING CLUE LINKS ============ */
.clue-item-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: white;
  text-decoration: none;
  color: var(--text);
  transition: background var(--transition);
}

.clue-item-link:hover {
  background: #fafaf8;
}

.clue-item-link .clue-answer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.clue-arrow {
  color: var(--text-light);
  transition: transform var(--transition);
}

.clue-item-link:hover .clue-arrow {
  transform: translateX(2px);
  color: var(--accent);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px;
  margin-top: 0;
}

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

.footer-brand {
  max-width: 360px;
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  padding: 4px 0;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  text-align: center;
  color: rgba(255,255,255,0.4);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .search-filters {
    flex-direction: column;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .clues-list {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .hp-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hp-title {
    font-size: 28px;
  }

  .hp-puzzles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hp-search-card {
    position: static;
  }

  .top-answers-grid {
    grid-template-columns: 1fr;
  }

  .top-answer-word {
    font-size: 24px;
    letter-spacing: 4px;
  }

  .pop-clues-grid {
    grid-template-columns: 1fr;
  }

  .daily-strip-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .clues-index-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .answers-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .dates-grid {
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: 32px;
  }

  .best-answer-word {
    font-size: 30px;
    letter-spacing: 4px;
  }

  .best-answer-card {
    padding: 24px 16px;
  }

  .page-header-title {
    font-size: 26px;
  }

  .section-title {
    font-size: 24px;
  }

  .nav-links {
    display: none;
  }
}

/* ============ Keyword Tags ============ */

.kw-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.kw-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.2);
  line-height: 1.4;
}

.kw-tag-sm {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--text-secondary);
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.4;
}

.kw-tag-more {
  background: var(--green);
  color: white;
}

.seo-keyword-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.seo-keyword-list li a {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-alt);
  border-radius: 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}

.seo-keyword-list li a:hover {
  background: var(--green);
  color: white;
}

/* ============ Clues Index Page ============ */

.clues-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.clues-index-card {
  display: block;
  text-decoration: none;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.clues-index-card:hover {
  border-color: var(--green);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.clues-index-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.clues-index-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.clues-index-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ============ Homepage First Screen ============ */

.hp-first {
  padding: 48px 0 40px;
  background: var(--bg);
}

.hp-split {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.hp-title {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 12px;
}

.hp-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 540px;
}

.hp-puzzles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hp-puzzle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.hp-puzzle-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.hp-puzzle-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  line-height: 1.25;
}

.hp-puzzle-icon {
  font-size: 36px;
  line-height: 1;
}

.hp-puzzle-date {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

/* Homepage Search Card (right column) */

.hp-search-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 80px;
}

.hp-search-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  text-align: center;
}

.hp-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.hp-input-wrap {
  position: relative;
  margin-bottom: 20px;
}

.hp-input {
  width: 100%;
  padding: 14px 44px 14px 16px;
  font-size: 15px;
  font-family: var(--font-sans);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s;
  background: var(--bg);
}

.hp-input:focus {
  border-color: var(--text);
}

.hp-input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

.hp-len-row {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.hp-len-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.hp-len-btn:hover {
  border-color: var(--text);
}

.hp-len-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: white;
}

.hp-len-more {
  background: var(--bg-alt);
  border-color: var(--border);
}

.hp-search-hint {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 20px;
}

.hp-find-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: var(--bg-dark);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.hp-find-btn:hover {
  background: #2a2a2e;
}

.hp-find-btn:active {
  transform: scale(0.98);
}

/* ============ Daily Puzzle Strip ============ */

.daily-strip {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 24px 0;
  overflow: hidden;
}

.daily-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.daily-strip-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.daily-strip-title svg {
  color: var(--green);
}

.daily-strip-date {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

.daily-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.daily-scroll::-webkit-scrollbar {
  height: 4px;
}

.daily-scroll::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.daily-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
}

.daily-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  text-decoration: none;
  min-width: 120px;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
}

.daily-card:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--accent, rgba(255,255,255,0.3));
  transform: translateY(-2px);
}

.daily-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.daily-card-name {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  line-height: 1.2;
}

.daily-card-grid {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
  padding: 2px 8px;
  border-radius: 10px;
}

/* ============ Top Answers Grid ============ */

.top-answers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.top-answer-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border-left: 5px solid var(--green);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.15s;
  position: relative;
}

.top-answer-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.top-answer-clue {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.top-answer-word {
  font-family: 'Courier New', monospace;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1;
}

.top-answer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-answer-len {
  display: inline-block;
  background: var(--bg-alt);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.top-answer-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}

/* ============ Popular Clues Grid ============ */

.pop-clues-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pop-clue-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: white;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
  border: 1px solid var(--border-light);
}

.pop-clue-row:hover {
  background: #f0fdf4;
  border-color: var(--green);
  box-shadow: var(--shadow-sm);
}

.pop-clue-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pop-clue-mask {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 2px;
  white-space: nowrap;
}

.pop-clue-len {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.pop-clue-arrow {
  flex-shrink: 0;
  color: var(--text-light);
}

/* ============ Category Tags ============ */

.cat-group {
  margin-bottom: 20px;
}

.cat-group-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cat-tag {
  display: inline-block;
  padding: 10px 20px;
  background: white;
  border: 2px solid var(--border);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s;
}

.cat-tag:hover {
  border-color: var(--green);
  background: var(--green);
  color: white;
  transform: translateY(-1px);
}

.cat-tag-topic {
  background: var(--bg-alt);
  border-color: transparent;
}

.cat-tag-topic:hover {
  border-color: var(--accent);
  background: var(--accent);
}

/* ============ Hero Compact ============ */

.hero-compact {
  padding: 48px 24px 40px;
}

/* ============ Last Seen Box ============ */

.last-seen-box {
  background: linear-gradient(135deg, #f0f7ff, #eef6ee);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 20px 24px;
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}

.last-seen-box p {
  margin: 0;
}

.section-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.view-all-link {
  display: inline-block;
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  padding: 10px 24px;
  border: 2px solid var(--green);
  border-radius: var(--radius-lg);
  transition: background 0.2s, color 0.2s;
}

.view-all-link:hover {
  background: var(--green);
  color: white;
}

.clue-page-title-suffix {
  font-weight: 300;
  font-size: 0.65em;
  color: rgba(255,255,255,0.7);
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 16px 32px;
  }

  .container {
    padding: 0 16px;
  }

  .search-box {
    padding: 6px;
  }

  .search-input {
    padding: 12px 12px 12px 42px;
    font-size: 15px;
  }

  .dates-grid {
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    gap: 6px;
  }
}
