/* =====================================================
   CODYCROSS — Vibrant Sky Theme
   Gold standard template v4
   ===================================================== */


/* ── Reset & base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Trebuchet MS', Verdana, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #0d2a4a;
  min-height: 100vh;
  background: linear-gradient(135deg, #deeeff 0%, #b3d9ff 50%, #6ab4f5 100%) fixed, #6ab4f5;
}

a { color: #1a6bc7; text-decoration: none; }
a:hover { color: #0d4a9e; text-decoration: underline; }
p { margin-bottom: .85rem; }
img { vertical-align: middle; }

/* ── Page wrapper ─────────────────────────────────── */
.page-wrap {
  max-width: 1080px;
  margin: 0 auto;
}

/* Diagonal stripe accent at top of content */
.page-wrap::before {
  content: "";
  display: block;
  height: 12px;
  background: repeating-linear-gradient(45deg, #1a6bc7 0 12px, #fff 12px 24px);
  border-radius: 8px 8px 0 0;
}

/* ── Header ───────────────────────────────────────── */
.site-header {
  background: linear-gradient(180deg, #1a6bc7 0%, #0d4a9e 100%);
  border-radius: 0 0 8px 8px;
  padding: 8px 6px;
  box-shadow: 0 4px 16px rgba(13,74,158,.35);
  position: sticky; top: 0; z-index: 100;
}
.site-header .wrap {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 16px; gap: 16px;
}
.logo {
  font-family: system-ui, -apple-system, 'Trebuchet MS', Arial, sans-serif;
  font-weight: 900; font-size: 22px;
  color: #fff; letter-spacing: -.01em;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.logo:hover { text-decoration: none; color: #fff; }
.logo-img {
  width: 44px; height: 44px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  flex-shrink: 0;
}
.logo-tiles { display: flex; gap: 3px; }
.logo-tile {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: system-ui, -apple-system, 'Trebuchet MS', Arial, sans-serif; font-weight: 900;
  font-size: 14px; color: #fff; line-height: 1;
}
.logo-tile.t1 { background: #4aa8f5; }
.logo-tile.t2 { background: #2e8fd4; }
.logo-tile.t3 { background: #1a6bc7; }
.logo em { color: #a8d8ff; font-style: normal; }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  color: rgba(255,255,255,.82); padding: 7px 14px;
  border-radius: 20px; font-size: 14px; font-weight: 600;
  transition: all .2s;
}
.site-nav a:hover, .site-nav a.active {
  color: #fff; background: rgba(255,255,255,.2);
  text-decoration: none;
}

/* ── Main content box ─────────────────────────────── */
.content-box {
  background: #f0f8ff;
  border: 1px solid #b3d9f5;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
  padding: 22px 20px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ── Breadcrumb ───────────────────────────────────── */
.breadcrumb-bar {
  background: #e0f0ff; border-bottom: 1px solid #b3d9f5;
  padding: .5rem 0;
}
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .3rem; list-style: none; font-size: .82rem;
}
.breadcrumb a { color: #0d4a8a; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .bc-current { color: #0d4a8a; }
.bc-sep { color: #7fafd0; margin: 0 .1rem; }

/* ── Headings ─────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Trebuchet MS', system-ui, -apple-system, 'Trebuchet MS', Arial, sans-serif;
  font-weight: 800; line-height: 1.2; margin-bottom: .5rem;
}
h1 {
  font-size: 2rem; color: #1a5fa8;
  border-bottom: 3px dashed #4aa8f5;
  padding-bottom: 8px; margin: 10px 2px 16px;
  text-transform: uppercase;
}
h2 { font-size: 1.4rem; color: #1e7a3c; }
h3 { font-size: 1.15rem; color: #0d2a4a; }

/* ── Hero ─────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #0d2a4a 0%, #1a6bc7 50%, #4aa8f5 100%);
  padding: 2.5rem 1.5rem 3rem;
  text-align: center; position: relative; overflow: hidden;
}
.hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.1) 1.5px, transparent 1.5px);
  background-size: 24px 24px; pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
  color: #fff; font-size: .8rem; font-weight: 700;
  padding: .28rem .9rem; border-radius: 20px;
  margin-bottom: .9rem; position: relative; z-index: 1;
  text-transform: uppercase; letter-spacing: .06em;
}
.page-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  color: #fff; border: none; padding: 0;
  margin: 0 auto .7rem; max-width: 780px;
  position: relative; z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.hero-sub {
  font-size: 1rem; color: rgba(255,255,255,.88);
  max-width: 560px; margin: 0 auto;
  position: relative; z-index: 1;
}
.hero-wave { display: block; width: 100%; height: 40px; margin-top: -2px; color: #f0f8ff; }

/* ── App description banner ───────────────────────── */
.appdescription {
  background: #e6f3ff;
  border-bottom: 2px solid #b3d9f5;
  padding: 1rem 1.5rem;
}
.appdescription p {
  font-size: .97rem; color: #0d3a6b;
  line-height: 1.75; max-width: 960px; margin: 0 auto;
}

/* ── Daily highlight ──────────────────────────────── */
.daily-highlight {
  background: linear-gradient(135deg, #1a5fa8 0%, #2980d4 50%, #4aa8f5 100%);
  border-radius: 14px; padding: 1.6rem 1.8rem;
  margin: 1.5rem 0; color: #fff;
  box-shadow: 0 6px 20px rgba(26,111,200,.35);
  position: relative; overflow: hidden;
}
.daily-eyebrow {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35);
  color: rgba(255,255,255,.95); font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .2rem .7rem; border-radius: 20px; margin-bottom: .6rem;
}
.daily-highlight h3 {
  font-family: system-ui, -apple-system, 'Trebuchet MS', Arial, sans-serif; font-weight: 800; font-size: 1.2rem;
  color: #fff; margin: 0 0 .9rem;
}
.daily-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: #1a6bc7;
  padding: .5rem 1.3rem; border-radius: 22px;
  font-weight: 800; font-size: .88rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.daily-btn:hover {
  transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.22);
  text-decoration: none; color: #1a6bc7;
}

/* ── Section titles ───────────────────────────────── */
.section-title {
  font-family: 'Trebuchet MS', sans-serif; font-size: 1.2rem; font-weight: 800;
  color: #0d2a4a; margin-bottom: 1rem;
  display: flex; align-items: center; gap: .6rem;
}
.section-count {
  font-size: .76rem; font-weight: 700;
  color: #1a6bc7; background: #deeeff;
  padding: 2px 10px; border-radius: 20px;
}
.section-intro {
  font-size: .95rem; color: #1a5280;
  margin-bottom: 1.25rem; line-height: 1.6;
}

/* ── Blocks grid ──────────────────────────────────── */
.blocks-grid-section, .packs-grid-section { margin-top: 1.75rem; }

.blocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .6rem;
  margin-bottom: 2rem;
}
.block-card {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .2rem; padding: .95rem .7rem;
  border-radius: 12px; color: #fff;
  text-decoration: none; min-height: 70px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: transform .18s, box-shadow .18s, filter .18s;
}
.block-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
  filter: brightness(1.08);
  color: #fff; text-decoration: none;
}
.block-card .block-range {
  font-family: 'Trebuchet MS', sans-serif; font-weight: 700;
  font-size: 1rem; letter-spacing: -.01em; line-height: 1;
}
.block-card .block-sub {
  font-size: .7rem; font-weight: 700;
  opacity: .85; text-transform: uppercase; letter-spacing: .06em;
}

/* ── Level grid ───────────────────────────────────── */
.levels-grid {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-bottom: 2rem;
}
.level-card {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 16px; min-width: 110px;
  background: linear-gradient(180deg, #e8f4ff, #c8e4ff);
  border: 1px solid #7ab8e8;
  border-radius: 14px; line-height: 1.2;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
  color: #1a5fa8; font-weight: 700; font-size: .95rem;
  transition: transform .1s, background .15s;
  text-decoration: none;
}
.level-card:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #fff, #b3d9ff);
  color: #0d3a8a; text-decoration: none;
}

/* ── Answer words / definitions ───────────────────── */
.answers-section { margin: 1.5rem 0 2rem; }
.word-defs-list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; }
.word-def-card {
  background: linear-gradient(180deg, #f0f8ff, #e2f0fc);
  border: 1px solid #8ec8f0;
  border-radius: 12px; padding: .8rem 1.1rem;
  transition: border-color .15s, transform .12s;
}
.word-def-card:hover { border-color: #1a6bc7; transform: translateX(3px); }
.word-def-top {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: .25rem;
}
.word-def-word {
  font-family: 'Trebuchet MS', sans-serif; font-weight: 900;
  font-size: 1.05rem; text-transform: uppercase;
  color: #1a5fa8; letter-spacing: .05em;
}
.word-def-len {
  font-size: .73rem; font-weight: 700;
  color: #1a6bc7; background: #deeeff;
  padding: 2px 9px; border-radius: 20px;
}
.word-def-text {
  font-size: .87rem; color: #2a5070; line-height: 1.5; margin: 0;
}

/* ── Players also searched ────────────────────────── */
.also-searched { margin: 1.75rem 0; }
.also-grid { display: flex; flex-direction: column; gap: .35rem; margin-top: .75rem; }
.also-card {
  display: block; padding: .55rem 1rem;
  background: linear-gradient(180deg, #f0f8ff, #e2f0fc);
  border: 1px solid #8ec8f0;
  border-radius: 10px; font-size: .9rem; font-weight: 700;
  color: #1a6bc7; transition: all .15s; text-decoration: none;
}
.also-card:hover {
  background: linear-gradient(180deg, #fff, #c8e4ff);
  border-color: #1a6bc7; text-decoration: none;
  transform: translateX(4px);
}

/* ── Feature cards ────────────────────────────────── */
.feature-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem; margin: 1.5rem 0 2rem;
}
.feature-card {
  border-radius: 12px; padding: 1.2rem 1.1rem;
  border: 1.5px solid;
}
.feature-card.fc-blue   { background: #e8f4ff; border-color: #9ccef5; }
.feature-card.fc-orange { background: #fff5e6; border-color: #ffd09e; }
.feature-card.fc-green  { background: #eafaf0; border-color: #9de0b6; }
.feature-card.fc-purple { background: #f3eeff; border-color: #c9aaed; }
.feature-card .fc-icon { font-size: 1.7rem; margin-bottom: .4rem; }
.feature-card h3 { font-family: system-ui, -apple-system, 'Trebuchet MS', Arial, sans-serif; font-size: .95rem; font-weight: 800; margin-bottom: .25rem; }
.feature-card.fc-blue h3   { color: #1a5fa8; }
.feature-card.fc-orange h3 { color: #9a4f00; }
.feature-card.fc-green h3  { color: #1e7a3c; }
.feature-card.fc-purple h3 { color: #5b2d9e; }
.feature-card p { font-size: .84rem; line-height: 1.55; margin: 0; color: #1e4d6b; }

/* ── World/pack blocks ────────────────────────────── */
.world-block {
  margin: 14px 0 8px; padding: 14px;
  background: #f0f8ff;
  border: 1px dashed #7ab8e8;
  border-radius: 10px;
}
.world-title {
  margin: 0 0 10px; color: #1a5fa8;
  font-family: system-ui, -apple-system, 'Trebuchet MS', Arial, sans-serif; font-size: 1.25rem; font-weight: 900;
  letter-spacing: .03em;
  border-bottom: 2px solid #4aa8f5; padding-bottom: 6px;
  text-transform: uppercase;
}

/* ── Grid puzzle ──────────────────────────────────── */
.grid-wrap { margin: 1.5rem 0; }
.grid-table { border-collapse: collapse; margin: 0 auto; }
.grid-table td {
  width: 38px; height: 38px; text-align: center; vertical-align: middle;
  font-family: system-ui, -apple-system, 'Trebuchet MS', Arial, sans-serif; font-weight: 900; font-size: 1.1rem;
  border: 2px solid #b3d9f5; color: #0d2a4a;
  text-transform: uppercase; border-radius: 4px;
}
.grid-table td.filled { background: #e0f0ff; }
.grid-table td.empty { background: #0d2a4a; border-color: #0d2a4a; }
.letter-pool {
  display: flex; gap: .4rem; flex-wrap: wrap;
  justify-content: center; margin: 1rem 0;
}
.letter-tile {
  width: 40px; height: 40px; border-radius: 8px;
  background: linear-gradient(180deg, #4aa8f5, #1a6bc7);
  color: #fff; font-family: system-ui, -apple-system, 'Trebuchet MS', Arial, sans-serif;
  font-weight: 900; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 0 #0d4a9e, 0 3px 6px rgba(0,0,0,.15);
  text-transform: uppercase;
}

/* ── Pager ────────────────────────────────────────── */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 2rem 0; }
.pager a {
  background: linear-gradient(180deg, #f0f8ff, #e2f0fc);
  border: 1.5px solid #8ec8f0; border-radius: 12px;
  padding: 14px 18px; display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07); transition: all .18s; text-decoration: none;
}
.pager a:hover { border-color: #1a6bc7; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(26,107,199,.2); }
.pager a.next { align-items: flex-end; text-align: right; }
.pager div.empty { background: transparent; box-shadow: none; border: none; }
.pager .label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #1a6bc7; }
.pager .target { font-family: system-ui, -apple-system, 'Trebuchet MS', Arial, sans-serif; font-weight: 800; font-size: 14px; color: #0d2a4a; }

/* ── About / FAQ ──────────────────────────────────── */
.about-section {
  margin-top: 1.75rem; background: #e8f4ff;
  border-radius: 12px; padding: 1.5rem 1.75rem;
  border: 1px solid #8ec8f0;
}
.about-section h2, .about-section h3 {
  font-family: system-ui, -apple-system, 'Trebuchet MS', Arial, sans-serif; font-size: 1.1rem; font-weight: 800;
  color: #0d2a4a; margin-bottom: .75rem;
}
.about-section p { font-size: .94rem; color: #2a5070; line-height: 1.72; margin-bottom: .7rem; }
.about-section p:last-child { margin-bottom: 0; }
.about-section a { color: #1a6bc7; font-weight: 600; }
.about-section a:hover { text-decoration: underline; }

.related-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.related-list a {
  padding: .3rem .8rem; background: #deeeff;
  border: 1px solid #7ab8e8; border-radius: 8px;
  font-size: .85rem; font-weight: 700; color: #1a5fa8;
  transition: all .15s;
}
.related-list a:hover { background: #1a6bc7; color: #fff; text-decoration: none; }

.faq-section { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 2px dashed #b3d9f5; }
.faq-section h2 { font-family: system-ui, -apple-system, 'Trebuchet MS', Arial, sans-serif; font-size: 1.1rem; font-weight: 800; color: #0d2a4a; margin-bottom: .9rem; }
.faq-item {
  background: #fff; border: 1px solid #b3d9f5;
  border-radius: 10px; padding: .9rem 1.2rem; margin-bottom: .55rem;
}
.faq-item h3 { font-family: system-ui, -apple-system, 'Trebuchet MS', Arial, sans-serif; font-size: .93rem; font-weight: 700; color: #1a5fa8; margin-bottom: .3rem; }
.faq-item p { font-size: .87rem; color: #2a5070; line-height: 1.6; margin: 0; }

/* ── Parent link ──────────────────────────────────── */
.parent-link { margin: .75rem 0 1.25rem; }
.parent-link a {
  color: #1a6bc7; font-weight: 700; font-size: .9rem;
  padding: .3rem .75rem; background: #deeeff;
  border-radius: 20px; border: 1px solid #7ab8e8;
  transition: all .15s;
}
.parent-link a:hover { background: #1a6bc7; color: #fff; text-decoration: none; }

/* ── Footer ───────────────────────────────────────── */
.site-footer {
  background: linear-gradient(180deg, #0d2a4a, #071828);
  margin-top: 2rem; padding: .3rem 0 0;
  color: rgba(255,255,255,.8);
  border-top: 3px solid #1a6bc7;
}
.footer-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 22px .3rem;
  display: flex; gap: 1rem; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
}
.footer-brand strong { font-family: system-ui, -apple-system, 'Trebuchet MS', Arial, sans-serif; font-size: .9rem; font-weight: 800; color: #fff; }
.footer-brand em { color: #7ab8e8; font-style: normal; }
.footer-brand p { display: none; }
.footer-links { display: flex; flex-direction: row; flex-wrap: wrap; gap: .3rem .9rem; }
.footer-links a { color: rgba(255,255,255,.85); font-size: .87rem; transition: color .15s; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-related {
  text-align: center; padding: 5px 0 2px;
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 8px;
}
.footer-related .related-label { font-size: .78rem; opacity: .65; margin-right: 8px; }
.footer-related a { display: inline-block; margin: 4px 8px; font-size: .83rem; color: rgba(255,255,255,.9); text-decoration: underline; }
.footer-related a:hover { color: #fff; }
.footer-copy {
  background: rgba(0,0,0,.3); padding: .4rem 22px;
  text-align: center; font-size: .8rem; color: rgba(255,255,255,.9);
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 640px) {
  /* mobile nav: keep all links visible */
  .page-hero { padding: 1.8rem 1rem 2.5rem; }
  .pager { grid-template-columns: 1fr; gap: 8px; }
  .about-section { padding: 1.1rem; }
  .footer-inner { flex-direction: column; gap: 1.25rem; }
  .blocks-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .feature-strip { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 1.5rem; }
}

/* Star Rating */
.rating-section {
  margin: 2rem 0 1.5rem;
  padding: 1.2rem 1.5rem;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #d0e8ff;
  box-shadow: 0 2px 8px rgba(0,80,180,.07);
}
.rating-heading {
  font-size: .95rem;
  font-weight: 700;
  color: #1a5fa8;
  margin: 0 0 .6rem;
  border: none;
}
.star-widget { display: flex; align-items: center; gap: .2rem; flex-wrap: wrap; }
.star {
  font-size: 1.8rem;
  color: #ccc;
  line-height: 1;
  transition: color .12s;
}
.star.on { color: #f5a623; }
.rating-meta {
  font-size: .85rem;
  color: #555;
  margin-left: .5rem;
}
.rating-meta strong { color: #f5a623; }

/* ── Scroll progress bar ──────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, #4aa8f5, #1a6bc7, #0d4a9e);
  z-index: 9999; transition: width .1s linear;
  box-shadow: 0 0 6px rgba(74,168,245,.6);
}

/* ── Back-to-top button ───────────────────────────── */
#back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(180deg, #4aa8f5, #1a6bc7);
  color: #fff; font-size: 20px; line-height: 44px; text-align: center;
  box-shadow: 0 4px 14px rgba(26,107,199,.45);
  cursor: pointer; border: none;
  opacity: 0; transform: translateY(12px);
  transition: opacity .25s, transform .25s;
  z-index: 999;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: linear-gradient(180deg, #5ab8ff, #1a6bc7); box-shadow: 0 6px 20px rgba(26,107,199,.55); }

/* ── Copy toast ───────────────────────────────────── */
#copy-toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(10px);
  background: #0d2a4a; color: #fff; font-size: .85rem; font-weight: 700;
  padding: .5rem 1.2rem; border-radius: 22px;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 9998; white-space: nowrap;
}
#copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Word cards: copy cursor + tap hint ───────────── */
.word-def-word {
  cursor: pointer; user-select: none;
  position: relative;
}
.word-def-word::after {
  content: 'tap to copy';
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: .65rem; font-weight: 600; color: #7ab8e8;
  text-transform: uppercase; letter-spacing: .05em;
  opacity: 0; transition: opacity .15s;
}
.word-def-card:hover .word-def-word::after { opacity: 1; }

/* ── Answers highlight pulse on load ─────────────── */
@keyframes answers-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,168,245,0); }
  40%  { box-shadow: 0 0 0 8px rgba(74,168,245,.25); }
  100% { box-shadow: 0 0 0 0 rgba(74,168,245,0); }
}
.answers-section.answers-highlight,
.word-defs-list.answers-highlight { animation: answers-pulse .9s ease-out; }

/* ── Mobile nav: show all links, wrap neatly ──────── */
@media (max-width: 640px) {
  .site-nav { flex-wrap: wrap; justify-content: flex-end; gap: 2px; }
  .site-nav a { font-size: 12px; padding: 5px 9px; }
}

/* ── Hide HashOver branding ───────────────────────── */
#hashover-end-links, [id*="-end-links"] { display: none !important; }

/* ── Info cards (home page) ───────────────────────── */
.info-section { margin: 1.75rem 0; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.info-card {
  background: #fff;
  border: 1.5px solid #b3d9f5;
  border-radius: 14px;
  padding: 1.3rem 1.2rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(26,107,199,.08);
  transition: transform .18s, box-shadow .18s;
}
.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(26,107,199,.15);
}
.info-icon { font-size: 2rem; margin-bottom: .5rem; }
.info-card h3 {
  font-family: system-ui, -apple-system, 'Trebuchet MS', Arial, sans-serif;
  font-size: 1rem; font-weight: 800;
  color: #1a5fa8; margin-bottom: .4rem;
}
.info-card p { font-size: .87rem; color: #1e4d6b; line-height: 1.55; margin: 0; }

/* ── Level jump search (home page) ───────────────── */
.level-jump {
  background: linear-gradient(135deg, #e8f4ff, #d0eaff);
  border: 1.5px solid #7ab8e8;
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.level-jump label {
  font-weight: 800; font-size: .95rem; color: #0d2a4a;
  white-space: nowrap;
}
.level-jump input[type=number] {
  width: 110px; padding: 8px 12px;
  border: 1.5px solid #7ab8e8; border-radius: 8px;
  font-size: 1rem; font-weight: 700; color: #0d2a4a;
  outline: none; transition: border .15s;
}
.level-jump input[type=number]:focus { border-color: #1a6bc7; }
.level-jump button {
  padding: 9px 22px;
  background: linear-gradient(180deg, #4aa8f5, #1a6bc7);
  color: #fff; border: none; border-radius: 8px;
  font-size: .95rem; font-weight: 800; cursor: pointer;
  transition: filter .15s;
}
.level-jump button:hover { filter: brightness(1.1); }

/* ── Site-specific components ───────────────────── */
.daily-highlight {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fb923c 100%);
  border-radius: 14px; padding: 1.8rem 2rem;
  margin-bottom: 2rem; color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 8px 24px rgba(234,88,12,.35);
}
.daily-highlight::after {
  content: ''; position: absolute; right: 1.5rem; top: .8rem;
  font-size: 4rem; opacity: .18; line-height: 1; pointer-events: none;
}
.daily-eyebrow {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.95); font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .22rem .75rem; border-radius: 20px; margin-bottom: .7rem;
}
.daily-highlight h3 {
  font-family: system-ui, -apple-system, 'Trebuchet MS', Arial, sans-serif; font-weight: 700; font-size: 1.25rem;
  color: #fff; margin: 0 0 1rem;
}
.daily-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: #c2410c;
  padding: .55rem 1.4rem; border-radius: 22px;
  font-weight: 700; font-size: .88rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  transition: transform .2s, box-shadow .2s;
}
.daily-btn:hover {
  transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.22);
  text-decoration: none; color: #c2410c;
}

/* ===== Section titles ===== */
.section-title {
  font-family: system-ui, -apple-system, 'Trebuchet MS', Arial, sans-serif; font-size: 1.25rem; font-weight: 700;
  color: #0d2a4a; margin-bottom: 1.15rem;
  display: flex; align-items: center; gap: .7rem;
}
.section-title .title-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #1a6bc7; flex-shrink: 0;
  box-shadow: 0 0 0 3px #deeeff;
}
.section-count {
  font-size: .78rem; font-weight: 600;
  color: #1a6bc7; background: #deeeff;
  padding: 2px 10px; border-radius: 20px; margin-left: .4rem;
}

/* ===== Cards / grids ===== */
.worlds-grid-section, .packs-section, .levels-section,
.blocks-grid-section, .packs-grid-section { margin-top: 2rem; }

.worlds-grid, .packs-grid, .levels-grid, .countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .6rem; margin-bottom: 2rem;
}
.world-card, .pack-card, .level-card, .country-card {
  display: flex; align-items: center; justify-content: center;
  padding: .75rem .5rem;
  background: #fff; border: 1.5px solid #b3d9f5;
  border-radius: 10px;
  color: #0d2a4a; font-weight: 600; font-size: .88rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.07); transition: all .18s;
  text-decoration: none; text-align: center;
}
.world-card:hover, .pack-card:hover, .level-card:hover, .country-card:hover {
  background: #1a6bc7; color: #fff;
  border-color: #1a6bc7;
  transform: translateY(-2px); box-shadow: 0 4px 12px rgba(26,107,199,.2);
  text-decoration: none;
}

/* Word Cookies specific pack cards */
.pack-card.colored {
  flex-direction: column; gap: .4rem;
  padding: 1.1rem .8rem; min-height: 80px;
  color: #fff; border: none;
}
.pack-card.colored:hover { color: #fff; }
.pack-card .emoji { font-size: 1.6rem; line-height: 1; }
.pack-card .name { font-size: .85rem; font-weight: 700; }
.pack-card .meta { font-size: .75rem; opacity: .85; }

/* Groups grid (Word Cookies) */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .7rem; margin-bottom: 2rem;
}
.group-card {
  background: #fff; border: 1.5px solid #b3d9f5;
  border-radius: 10px; padding: 1rem .8rem;
  text-align: center; transition: all .18s; text-decoration: none;
}
.group-card:hover {
  border-color: #1a6bc7; box-shadow: 0 4px 12px rgba(26,107,199,.2);
  transform: translateY(-2px); text-decoration: none;
}
.group-card .group-emoji { font-size: 1.4rem; margin-bottom: .3rem; }
.group-card .group-name { font-weight: 600; font-size: .9rem; color: #0d2a4a; }
.group-card .group-meta { font-size: .75rem; color: #1a5280; }

/* Levels list (Word Cookies) */
.levels-list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 2rem; }
.level-item {
  background: #fff; border: 1.5px solid #b3d9f5;
  border-radius: 10px; padding: .85rem 1.1rem;
  display: flex; justify-content: space-between; align-items: center;
  transition: all .18s; text-decoration: none;
}
.level-item:hover {
  border-color: #1a6bc7; transform: translateY(-1px);
  box-shadow: 0 1px 4px rgba(0,0,0,.07); text-decoration: none;
}
.level-item .level-label { font-weight: 600; color: #0d2a4a; }
.level-item .level-count { font-size: .82rem; color: #1a5280; }

/* Answer pills */
.answers-grid { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0; }
.answer-pill {
  background: #deeeff; border: 2px solid #1a6bc7;
  border-radius: 50px; padding: .35rem .9rem;
  font-weight: 700; font-size: .95rem;
  color: #0d4a9e; letter-spacing: .04em;
  transition: all .15s;
}
.answer-pill:hover { background: #1a6bc7; color: #fff; transform: translateY(-1px); }
.answer-pill.bonus {
  background: #eafaf0; border-color: #1e7a3c;
  color: #14532d;
}
.answer-pill.bonus:hover { background: #1e7a3c; color: #fff; }

/* Word Connect word entries */
.puzzle-block { margin-bottom: 1.75rem; }
.puzzle-heading {
  font-family: system-ui, -apple-system, 'Trebuchet MS', Arial, sans-serif; font-size: .95rem; font-weight: 700;
  color: #0d4a9e; margin-bottom: .8rem;
  padding: .3rem .9rem; background: #deeeff; border-radius: 6px;
  display: inline-block;
}
.words-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 7px;
}
.word-entry {
  background: #fff; border: 1px solid #b3d9f5;
  border-radius: 10px; padding: 9px 12px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0,0,0,.07); transition: border-color .15s, transform .15s;
}
.word-entry:hover { border-color: #1a6bc7; transform: translateY(-1px); }
.word-entry .w {
  font-family: system-ui, -apple-system, 'Trebuchet MS', Arial, sans-serif; font-weight: 700;
  font-size: 15px; text-transform: uppercase; color: #0d2a4a;
}
.word-entry .len {
  font-size: 11px; font-weight: 600;
  color: #1a6bc7; background: #deeeff;
  padding: 2px 6px; border-radius: 10px;
}

/* ===== Colorful feature cards ===== */
.feature-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem; margin-bottom: 2rem;
}
.feature-card { border-radius: 12px; padding: 1.3rem 1.25rem; }
.feature-card.fc-blue   { background: #eff6ff; border: 1.5px solid #bfdbfe; }
.feature-card.fc-orange { background: #fff7ed; border: 1.5px solid #fed7aa; }
.feature-card.fc-green  { background: #f0fdf4; border: 1.5px solid #bbf7d0; }
.feature-card.fc-purple { background: #faf5ff; border: 1.5px solid #e9d5ff; }
.feature-card .fc-icon { font-size: 1.8rem; margin-bottom: .5rem; }
.feature-card h3 { font-family: system-ui, -apple-system, 'Trebuchet MS', Arial, sans-serif; font-size: .95rem; font-weight: 700; margin-bottom: .3rem; }
.feature-card.fc-blue h3   { color: #1e40af; }
.feature-card.fc-orange h3 { color: #9a3412; }
.feature-card.fc-green h3  { color: #14532d; }
.feature-card.fc-purple h3 { color: #4c1d95; }
.feature-card p { font-size: .85rem; line-height: 1.6; margin: 0; color: #1a5280; }

/* ===== Pager ===== */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 2.5rem 0; }
.pager a {
  background: #fff; border: 1.5px solid #b3d9f5;
  border-radius: 12px; padding: 16px 20px;
  display: flex; flex-direction: column; gap: 5px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07); transition: all .18s; text-decoration: none;
}
.pager a:hover { border-color: #1a6bc7; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(26,107,199,.2); }
.pager a.next { align-items: flex-end; text-align: right; }
.pager div.empty { background: transparent; box-shadow: none; border: none; }
.pager .label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #1a6bc7; }
.pager .target { font-family: system-ui, -apple-system, 'Trebuchet MS', Arial, sans-serif; font-weight: 700; font-size: 14px; color: #0d2a4a; }

/* ===== About / FAQ ===== */
.about-section {
  margin-top: 2rem; background: #fff;
  border-radius: 14px; padding: 1.75rem 2rem;
  border: 1px solid #b3d9f5; box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.about-section h2, .about-section h3 {
  font-family: system-ui, -apple-system, 'Trebuchet MS', Arial, sans-serif; font-size: 1.1rem; font-weight: 700;
  color: #0d2a4a; margin-bottom: .8rem;
}
.about-section p { font-size: .95rem; color: #374151; line-height: 1.75; margin-bottom: .75rem; }
.about-section p:last-child { margin-bottom: 0; }
.about-section a { color: #1a6bc7; font-weight: 600; }
.about-section a:hover { text-decoration: underline; }

.faq-section { margin-top: 2rem; padding-top: 1.75rem; border-top: 2px solid #b3d9f5; }
.faq-section h2 { font-family: system-ui, -apple-system, 'Trebuchet MS', Arial, sans-serif; font-size: 1.1rem; font-weight: 700; color: #0d2a4a; margin-bottom: 1rem; }
.faq-item {
  background: #fff; border: 1px solid #b3d9f5;
  border-radius: 12px; padding: 1rem 1.3rem; margin-bottom: .6rem;
}
.faq-item h3 { font-family: system-ui, sans-serif; font-size: .93rem; font-weight: 600; color: #0d2a4a; margin-bottom: .35rem; }
.faq-item p { font-size: .88rem; color: #4b5563; line-height: 1.65; margin: 0; }

/* ===== Intro / appdescription ===== */
.appdescription { padding: 1.2rem 1.5rem; }
.appdescription .container { max-width: 960px; margin: 0 auto; }
.appdescription p { font-size: 1rem; line-height: 1.75; margin: 0; }
.appdescription strong { font-weight: 700; }

.intro-section { background: #fff; border-bottom: 1px solid #b3d9f5; padding: 28px 0 24px; }
.intro-section .wrap { max-width: 860px; }
.intro-lead { font-size: 1.05rem; line-height: 1.75; color: #0d2a4a; margin-bottom: .9rem; }
.intro-lead strong { font-weight: 700; }
.intro-section p { font-size: .95rem; line-height: 1.72; color: #4b5563; margin-bottom: .75rem; }
.intro-section p:last-child { margin-bottom: 0; }

/* ===== Footer ===== */
.site-footer {
  background: #0f172a; margin-top: 4rem; padding: 2.5rem 0 0;
  color: rgba(255,255,255,.8);
}
.footer-inner {
  max-width: 1000px; margin: 0 auto; padding: 0 22px 2rem;
  display: flex; gap: 2rem; flex-wrap: wrap;
  justify-content: space-between; align-items: flex-start;
}
.footer-brand { display: flex; flex-direction: column; gap: .4rem; }
.footer-brand strong { font-family: system-ui, -apple-system, 'Trebuchet MS', Arial, sans-serif; font-size: 1rem; font-weight: 700; color: #fff; }
.footer-brand em { color: #c4b5fd; font-style: normal; }
.footer-brand p { font-size: .85rem; max-width: 280px; line-height: 1.6; margin: 0; }
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { color: rgba(255,255,255,.85); font-size: .88rem; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-copy {
  background: rgba(0,0,0,.3); padding: 1rem 22px;
  text-align: center; font-size: .82rem; color: rgba(255,255,255,.75);
}
.footer-related {
  text-align: center; padding: 10px 0 4px;
  border-top: 1px solid rgba(255,255,255,0.1); margin-top: 10px;
}
.footer-related .related-label { font-size: 0.8rem; color: rgba(255,255,255,.75); margin-right: 8px; }
.footer-related a {
  display: inline-block; margin: 4px 8px; font-size: 0.85rem;
  color: inherit; opacity: 0.85; text-decoration: underline;
}
.footer-related a:hover { opacity: 1; }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  ./* mobile nav: show all links */
  .page-hero { padding: 2.5rem 1.25rem 3rem; }
  .page-hero h1 { font-size: 1.5rem; }
  .hero-sub { font-size: .95rem; }
  .pager { grid-template-columns: 1fr; gap: 8px; }
  .about-section { padding: 1.2rem; }
  .footer-inner { flex-direction: column; gap: 1.25rem; }
  .words-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .feature-strip { grid-template-columns: 1fr 1fr; }
  .worlds-grid, .packs-grid, .levels-grid, .countries-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
}

/* == GOLD STANDARD v4 UX ================================ */

#scroll-progress {
  position:fixed;top:0;left:0;height:3px;width:0;
  background:linear-gradient(90deg,#4aa8f5,#1a6bc7,#0d4a9e);
  z-index:9999;transition:width .1s linear;
  box-shadow:0 0 6px rgba(74,168,245,.6);
}
#back-to-top {
  position:fixed;bottom:24px;right:24px;
  width:44px;height:44px;border-radius:50%;
  background:linear-gradient(180deg,#4aa8f5,#1a6bc7);
  color:#fff;font-size:20px;line-height:44px;text-align:center;
  box-shadow:0 4px 14px rgba(26,107,199,.45);
  cursor:pointer;border:none;
  opacity:0;transform:translateY(12px);
  transition:opacity .25s,transform .25s;z-index:999;
}
#back-to-top.visible{opacity:1;transform:translateY(0);}
#back-to-top:hover{background:linear-gradient(180deg,#5ab8ff,#1a6bc7);}
#copy-toast {
  position:fixed;bottom:80px;left:50%;transform:translateX(-50%) translateY(10px);
  background:#0d2a4a;color:#fff;font-size:.85rem;font-weight:700;
  padding:.5rem 1.2rem;border-radius:22px;
  box-shadow:0 4px 16px rgba(0,0,0,.3);
  opacity:0;pointer-events:none;
  transition:opacity .2s,transform .2s;z-index:9998;white-space:nowrap;
}
#copy-toast.show{opacity:1;transform:translateX(-50%) translateY(0);}
.word-def-word,.answer-pill,.answer-card-head,.word-tile{cursor:pointer;user-select:none;}
@keyframes answers-pulse {
  0%  {box-shadow:0 0 0 0 rgba(74,168,245,0);}
  40% {box-shadow:0 0 0 8px rgba(74,168,245,.25);}
  100%{box-shadow:0 0 0 0 rgba(74,168,245,0);}
}
.answers-section.answers-highlight,.word-defs-list.answers-highlight{animation:answers-pulse .9s ease-out;}
@media(max-width:640px){
  .site-nav{flex-wrap:wrap!important;justify-content:flex-end;gap:2px;}
  .site-nav a{font-size:12px;padding:5px 9px;}
}
#hashover-end-links,[id*="-end-links"]{display:none!important;}
.info-section{margin:1.75rem 0;}
.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;}
.info-card{background:#fff;border:1.5px solid #b3d9f5;border-radius:14px;padding:1.3rem 1.2rem;text-align:center;box-shadow:0 2px 8px rgba(26,107,199,.08);transition:transform .18s,box-shadow .18s;}
.info-card:hover{transform:translateY(-3px);box-shadow:0 6px 18px rgba(26,107,199,.15);}
.info-icon{font-size:2rem;margin-bottom:.5rem;}
.info-card h3{font-size:1rem;font-weight:800;color:#1a5fa8;margin-bottom:.4rem;}
.info-card p{font-size:.87rem;color:#1e4d6b;line-height:1.55;margin:0;}
.level-jump{background:linear-gradient(135deg,#e8f4ff,#d0eaff);border:1.5px solid #7ab8e8;border-radius:14px;padding:1.2rem 1.4rem;margin:1.5rem 0;display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.level-jump label{font-weight:800;font-size:.95rem;color:#0d2a4a;white-space:nowrap;}
.level-jump input[type=number]{width:110px;padding:8px 12px;border:1.5px solid #7ab8e8;border-radius:8px;font-size:1rem;font-weight:700;color:#0d2a4a;outline:none;}
.level-jump input[type=number]:focus{border-color:#1a6bc7;}
.level-jump button{padding:9px 22px;background:linear-gradient(180deg,#4aa8f5,#1a6bc7);color:#fff;border:none;border-radius:8px;font-size:.95rem;font-weight:800;cursor:pointer;}
.footer-links{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:.3rem .9rem!important;}
.site-footer{margin-top:2rem!important;padding:.3rem 0 0!important;}
.footer-copy{padding:.4rem 22px!important;}
/* Mobile safety */
html,body{overflow-x:hidden}
*{box-sizing:border-box}


/* CC clue search */
.cc-search-section{background:#f0f8ff;border-bottom:1px solid #bae6fd;padding:1.5rem}
.cc-search-inner{max-width:960px;margin:0 auto}
.cc-search-box{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:.6rem}
.cc-search-input{flex:1 1 260px;padding:11px 15px;font-size:1rem;border:2px solid #b3d9f5;border-radius:8px;outline:none;min-width:0}
.cc-search-input:focus{border-color:#0369a1}
.cc-search-btn{padding:11px 22px;background:#0369a1;color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:700;cursor:pointer;white-space:nowrap}
.cc-search-btn:hover{background:#024d7a}
.cc-search-results{min-height:36px;margin-top:.25rem}
.cc-searching,.cc-no-results{font-size:.92rem;color:#6b7280;margin-top:.4rem}
.cc-results-grid{min-height:3rem;display:flex;flex-direction:column;gap:6px;margin-top:.5rem}
.cc-result-card{display:flex;justify-content:space-between;align-items:center;gap:.75rem 1rem;padding:.7rem 1rem;background:#fff;border:1px solid #b3d9f5;border-radius:8px;text-decoration:none;color:inherit;transition:background .15s;flex-wrap:wrap}
.cc-result-card:hover{background:#dbeafe;text-decoration:none}
.cr-clue{font-size:.93rem;color:#0d2a4a;line-height:1.4;flex:1 1 200px}
.cr-answer{font-weight:900;font-size:1rem;color:#0369a1;letter-spacing:.05em;white-space:nowrap}

/* CC daily section */
.cc-daily-section{background:#fff7ed;border-bottom:1px solid #fed7aa;padding:1rem 1.5rem}
.cc-daily-inner{max-width:960px;margin:0 auto}
.cc-daily-dates{display:flex;flex-wrap:wrap;gap:8px;margin:.5rem 0}
.cc-daily-date{display:inline-block;padding:6px 14px;background:#fff;border:1px solid #fed7aa;border-radius:20px;font-size:.88rem;font-weight:600;color:#c2410c;text-decoration:none}
.cc-daily-date:hover{background:#ffedd5;text-decoration:none}
.cc-daily-today{background:#c2410c;color:#fff;border-color:#c2410c}
.cc-daily-today:hover{background:#9a3412}
.cc-daily-archive-link{font-size:.85rem;color:#c2410c;font-weight:600}

/* CC content sections */
.cc-content-section{margin:1.75rem 0}
.cc-how-inner{display:flex;gap:1.5rem;align-items:flex-start;flex-wrap:wrap}
.cc-how-text{flex:1 1 280px}
.cc-steps-list{padding-left:1.2rem;display:flex;flex-direction:column;gap:.55rem;margin:.75rem 0}
.cc-steps-list li{font-size:.95rem;line-height:1.5}
.cc-how-visual{flex:0 0 220px;text-align:center}
.cc-mock-crossword{background:linear-gradient(135deg,#1e1b4b,#0369a1);border-radius:12px;padding:14px;text-align:left}
.cc-mock-title{font-size:.75rem;color:rgba(255,255,255,.75);margin-bottom:10px;font-style:italic}
.cc-mock-clue{font-size:.82rem;color:rgba(255,255,255,.85);display:flex;gap:6px;align-items:center}
.cc-mock-num{color:rgba(255,255,255,.5);white-space:nowrap}
.cc-mock-ans{font-weight:900;font-size:.95rem;color:#4ade80;letter-spacing:.06em;margin:.3rem 0 .6rem .85rem}
.cc-tips-list{padding-left:0;list-style:none;display:flex;flex-direction:column;gap:.7rem}
.cc-tips-list li{padding:.6rem .85rem;background:#fff;border-left:4px solid #0369a1;border-radius:0 6px 6px 0;font-size:.95rem;line-height:1.55}

/* CC sticky bar */
.cc-sticky-bar{position:fixed;bottom:0;left:0;right:0;z-index:200;background:linear-gradient(90deg,#0369a1,#1e1b4b);padding:10px 16px;text-align:center;transform:translateY(100%);transition:transform .25s ease;pointer-events:none}
.cc-sticky-bar.cc-sticky-visible{transform:translateY(0);pointer-events:auto}
.cc-sticky-link{color:#fff;font-weight:700;font-size:.95rem;text-decoration:none;display:inline-block}
.cc-sticky-link:hover{text-decoration:underline}
@media(min-width:768px){.cc-sticky-bar{display:none}}


/* CodyCross clue answer page */
.cc-clue-breadcrumb{font-size:.82rem;color:rgba(255,255,255,.65);margin-bottom:.5rem}
.cc-clue-breadcrumb a{color:rgba(255,255,255,.8);text-decoration:none}
.cc-clue-breadcrumb a:hover{color:#fff;text-decoration:underline}
.cc-clue-breadcrumb span{margin:0 .3rem;opacity:.5}
.cc-clue-answer-card{background:#dbeafe;border:2px solid #0369a1;border-radius:12px;padding:1.5rem;text-align:center;margin:1.5rem 0}
.cca-label{font-size:.8rem;text-transform:uppercase;letter-spacing:.1em;color:#4b5563;margin-bottom:.5rem}
.cca-answer{font-size:2.2rem;font-weight:900;color:#0369a1;letter-spacing:.12em;margin-bottom:.3rem}
.cca-letters{font-size:.9rem;color:#6b7280;margin-bottom:.6rem}
.cca-source{font-size:.88rem;color:#374151}
.cca-source a{color:#0369a1;font-weight:600}
.cc-related-grid{display:flex;flex-direction:column;gap:6px;margin-top:.5rem}
.cc-related-card{display:flex;justify-content:space-between;align-items:center;gap:.5rem;padding:.65rem 1rem;background:#f0f8ff;border:1px solid #b3d9f5;border-radius:8px;flex-wrap:wrap}
.ccr-clue{font-size:.92rem;color:#0c4a6e;text-decoration:none;flex:1}
a.ccr-clue:hover{color:#0369a1;text-decoration:underline}
.ccr-answer{font-weight:900;font-size:.9rem;color:#0369a1;white-space:nowrap;letter-spacing:.05em}

/* ============================================================
   CodyCross-specific components — redesigned for visual richness
   ============================================================ */

/* ── World search bar ──────────────────────────────────────── */
.world-search-wrap {
  margin: 0 0 1.5rem;
  position: relative;
}
.world-search {
  width: 100%;
  padding: .85rem 1.1rem .85rem 3rem;
  border: 2px solid var(--c-border);
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--c-text);
  background: var(--c-white);
  box-shadow: 0 2px 12px rgba(109,40,217,.08);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.world-search:focus {
  border-color: var(--c-purple);
  box-shadow: 0 0 0 3px rgba(109,40,217,.12);
}
.world-search-icon {
  position: absolute;
  left: 1.1rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  pointer-events: none;
}
.world-search-count {
  text-align: right;
  font-size: .82rem;
  color: var(--c-muted);
  margin-top: .4rem;
}

/* ── World grid ────────────────────────────────────────────── */
.worlds-grid-section { margin-top: 2rem; }
.worlds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.world-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  border-radius: 20px;
  padding: 1rem 1rem 1.1rem;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
  min-height: 155px;
  text-align: center;
}
.world-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
  text-decoration: none;
  color: #fff;
}
.world-card::before {
  content: '';
  position: absolute;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  right: -25px; top: -25px;
  pointer-events: none;
}
.world-card::after {
  content: '';
  position: absolute;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  left: -15px; bottom: -15px;
  pointer-events: none;
}
.world-emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: .5rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
  position: relative;
  z-index: 2;
  margin-top: auto;
}
.world-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  color: #fff;
  line-height: 1.3;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.world-number-badge {
  position: absolute;
  top: .7rem; left: .8rem;
  background: rgba(0,0,0,.3);
  color: rgba(255,255,255,.85);
  font-size: .7rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  padding: .15rem .5rem;
  border-radius: 20px;
  z-index: 3;
  letter-spacing: .05em;
}
.world-card .world-number { display: none; }
.world-card .world-arrow  { display: none; }

/* ── Groups grid with inline puzzles (world page — badge style) */
.groups-inline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: .85rem;
  margin-top: 1rem;
}
.group-inline-card {
  background: var(--c-white);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(109,40,217,.08);
  transition: box-shadow .18s, transform .18s;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem .75rem .75rem;
  text-align: center;
}
.group-inline-card:hover {
  box-shadow: 0 8px 28px rgba(109,40,217,.18);
  transform: translateY(-3px);
}
/* Circular group badge at top */
.group-inline-header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg,#5b21b6,#7c3aed);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: .78rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(109,40,217,.35);
  margin-bottom: .7rem;
  transition: transform .15s, box-shadow .15s;
  line-height: 1.2;
  flex-direction: column;
}
.group-inline-header:hover {
  color: #fff;
  text-decoration: none;
  transform: scale(1.07);
  box-shadow: 0 6px 20px rgba(109,40,217,.45);
}
.group-inline-header .grp-num {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}
.group-inline-header .grp-label {
  font-size: .58rem;
  font-weight: 600;
  opacity: .85;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.group-puzzle-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.group-puzzle-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .5rem;
  font-size: .84rem;
  color: #374151;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: background .12s, color .12s;
}
.group-puzzle-link::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}
.group-puzzle-link:hover {
  background: var(--c-light);
  color: var(--c-purple);
  text-decoration: none;
}
.group-puzzle-link:hover::before { background: var(--c-purple); }
.group-puzzle-link .pz-arrow { display: none; }
.group-puzzle-link .pz-meta {
  font-size: .72rem;
  color: #9ca3af;
  font-weight: 400;
  margin-left: auto;
}

/* ── Simple groups grid (group list style) ─────────────────── */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .8rem; margin-top: 1.25rem;
}
.group-card {
  position: relative;
  display: flex; flex-direction: column; gap: .25rem;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.1rem 1rem .9rem;
  text-decoration: none; color: #1e1b4b;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  overflow: hidden;
}
.group-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg,#1e1b4b,#7c3aed);
  border-radius: 14px 14px 0 0;
}
.group-card:hover {
  border-color: #c4b5fd;
  box-shadow: 0 4px 16px rgba(109,40,217,.15);
  transform: translateY(-2px);
  text-decoration: none; color: #1e1b4b;
}
.group-label { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: .95rem; }
.group-meta  { font-size: .8rem; color: #6b7280; }
.group-arrow {
  position: absolute; bottom: .8rem; right: .9rem;
  font-size: 1.1rem; color: #c4b5fd;
  transition: color .15s, transform .15s;
}
.group-card:hover .group-arrow { color: #6D28D9; transform: translateX(3px); }

/* ── Puzzles grid ──────────────────────────────────────────── */
.puzzles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .8rem; margin-top: 1.25rem;
}
.puzzle-card {
  position: relative;
  display: flex; flex-direction: column; gap: .3rem;
  background: linear-gradient(135deg,#1e1b4b 0%,#5b21b6 100%);
  border-radius: 14px;
  padding: 1.2rem 1rem 1rem;
  text-decoration: none; color: #fff;
  overflow: hidden;
  transition: opacity .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 3px 10px rgba(30,27,75,.2);
}
.puzzle-card::after {
  content: '';
  position: absolute; width: 70px; height: 70px;
  border-radius: 50%; background: rgba(255,255,255,.08);
  right: -15px; top: -15px;
}
.puzzle-card:hover {
  opacity: .92; transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(30,27,75,.3);
  text-decoration: none; color: #fff;
}
.puzzle-label { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: .95rem; position: relative; z-index: 1; }
.puzzle-meta  { font-size: .78rem; color: rgba(255,255,255,.7); position: relative; z-index: 1; }
.puzzle-arrow {
  position: absolute; bottom: .8rem; right: .9rem;
  font-size: 1.1rem; color: rgba(255,255,255,.5); z-index: 1;
  transition: color .15s, transform .15s;
}
.puzzle-card:hover .puzzle-arrow { color: rgba(255,255,255,.9); transform: translateX(3px); }

/* ── Section title ─────────────────────────────────────────── */
.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem; font-weight: 700; color: #1e1b4b;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: .6rem;
}
.section-title::before {
  content: '';
  display: inline-block; width: 5px; height: 1.4em;
  background: linear-gradient(180deg,#6D28D9,#5b21b6);
  border-radius: 4px; flex-shrink: 0;
}
.section-intro { font-size: .93rem; color: #6b7280; margin-bottom: 1.25rem; line-height: 1.65; }

/* ── Info cards ────────────────────────────────────────────── */
.info-section { margin-top: 2.5rem; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.info-card {
  background: linear-gradient(135deg,#1e1b4b,#5b21b6);
  border-radius: 16px; padding: 1.6rem 1.4rem; color: #fff; text-align: center;
  box-shadow: 0 6px 24px rgba(109,40,217,.16);
  transition: transform .15s, box-shadow .15s;
}
.info-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(109,40,217,.22); }
.info-icon { font-size: 2.5rem; margin-bottom: .7rem; }
.info-card h3 { font-family: 'Poppins', sans-serif; font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: .4rem; }
.info-card p  { font-size: .87rem; color: rgba(255,255,255,.82); line-height: 1.6; }

/* ── How-to steps ──────────────────────────────────────────── */
.how-section {
  margin-top: 2rem; background: #fff;
  border-radius: 20px; border: 1px solid #e5e7eb;
  padding: 2rem; box-shadow: 0 2px 8px rgba(109,40,217,.08);
}
.how-section h2 { font-family: 'Poppins', sans-serif; font-size: 1.25rem; font-weight: 700; color: #1e1b4b; margin-bottom: 1.25rem; }
.how-steps { list-style: none; counter-reset: steps; display: flex; flex-direction: column; gap: .9rem; }
.how-steps li {
  counter-increment: steps;
  display: flex; align-items: flex-start; gap: .9rem;
  font-size: .95rem; color: #374151; line-height: 1.65;
}
.how-steps li::before {
  content: counter(steps);
  display: flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px;
  background: linear-gradient(135deg,#1e1b4b,#5b21b6);
  color: #fff; border-radius: 50%;
  font-family: 'Poppins', sans-serif; font-size: .82rem; font-weight: 700;
  flex-shrink: 0; margin-top: .05rem;
}

/* ── Clue FAQ ──────────────────────────────────────────────── */
.clue-faq { margin-top: .75rem; }
.clue-faq .faq-item h3 { font-size: .9rem; font-weight: 500; color: #374151; }
.clue-faq .faq-answer { font-family: 'Poppins', sans-serif; font-weight: 700; color: #6D28D9; font-size: .95rem; letter-spacing: .04em; }

/* ── No-results ────────────────────────────────────────────── */
.no-results {
  text-align: center; color: var(--c-muted);
  font-size: .95rem; padding: 2rem 0; display: none;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .worlds-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .groups-inline-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
}
@media (max-width: 700px) {
  .worlds-grid { grid-template-columns: repeat(3, 1fr); }
  .groups-grid  { grid-template-columns: repeat(2, 1fr); }
  .puzzles-grid { grid-template-columns: repeat(2, 1fr); }
  .groups-inline-grid { grid-template-columns: repeat(3, 1fr); }
  .world-card   { min-height: 130px; }
  .world-emoji  { font-size: 2.4rem; }
  .info-grid    { grid-template-columns: 1fr; }
  .how-section  { padding: 1.25rem; }
}
@media (max-width: 480px) {
  .worlds-grid { grid-template-columns: repeat(2, 1fr); }
  .groups-inline-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Footer */
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:1.5rem;margin-top:1rem}
.footer-col h4{color:#93c5fd;font-size:.85rem;margin-bottom:.5rem;text-transform:uppercase;letter-spacing:.05em}
.footer-col a{display:block;color:rgba(255,255,255,.75);font-size:.85rem;padding:2px 0;text-decoration:none}
.footer-col a:hover{color:#fff;text-decoration:underline}
@media(max-width:768px){.footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.footer-grid{grid-template-columns:1fr}}
/* Puzzle page */
/* ── Answer table ─────────────────────────────────────────── */
.cc-answer-table{width:100%;border-collapse:collapse;font-size:.95rem;margin-top:1rem}
.cc-answer-table thead tr{background:#eaf3fc;color:#0d2a4a}
.cc-answer-table th{padding:10px 14px;text-align:left;font-weight:700;border-bottom:2px solid #d7e6f5}
.cc-answer-table td{padding:10px 14px;border-bottom:1px solid #e5eef7;vertical-align:middle}
.cc-answer-table tbody tr:nth-child(even){background:#f7fbff}
.cc-answer-table tbody tr:hover{background:#edf5ff}
a.cc-clue{color:#1e293b;text-decoration:none;line-height:1.5}
a.cc-clue:hover{color:#1a6bc7;text-decoration:underline}
strong.cc-answer{font-weight:900;color:#065f46;letter-spacing:.06em;white-space:nowrap}
.cc-len{color:#6b7280;font-size:.85rem;white-space:nowrap}

/* ── Bonus word callout ───────────────────────────────────── */
.cc-bonus-callout{background:#fff7ed;border-left:4px solid #ea580c;padding:12px 16px;border-radius:8px;margin-bottom:1.25rem}
.cc-bonus-callout strong{color:#c2410c}

/* ── Nearby puzzles ───────────────────────────────────────── */
.cc-nearby{margin:2rem 0}
.cc-nearby h3{font-size:1rem;font-weight:700;color:#0d2a4a;margin-bottom:.6rem;border-bottom:1px solid #d7e6f5;padding-bottom:.4rem}
.cc-popular-grid{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1.25rem}
.cc-popular-card{display:inline-flex;align-items:center;background:#fff;border:1px solid #d7e6f5;border-radius:10px;padding:.45rem .9rem;font-size:.88rem;color:#0d2a4a;text-decoration:none;font-weight:600;transition:border-color .15s,background .15s}
.cc-popular-card:hover{border-color:#1a6bc7;background:#eaf3fc;color:#0d2a4a;text-decoration:none}
.cc-popular-card.is-current{background:#eaf3fc;border-color:#4aa8f5;color:#1a6bc7;pointer-events:none}

/* ── Contextual prev/next nav ─────────────────────────────── */
.cc-ctx-nav{display:flex;justify-content:space-between;gap:1rem;margin:1.75rem 0}
.cc-ctx-nav .nav-left,.cc-ctx-nav .nav-right{display:flex}

.cc-fl-col{text-align:center}
@media(max-width:600px){
  .cc-answer-table th:nth-child(3),.cc-answer-table td:nth-child(3),
  .cc-answer-table th:nth-child(4),.cc-answer-table td:nth-child(4){display:none}
  .cc-ctx-nav{flex-direction:column;gap:.5rem}
  .cc-popular-grid{gap:.4rem}
}

/* ── Answer summary ───────────────────────────────────────── */
.cc-answer-summary{margin:1.25rem 0;padding:1rem 1.25rem;background:#f7fbff;border:1px solid #d7e6f5;border-radius:10px}
.cc-answer-summary h2{font-size:1.05rem;font-weight:800;color:#0d2a4a;margin:0 0 .5rem}
.cc-answer-summary p{font-size:.92rem;color:#374151;margin:.4rem 0;line-height:1.55}
.cc-len-chips{display:flex;flex-wrap:wrap;gap:6px;margin:.5rem 0}
.cc-len-chip{background:#eaf3fc;border:1px solid #d7e6f5;border-radius:20px;padding:4px 12px;font-size:.82rem;color:#0d2a4a;font-weight:600;white-space:nowrap}

/* ── How to solve ─────────────────────────────────────────── */
.cc-how-to-solve{margin:1.5rem 0;padding:1rem 1.25rem;background:#fff;border:1px solid #d7e6f5;border-radius:10px}
.cc-how-to-solve h2{font-size:1.05rem;font-weight:800;color:#0d2a4a;margin:0 0 .5rem}
.cc-how-to-solve p{font-size:.92rem;color:#374151;line-height:1.6;margin:0}

/* ── Popular worlds ───────────────────────────────────────── */
.cc-popular-worlds{margin:1rem 0}
.cc-popular-worlds h3{font-size:.95rem;font-weight:700;color:#0d2a4a;margin-bottom:.5rem}

/* Moved from critical inline */
#scroll-progress{position:fixed;top:0;left:0;height:3px;width:0;background:linear-gradient(90deg,#4aa8f5,#1a6bc7,#0d4a9e);z-index:9999;transition:width .1s linear}
.skip-link{position:absolute;top:-40px;left:0;background:#0369a1;color:#fff;padding:8px 12px;z-index:10000;font-size:.9rem;font-weight:700;text-decoration:none;border-radius:0 0 4px 0;transition:top .1s}
.skip-link:focus{top:0}
.appdescription{background:#e6f3ff;border-bottom:2px solid #b3d9f5;padding:1rem 1.5rem}
.appdescription p{font-size:.97rem;color:#0d3a6b;line-height:1.75;max-width:960px;margin:0 auto}
.content-box{background:#f0f8ff;border:1px solid #b3d9f5;border-radius:0 0 8px 8px;box-shadow:0 4px 16px rgba(0,0,0,.10);padding:22px 20px}
.byline{font-size:.8rem;color:#4b5563;margin-left:auto}
.byline a{color:#0369a1;text-decoration:none}
.parent-link{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}

/* Clue-by-clue notes */
.cc-clue-notes{margin:2rem 0}
.clue-note-card{background:#fff;border:1px solid #d7e6f5;border-left:4px solid #1a6bc7;border-radius:0 10px 10px 0;padding:.85rem 1.1rem;margin-bottom:.6rem;transition:border-color .15s,transform .12s}
.clue-note-card:hover{border-left-color:#0d4a9e;transform:translateX(3px)}
.clue-note-head{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin-bottom:.35rem}
.clue-note-q{font-family:'Trebuchet MS',sans-serif;font-weight:700;font-size:.98rem;color:#0d2a4a;line-height:1.4}
.clue-note-len{font-size:.72rem;font-weight:700;color:#1a6bc7;background:#deeeff;padding:2px 9px;border-radius:20px;white-space:nowrap}
.clue-note-body p{font-size:.9rem;color:#2a5070;line-height:1.6;margin:0}
.clue-note-answer{color:#065f46;letter-spacing:.05em}
a .clue-note-answer:hover{color:#0369a1}
@media(max-width:600px){.clue-note-head{flex-direction:column;gap:.2rem}}
