/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  --header-bg:    #ffffff;
  --header-text:  #111827;
  --body-bg:      #f2f2f0;
  --surface:      #ffffff;
  --surface2:     #ebebeb;
  --text:         #111827;
  --muted:        #6b7280;
  --border:       #e2e2e2;
  --accent:       #4f46e5;
  --accent-hover: #3730a3;
  --btn-primary:  #4f46e5;
  --btn-primary-h:#3730a3;
  --btn-sec:      #6b7280;
  --btn-sec-h:    #4b5563;
  --teal:         #4f46e5;
  --teal-dark:    #3730a3;
  --green:        #2d7a4a;
  --yellow:       #b07a00;
  --purple:       #6b3fa0;
  --radius:       6px;
  --radius-lg:    12px;
  --shadow:       0 2px 8px rgba(0,0,0,.10);
  --shadow-lg:    0 4px 20px rgba(0,0,0,.14);
  --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono:         'Courier New', Courier, monospace;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--body-bg); color: var(--text); line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ────────────────────────────────────────────────────── */
.site-header {
  background: var(--header-bg);
  color: var(--header-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--border);
}
.site-logo { font-size: 1.25rem; font-weight: 700; color: var(--text); letter-spacing: -.5px; }
.site-logo span { font-weight: 300; font-size: .9em; opacity: .85; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav .nav-link { display: none; }

/* Desktop nav — equal-size outlined rectangle buttons */
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  font-size: .875rem;
  font-weight: 600;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: transparent;
  text-decoration: none;
  transition: background .18s, border-color .18s, color .18s, transform .1s;
}
.nav-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; transform: translateY(-1px); }
.nav-link:active { transform: scale(.97); }
.nav-link.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Show rectangle nav buttons on wider screens; hide hamburger */
@media (min-width: 680px) {
  .site-nav .nav-link { display: inline-flex; }
  .nav-hamburger { display: none; }
  .nav-mobile-menu { display: none !important; }
}

.nav-menu-btn { background: none; border: none; color: var(--text); cursor: pointer; font-size: .9rem; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius); transition: background .2s; }
.nav-menu-btn:hover { background: rgba(0,0,0,.07); }

/* Hamburger button — visible on mobile only */
.nav-hamburger { display: flex; align-items: center; gap: 6px; background: none; border: 1px solid rgba(0,0,0,.12); cursor: pointer; padding: 6px 12px; border-radius: var(--radius); font-size: .85rem; font-weight: 600; letter-spacing: .06em; color: var(--text); transition: background .2s; }
.nav-hamburger:hover { background: rgba(0,0,0,.07); }

/* Mobile dropdown menu */
.nav-mobile-menu { display: none; flex-direction: column; background: var(--header-bg); border-bottom: 1px solid rgba(0,0,0,.08); padding: 10px 16px 14px; gap: 8px; }
.nav-mobile-menu.open { display: flex; }
.nav-mobile-link {
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  transition: background .18s, border-color .18s, color .18s, transform .1s;
}
.nav-mobile-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; transform: translateY(-1px); }
.nav-mobile-link:active { transform: scale(.97); }
.nav-mobile-link.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Layout ────────────────────────────────────────────────────── */
.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.page-main { padding: 32px 0 64px; }

/* ── Tool Header ───────────────────────────────────────────────── */
.tool-hero { margin-bottom: 28px; }
.tool-hero h1 { font-size: 2.4rem; font-weight: 800; color: var(--text); margin-bottom: 6px; line-height: 1.2; }
.tool-hero .tagline { font-style: italic; color: var(--muted); font-size: 1rem; }

/* ── Search Box ────────────────────────────────────────────────── */
.search-box { background: var(--surface); border-radius: var(--radius-lg); padding: 28px 28px 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.input-label { font-size: .85rem; color: var(--muted); margin-bottom: 8px; display: block; }
.input-row { display: flex; gap: 4px; align-items: stretch; margin-bottom: 16px; position: relative; }
.letter-input {
  flex: 1;
  padding: 14px 52px 14px 16px;
  font-size: 1.2rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  font-family: var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: border-color .2s, box-shadow .2s;
}
.letter-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30,107,168,.15); }
.char-counter { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: .75rem; color: var(--muted); pointer-events: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 24px; border: none; border-radius: var(--radius); font-size: .95rem; font-weight: 600; cursor: pointer; transition: background .18s, transform .1s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--btn-primary); color: #fff; }
.btn-primary:hover { background: var(--btn-primary-h); }
.btn-secondary { background: var(--btn-sec); color: #fff; }
.btn-secondary:hover { background: var(--btn-sec-h); }
.btn-secondary.active { background: var(--btn-primary-h); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-green { background: #2d7a4a; color: #fff; }
.btn-green:hover { background: #1f5c35; }
.btn-yellow { background: #b07a00; color: #fff; }
.btn-yellow:hover { background: #8a5f00; }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: #532e7a; }

/* ── Options Panel ─────────────────────────────────────────────── */
.options-panel { display: none; margin-top: 20px; padding: 22px; background: var(--surface2); border-radius: var(--radius-lg); border: 1px solid var(--border); animation: fadeDown .2s ease; }
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.filter-group { display: flex; flex-direction: column; gap: 5px; }
.filter-group.full { grid-column: 1 / -1; }
.filter-label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.filter-input, .filter-select {
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}
.filter-input:focus, .filter-select:focus { border-color: var(--teal); }
.options-footer { margin-top: 16px; display: flex; justify-content: flex-end; }

/* ── Info Block ────────────────────────────────────────────────── */
.info-block { background: var(--surface); padding: 16px 20px; border-radius: var(--radius); margin-top: 24px; color: var(--muted); font-size: .95rem; line-height: 1.7; box-shadow: var(--shadow); }

/* ── Info Sections ─────────────────────────────────────────────── */
.info-section { background: var(--surface); border-radius: var(--radius); padding: 0 24px 20px; margin-top: 40px; box-shadow: var(--shadow); }
.info-section h2 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 0 0 20px; }
.info-section p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.7; }

/* ── Results ───────────────────────────────────────────────────── */
#results-area { display: none; margin-top: 28px; }
.results-header { background: var(--surface); border-radius: var(--radius-lg); padding: 28px 28px 20px; box-shadow: var(--shadow); margin-bottom: 24px; }
.results-title { font-size: 1.5rem; font-weight: 800; color: var(--teal); margin-bottom: 10px; }
.letters-highlight { color: var(--teal-dark); }
.results-subtitle { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.results-summary { color: var(--muted); margin-bottom: 8px; }
.total-count { color: var(--teal); }
.letters-info { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.report-link { color: var(--teal); font-weight: 600; }
.report-link:hover { color: var(--teal-dark); }
.report-list { list-style: disc; padding-left: 24px; display: flex; flex-direction: column; gap: 4px; }
.report-list li { font-size: .95rem; color: var(--muted); }
.report-len { color: var(--teal); font-weight: 700; }

.word-groups { display: flex; flex-direction: column; gap: 20px; }
.word-group { background: var(--surface); border-radius: var(--radius-lg); padding: 22px 24px; box-shadow: var(--shadow); }
.group-heading { font-size: 1.05rem; font-weight: 700; color: var(--teal); margin-bottom: 14px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.group-count { font-weight: 400; color: var(--muted); font-size: .85rem; }
.word-tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.word-tile {
  padding: 5px 11px;
  background: var(--body-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .9rem;
  cursor: pointer;
  font-family: var(--mono);
  transition: background .15s, color .15s, border-color .15s;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.word-tile:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

.no-results { background: var(--surface); border-radius: var(--radius-lg); padding: 32px; text-align: center; color: var(--muted); box-shadow: var(--shadow); }
.no-results p { margin-bottom: 8px; }

/* ── Games Page ────────────────────────────────────────────────── */
.games-hero { margin-bottom: 32px; }
.games-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 6px; }
.games-hero p { color: var(--muted); }

.featured-games { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 40px; }
.game-card { border-radius: var(--radius-lg); padding: 24px; }
.game-card-green  { background: #d4edda; }
.game-card-yellow { background: #fff3cd; }
.game-card-purple { background: #e8d5f5; }
.game-card-icon { font-size: 2rem; margin-bottom: 8px; }
.game-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 6px; }
.game-card p { font-size: .88rem; color: #444; margin-bottom: 16px; line-height: 1.5; }

/* ── Game Tabs ─────────────────────────────────────────────────── */
.section-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.section-sub { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.game-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 28px; }
.tab-btn { background: none; border: none; padding: 10px 20px; font-size: .95rem; font-weight: 600; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; transition: color .2s, border-color .2s; }
.tab-btn.tab-active { color: var(--teal); border-bottom-color: var(--teal); }
.tab-btn:hover { color: var(--teal); }

.game-section { display: block; }
.game-section.hidden { display: none; }

/* ── Wordle ────────────────────────────────────────────────────── */
.wordle-wrap { max-width: 380px; margin: 0 auto; }
#wordle-message { text-align: center; font-size: 1rem; font-weight: 600; min-height: 26px; color: var(--btn-primary); margin-bottom: 12px; }
#wordle-grid { display: grid; grid-template-columns: repeat(5, 52px); gap: 6px; justify-content: center; margin-bottom: 20px; }
.wordle-cell {
  width: 52px; height: 52px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800;
  text-transform: uppercase;
  background: #fff;
  transition: border-color .1s;
}
.wordle-cell.pop { animation: pop .1s ease; }
.wordle-cell.correct { background: #538d4e; border-color: #538d4e; color: #fff; }
.wordle-cell.present { background: #b59f3b; border-color: #b59f3b; color: #fff; }
.wordle-cell.absent  { background: #3a3a3c; border-color: #3a3a3c; color: #fff; }

#wordle-keyboard { max-width: 420px; margin: 0 auto; }
.kb-row { display: flex; justify-content: center; gap: 5px; margin-bottom: 6px; }
.kb-key {
  padding: 14px 8px; min-width: 36px;
  border: none; border-radius: 4px;
  font-size: .85rem; font-weight: 700;
  background: #d3d6da; color: var(--text);
  cursor: pointer; transition: background .15s;
}
.kb-key.kb-wide { min-width: 56px; font-size: .75rem; }
.kb-key:hover { background: #bbb; }
.kb-key.correct { background: #538d4e; color: #fff; }
.kb-key.present { background: #b59f3b; color: #fff; }
.kb-key.absent  { background: #3a3a3c; color: #fff; }
.wordle-actions { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }

/* ── Scramble ──────────────────────────────────────────────────── */
.scramble-wrap { max-width: 480px; margin: 0 auto; text-align: center; }
.scramble-stats { display: flex; justify-content: center; gap: 32px; margin-bottom: 24px; }
.stat-box { text-align: center; }
.stat-val { font-size: 1.8rem; font-weight: 800; color: var(--teal); display: block; }
.stat-label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.scramble-timer-box { font-size: 1rem; font-weight: 600; color: var(--muted); margin-bottom: 20px; }
#scramble-word { font-size: 2.2rem; font-weight: 800; letter-spacing: 4px; color: var(--btn-primary); margin-bottom: 24px; font-family: var(--mono); }
.scramble-input-row { display: flex; gap: 8px; justify-content: center; margin-bottom: 12px; }
.scramble-input-row input { padding: 12px 16px; font-size: 1.1rem; border: 2px solid var(--border); border-radius: var(--radius); outline: none; width: 200px; text-align: center; letter-spacing: 1px; }
.scramble-input-row input:focus { border-color: var(--teal); }
#scramble-feedback { min-height: 24px; font-size: .95rem; font-weight: 600; color: var(--green); margin-bottom: 12px; }

/* ── Anagram ───────────────────────────────────────────────────── */
.anagram-wrap { max-width: 560px; margin: 0 auto; }
#anagram-letters { font-size: 2rem; font-weight: 800; letter-spacing: 6px; color: var(--teal); text-align: center; margin-bottom: 8px; font-family: var(--mono); }
.anagram-timer-row { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.anagram-stats { display: flex; justify-content: center; gap: 24px; margin-bottom: 20px; }
.anagram-input-row { display: flex; gap: 8px; justify-content: center; margin-bottom: 10px; }
.anagram-input-row input { padding: 11px 14px; font-size: 1rem; border: 2px solid var(--border); border-radius: var(--radius); outline: none; width: 180px; }
.anagram-input-row input:focus { border-color: var(--teal); }
#anagram-feedback { min-height: 22px; text-align: center; font-size: .9rem; font-weight: 600; color: var(--green); margin-bottom: 16px; }
#anagram-found-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-height: 180px; overflow-y: auto; }
.found-word { background: var(--teal); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: .85rem; font-family: var(--mono); text-transform: uppercase; }

/* ── Helpers Grid ──────────────────────────────────────────────── */
.helpers-section { margin-top: 48px; }
.helpers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.helper-card { background: var(--surface); border-radius: var(--radius-lg); padding: 18px 20px; display: flex; align-items: flex-start; gap: 14px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; border: 1px solid var(--border); text-decoration: none; color: inherit; }
.helper-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.helper-icon { width: 40px; height: 40px; border-radius: 10px; background: #e8f3e8; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.helper-info h4 { font-size: .95rem; font-weight: 700; margin-bottom: 3px; }
.helper-info p { font-size: .82rem; color: var(--muted); line-height: 1.4; }

/* ── Dictionary ────────────────────────────────────────────────── */
.dict-hero { background: var(--surface); border-radius: var(--radius-lg); padding: 36px 32px 28px; box-shadow: var(--shadow); margin-bottom: 24px; }
.dict-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 6px; }
.dict-subtitle { font-style: italic; color: var(--muted); font-size: 1rem; margin-bottom: 0; }
.dict-divider { border: none; border-top: 1px dashed var(--border); margin: 24px 0; }
.dict-label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.dict-row { display: flex; gap: 12px; align-items: stretch; }
.dict-input { flex: 1; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 10px 14px; font-size: 1rem; font-family: var(--font); background: var(--body-bg); color: var(--text); transition: border-color .2s; }
.dict-input:focus { outline: none; border-color: var(--accent); }
.dict-btn { background: var(--btn-primary); color: #fff; border: none; border-radius: var(--radius); padding: 10px 22px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background .2s; white-space: nowrap; }
.dict-btn:hover { background: var(--btn-primary-h); }
.dict-result { margin-top: 20px; font-size: 1rem; min-height: 32px; }
.dict-valid, .dict-invalid { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius); }
.dict-valid { background: #ecfdf5; color: #065f46; }
.dict-invalid { background: #fef2f2; color: #991b1b; }
.dict-badge { font-weight: 700; font-size: .85rem; padding: 2px 10px; border-radius: 20px; }
.dict-badge--yes { background: #d1fae5; color: #065f46; }
.dict-badge--no { background: #fee2e2; color: #991b1b; }
@media (max-width: 500px) {
  .dict-row { flex-direction: column; }
  .dict-btn { width: 100%; }
  .dict-hero { padding: 24px 18px 20px; }
  .dict-hero h1 { font-size: 1.7rem; }
}

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer { background: var(--header-bg); color: rgba(255,255,255,.75); text-align: center; padding: 24px 20px; font-size: .85rem; margin-top: 40px; }
.site-footer a { color: rgba(255,255,255,.9); }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 10px; flex-wrap: wrap; }

/* ── Article Pages ─────────────────────────────────────────────── */
.article-breadcrumb {
  font-size: .875rem;
  color: var(--muted, #6b7280);
  margin-bottom: .75rem;
}
.article-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}
.article-breadcrumb a:hover { text-decoration: underline; }

.article-body {
  max-width: 720px;
  margin: 0 auto 2rem;
  line-height: 1.75;
  font-size: 1rem;
  color: var(--body-text, #1f2937);
}
.article-body p { margin: 0 0 1.1rem; }
.article-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 .6rem;
  color: var(--header-text, #111827);
}
.article-body em { font-style: italic; }
.article-body strong { font-weight: 600; }
.article-body a { color: var(--accent); text-decoration: none; }
.article-body a:hover { text-decoration: underline; }

.quiz-item {
  background: var(--card-bg, #f9f9f7);
  border: 1px solid var(--border, #e5e5e3);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 1rem;
}
.quiz-q { margin: 0 0 .4rem; }
.quiz-a { margin: 0; color: var(--body-text, #1f2937); }

/* ── Articles List ─────────────────────────────────────────────── */
.articles-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.articles-list li {
  border-bottom: 1px solid var(--border);
  padding: 2px 0;
}
.articles-list li:first-child { border-top: 1px solid var(--border); }
.article-link {
  display: block;
  padding: 10px 4px;
  color: var(--accent);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.4;
  transition: color .15s, padding-left .15s;
}
.article-link:hover {
  color: var(--accent2, #c05a1f);
  padding-left: 8px;
}

/* ── Daily Hints Grid ──────────────────────────────────────────── */
.hints-section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.hints-section-header { margin-bottom: 24px; }
.hints-section-header h2 { font-size: 1.6rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.hints-section-header p  { font-size: .95rem; color: var(--muted); }

.hints-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 12px;
}

/* First two cards span two rows (featured / taller) */
.hint-card-featured { grid-row: span 2; }

.hint-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: box-shadow .18s, transform .18s;
  cursor: default;
}
.hint-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.hint-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hint-card-text { flex: 1; }
.hint-card-text h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 6px; line-height: 1.3; }
.hint-card-featured .hint-card-text h3 { font-size: 1.2rem; }
.hint-card-text p  { font-size: .88rem; color: var(--muted); line-height: 1.45; margin: 0; }

.hint-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.hint-card-featured .hint-icon { width: 64px; height: 64px; font-size: 1.9rem; border-radius: 14px; }

.hint-icon-purple { background: #ede9fe; }
.hint-icon-green  { background: #dcfce7; }
.hint-icon-pink   { background: #fce7f3; }
.hint-icon-blue   { background: #dbeafe; }
.hint-icon-indigo { background: #e0e7ff; }
.hint-icon-yellow { background: #fef9c3; }
.hint-icon-teal   { background: #ccfbf1; }
.hint-icon-orange { background: #ffedd5; }

.hint-date { font-size: .8rem; color: var(--muted); margin-top: 4px; }

@media (max-width: 680px) {
  .hints-grid { grid-template-columns: 1fr 1fr; }
  .hint-card-featured { grid-row: span 1; }
}
@media (max-width: 480px) {
  .hints-grid { grid-template-columns: 1fr; }
}

/* ── Animations ────────────────────────────────────────────────── */
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .tool-hero h1 { font-size: 1.7rem; }
  .search-box { padding: 18px 16px; }
  .options-grid { grid-template-columns: 1fr; }
  .btn-row { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .results-title { font-size: 1.15rem; }
  #wordle-grid { grid-template-columns: repeat(5, 44px); }
  .wordle-cell { width: 44px; height: 44px; font-size: 1.2rem; }
  .kb-key { min-width: 30px; padding: 12px 5px; font-size: .75rem; }
  .kb-key.kb-wide { min-width: 46px; }
  .featured-games { grid-template-columns: 1fr; }
  .helpers-grid { grid-template-columns: 1fr; }
}
