/* 5-letter word list pages (/5-letter-words, owner 2026-11-15). Uses the game's own tile colours and theme tokens (variables.css),
   so light and dark come for free. Phone-first: 360 px and up; Chromebooks get a wider column. */
.wl { padding-top: 26px; padding-bottom: 64px; max-width: 880px; }   /* the header and the event strip already take their own space */
.wl p, .wl li { color: var(--text-secondary); font-size: 17px; line-height: 1.7; }
.wl a { color: var(--accent-primary); }
.wl h2 { font-family: var(--font-heading); font-weight: 400; font-size: clamp(24px, 4.2vw, 30px); line-height: 1.2; margin: 0 0 12px; color: var(--text-primary); text-wrap: balance; }
.wl h3 { font-size: 17px; margin: 0 0 8px; color: var(--text-primary); }
.wl h3 small { font-weight: 600; color: var(--text-tertiary); font-size: 13px; margin-left: 4px; }
.wl-sec { margin-top: 44px; }
.wl-sec ul:not([class]) { padding-left: 1.2em; }

/* breadcrumb */
.wl-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; font-size: 13.5px; color: var(--text-tertiary); margin-bottom: 12px; }
.wl-crumbs span { padding: 6px 0; }   /* same height as the links, so all three sit on one line */
.wl-crumbs a { color: var(--text-tertiary); text-decoration: none; display: inline-block; padding: 6px 0; } .wl-crumbs a:hover { color: var(--accent-primary); }

/* hero: the pattern as game tiles, the page's letter in green */
.wl-hero { text-align: center; }
.wl-hero h1 { font-family: var(--font-heading); font-weight: 400; font-size: clamp(32px, 6vw, 50px); line-height: 1.08; margin: 18px 0 12px; color: var(--text-primary); text-wrap: balance; }
.wl-hero > p { max-width: 640px; margin: 0 auto; }
.wl-tiles { display: inline-flex; gap: 6px; vertical-align: middle; }
.wl-tiles i { font-style: normal; display: grid; place-items: center; width: 34px; height: 38px; border-radius: 8px; font: 400 20px/1 var(--font-heading); color: #fff;
  background: linear-gradient(180deg, var(--tile-gradient-to), var(--tile-gradient-from)); box-shadow: 0 3px 0 var(--tile-shadow-color); text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.wl-tiles i.is-gap { background: var(--tile-empty-bg); border: 2px dashed var(--tile-empty-border); box-shadow: none; }
.wl-tiles--hero i { width: 54px; height: 60px; border-radius: 12px; font-size: 32px; box-shadow: 0 5px 0 var(--tile-shadow-color), 0 8px 16px rgba(0,0,0,.12); }
.wl-tiles--hero i.is-gap { background: var(--tile-empty-bg); box-shadow: none; }
.wl-tiles--start i:first-child, .wl-tiles--end i:last-child, .wl-tiles i.is-g { background: linear-gradient(180deg, var(--correct-to), var(--correct)); box-shadow: 0 5px 0 var(--correct-shadow), 0 8px 16px rgba(0,0,0,.12); }
.wl-tiles i.is-y { background: linear-gradient(180deg, var(--present-to), var(--present)); box-shadow: 0 5px 0 var(--present-shadow), 0 8px 16px rgba(0,0,0,.12); }
.wl-tiles--hero i:not(.is-gap):not(.is-g):not(.is-y):not(:first-child):not(:last-child) { background: linear-gradient(180deg, var(--absent-to), var(--absent)); box-shadow: 0 5px 0 var(--absent-shadow); }
.wl-tiles--mini i { width: 30px; height: 34px; font-size: 18px; border-radius: 7px; }
.wl-tiles--mini i.is-gap { background: linear-gradient(180deg, var(--present-to), var(--present)); border: 0; box-shadow: 0 3px 0 var(--present-shadow); }
.wl-stats { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 18px 0 8px; }
.wl-stats li { font-size: 14px; line-height: 1; padding: 9px 13px; border-radius: 999px; background: var(--bg-secondary); border: 1px solid var(--border-color); color: var(--text-secondary); }
.wl-stats b { color: var(--text-primary); font-size: 15px; }
.wl-up { font-size: 13px !important; color: var(--text-tertiary) !important; margin-top: 6px !important; }

/* cards */
.wl-card { margin-top: 26px; padding: 20px 18px; border-radius: 22px; background: var(--bg-card-solid, var(--bg-card)); border: 1px solid var(--border-color); box-shadow: 0 10px 30px rgba(15, 23, 42, .08); }
[data-theme="dark"] .wl-card { background: var(--bg-card); }

/* finder */
.wf-h { text-align: center; font-size: 24px !important; margin-bottom: 14px !important; }
.wf-slots { display: flex; justify-content: center; gap: 7px; }
.wf-slot { width: 54px; height: 60px; border-radius: 12px; text-align: center; font: 400 28px/1 var(--font-heading); text-transform: uppercase; color: var(--text-primary);
  background: var(--tile-empty-bg); border: 2px solid var(--tile-empty-border); outline: none; padding: 0; caret-color: var(--accent-primary); }
.wf-slot:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(59,130,246,.18); }
.wf-slot.is-on, .wf-slot.is-lock { color: #fff; border-color: transparent; background: linear-gradient(180deg, var(--correct-to), var(--correct)); box-shadow: 0 4px 0 var(--correct-shadow); text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.wf-slot.is-lock { cursor: default; }
.wf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.wf-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.wf-field span { font-size: 13px; font-weight: 800; color: var(--text-secondary); }
.wf-field span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.wf-field--y span::before { background: var(--present); } .wf-field--n span::before { background: var(--absent-to); }
.wf-field input { min-width: 0; height: 46px; border-radius: 12px; padding: 0 12px; font: 700 17px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--text-primary);
  background: var(--bg-secondary); border: 1.5px solid var(--border-color); outline: none; }
.wf-field input:focus { border-color: var(--accent-primary); }
.wf-field input::placeholder { letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--text-tertiary); }
.wf-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.wf-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--text-secondary); cursor: pointer; }
.wf-check { min-height: 40px; }
.wf-check input { width: 24px; height: 24px; accent-color: var(--correct); }
.wf-clear { border: 0; background: none; color: var(--accent-primary); font: 800 14px/1 var(--font-body); padding: 8px 4px; cursor: pointer; }
.wf-count { margin: 14px 0 0 !important; font-size: 14.5px !important; font-weight: 700; text-align: center; color: var(--text-secondary); }
.wf-out:empty { display: none; }
.wf-out { margin-top: 12px !important; }
.wf-more[hidden] { display: none; }   /* without this, display:block showed an empty button */
.wf-more { display: block; margin: 12px auto 0; border: 1.5px solid var(--border-color); background: var(--bg-secondary); color: var(--text-primary); border-radius: 12px; padding: 10px 16px; font: 800 14px/1 var(--font-body); cursor: pointer; }

/* word chips */
.wl-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.wl-chips li { font: 700 15px/1 var(--font-body); letter-spacing: .06em; color: var(--text-primary); padding: 8px 9px; border-radius: 9px; background: var(--bg-secondary); border: 1px solid var(--border-color); }
.wl-chips li b { color: var(--correct); font-weight: 900; }
[data-theme="light"] .wl-chips li b { color: #15803D; }
.wl-chips li.is-rare, .wl-chips--rare li { font-weight: 600; color: var(--text-secondary); background: transparent; }
.wl-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px; }
.wl-jump a { text-decoration: none; font: 800 13.5px/1 var(--font-body); padding: 8px 10px; border-radius: 999px; border: 1.5px solid var(--border-color); color: var(--text-primary); background: var(--bg-card); }
.wl-jump a small { color: var(--text-tertiary); font-weight: 700; margin-left: 2px; }
.wl-jump a:hover { border-color: var(--accent-primary); }
.wl-group { margin-top: 18px; scroll-margin-top: 90px; }

/* trap families and starters */
.wl-fams { display: grid; gap: 10px; margin-top: 14px; }
.wl-fam { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: var(--bg-secondary); border: 1px solid var(--border-color); }
.wl-fam p { margin: 0; font-size: 15.5px; line-height: 1.5; min-width: 0; }
.wl-fam p b { color: var(--text-primary); margin-right: 4px; }
/* the page's own letter is green in every tile row, like the hero */
.wl-fams--end .wl-tiles i:last-child, .wl-fams--start .wl-tiles i:first-child { background: linear-gradient(180deg, var(--correct-to), var(--correct)); box-shadow: 0 3px 0 var(--correct-shadow); }
.wl-starters { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; padding: 0; margin: 14px 0 0; }
.wl-starters li { display: flex; justify-content: center; padding: 14px 8px; border-radius: 16px; background: var(--bg-secondary); border: 1px solid var(--border-color); }
.wl-starters .wl-tiles i { background: linear-gradient(180deg, var(--correct-to), var(--correct)); box-shadow: 0 3px 0 var(--correct-shadow); }
.wl-play { text-align: center; margin-top: 16px; }
.wl a.btn { color: #fff; text-decoration: none; }

/* everything else */
.wl-all { margin-top: 12px; border: 1px solid var(--border-color); border-radius: 16px; padding: 4px 14px; background: var(--bg-card); }
.wl-all summary { cursor: pointer; padding: 12px 0; font-weight: 800; color: var(--accent-primary); }
.wl-all[open] summary { margin-bottom: 8px; }
.wl-all .wl-chips { padding-bottom: 14px; }
.wl-faq details { padding: 14px 0; border-bottom: 1px solid var(--border-color); }
.wl-faq summary { font-weight: 800; cursor: pointer; color: var(--text-primary); font-size: 17px; }
.wl-faq details p { margin: 8px 0 0; }
.wl-related { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 0; }
.wl-related a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px; border-radius: 16px; text-decoration: none; background: var(--bg-card); border: 1.5px solid var(--border-color); }
.wl-related a:hover { border-color: var(--accent-primary); }
.wl-related b { color: var(--text-primary); font-size: 16px; }
.wl-related span { color: var(--text-secondary); font-size: 14px; line-height: 1.45; }
.wl-tbl { overflow-x: auto; margin-top: 14px; border-radius: 14px; border: 1px solid var(--border-color); }
.wl-tbl table { width: 100%; border-collapse: collapse; font-size: 15px; }
.wl-tbl th, .wl-tbl td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border-light); color: var(--text-secondary); white-space: nowrap; }
.wl-tbl thead th { background: var(--bg-secondary); color: var(--text-primary); font-size: 13.5px; }
.wl-tbl tbody th { color: var(--text-primary); font-family: var(--font-heading); font-weight: 400; font-size: 18px; }
.wl-tbl td a { font-weight: 800; display: inline-block; padding: 4px 0; } .wl-tbl small { color: var(--text-tertiary); margin-left: 4px; }
@media (max-width: 520px) { .wl-tbl th, .wl-tbl td { white-space: normal; padding: 8px 10px; } .wl-tbl small { display: block; margin: 2px 0 0; font-size: 12.5px; } }
.wl-bar { margin-top: 44px; padding: 16px; border-radius: 18px; background: var(--bg-secondary); border: 1px solid var(--border-color); display: grid; gap: 10px; }
.wl-bar div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wl-bar span:not(.sr-only) { font-size: 13px; font-weight: 800; color: var(--text-tertiary); width: 100%; }
.wl-bar a { display: grid; place-items: center; width: 38px; height: 40px; border-radius: 9px; text-decoration: none; font: 400 19px/1 var(--font-heading); color: #fff;
  background: linear-gradient(180deg, var(--tile-gradient-to), var(--tile-gradient-from)); box-shadow: 0 3px 0 var(--tile-shadow-color); }
.wl-bar a[aria-current] { background: linear-gradient(180deg, var(--correct-to), var(--correct)); box-shadow: 0 3px 0 var(--correct-shadow); }

@media (max-width: 420px) {
  .wl { padding-top: 16px; }
  .wl p, .wl li { font-size: 16px; }
  .wl-tiles--hero i, .wf-slot { width: 48px; height: 54px; font-size: 26px; }
  .wf-slots { gap: 6px; }
  .wl-card { padding: 18px 14px; }
  .wl-related { grid-template-columns: 1fr; }
  .wl-fam { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 370px) {
  .wl-tiles--hero i, .wf-slot { width: 44px; height: 50px; font-size: 24px; }
  .wf-row { grid-template-columns: 1fr; }
  .wl-chips li { font-size: 14px; padding: 7px 8px; }
}


/* ── v2 (owner 2026-11-16) ── */
/* game buttons under the finder */
.wl-cta { margin-top: 18px; padding: 16px; border-radius: 18px; background: var(--bg-secondary); border: 1px solid var(--border-color); text-align: center; }
.wl-cta p { margin: 0 0 10px !important; font-weight: 800; color: var(--text-primary) !important; font-size: 15.5px !important; }
.wl-cta div { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.wl-cta .btn { min-height: 44px; display: inline-flex; align-items: center; }
/* letter share bars */
.wl-bars { list-style: none; padding: 0 !important; margin: 14px 0 0; display: grid; gap: 7px; max-width: 560px; }
.wl-bars li { display: grid; grid-template-columns: 30px 1fr 48px; align-items: center; gap: 10px; }
.wl-bars b { display: grid; place-items: center; width: 30px; height: 32px; border-radius: 7px; font: 400 18px/1 var(--font-heading); color: #fff;
  background: linear-gradient(180deg, var(--tile-gradient-to), var(--tile-gradient-from)); box-shadow: 0 3px 0 var(--tile-shadow-color); }
.wl-bars span { height: 12px; border-radius: 999px; background: var(--bg-secondary); border: 1px solid var(--border-color); position: relative; overflow: hidden; }
.wl-bars span::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 999px; background: linear-gradient(90deg, var(--present), var(--correct)); }
.wl-bars em { font-style: normal; font-weight: 800; font-size: 14.5px; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.wl-next { margin-top: 14px !important; }
.wl-next b { color: var(--text-primary); letter-spacing: .04em; }
/* word meanings */
.wl-means { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 14px 0 0; }
.wl-means div { padding: 12px 14px; border-radius: 14px; background: var(--bg-secondary); border: 1px solid var(--border-color); }
.wl-means dt { font: 400 19px/1.1 var(--font-heading); letter-spacing: .05em; color: var(--text-primary); }
.wl-means dd { margin: 4px 0 0; color: var(--text-secondary); font-size: 15px; line-height: 1.5; }
/* hub A to Z */
.wl-az { margin-top: 16px; scroll-margin-top: 90px; }
.wl-az h3 small { font-weight: 700; }
.wl-more { display: inline-block; margin-top: 8px; padding: 6px 0; font-weight: 800; font-size: 14.5px; text-decoration: none; }
/* the full list of rarer words, shown openly and compact */
.wl-rare-all { gap: 4px 6px; }
.wl-rare-all li { font-size: 13.5px; padding: 6px 7px; border-color: transparent; }
@media (max-width: 420px) { .wl-cta .btn { flex: 1 1 calc(50% - 8px); justify-content: center; text-align: center; white-space: normal; line-height: 1.15; min-height: 50px; padding: 6px 8px; font-size: 14px; } .wl-means { grid-template-columns: 1fr; } }

/* ── v3 (owner 2026-11-16): quick filters, hand-over to the hub, more ways to play ── */
.wf-lead { margin: 0 0 10px !important; text-align: center; font-size: 15px !important; color: var(--text-secondary) !important; }
.wf-presets { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 14px; }
.wf-preset { min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--border-color); background: var(--bg-secondary); color: var(--text-primary);
  font: 800 14px/1 var(--font-body); letter-spacing: .06em; cursor: pointer; }
.wf-preset:hover { border-color: var(--accent-primary); }
.wf-preset.is-on { color: #fff; border-color: transparent; background: linear-gradient(180deg, var(--correct-to), var(--correct)); box-shadow: 0 3px 0 var(--correct-shadow); }
.wf-fullp, .wf-suggest { text-align: center; margin: 14px 0 0 !important; }
.wf-full, .wf-suggest a { display: inline-block; padding: 8px 4px; font-weight: 800; font-size: 15px; text-decoration: none; }
.wf-suggest a { margin: 0 8px; }
.wf-suggest[hidden] { display: none; }
.wl-cta-more { margin: 12px 0 0 !important; font-size: 14.5px !important; line-height: 1.9 !important; }
.wl-cta-more a { font-weight: 800; text-decoration: none; padding: 4px 0; }
