/* WordHint Pips homepage, professional design.
   Theme derived from the original NYT Pips game: soft lavender-pink
   screen, deep purple primary, pink accent, muted zone colors
   (purple, pink, teal, green, orange, blue), white and cream dominoes
   with black pips, and a tan free space. No external fonts or assets. */
:root {
  --paper: #f7f1f5;
  --paper-2: #efe3f1;
  --card: #ffffff;
  --ink: #2b2530;
  --muted: #6d6474;
  --plum: #6d4c9e;
  --plum-deep: #4e3572;
  --pink: #c94f7c;
  --pink-soft: #fbe9f0;
  --line: #e4d9e2;
  --cream: #fffdf6;
  --domino-line: #3a352c;
  --shadow-sm: 0 1px 3px rgba(78, 53, 114, .10), 0 1px 6px rgba(78, 53, 114, .06);
  --shadow-md: 0 6px 18px rgba(78, 53, 114, .12), 0 2px 6px rgba(78, 53, 114, .08);
  --shadow-lg: 0 14px 34px rgba(78, 53, 114, .18), 0 4px 10px rgba(78, 53, 114, .10);
  --radius: 18px;
  --maxw: 880px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  background-image: radial-gradient(900px 320px at 50% -80px, #f3e2f5 0%, rgba(243, 226, 245, 0) 70%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--plum); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

/* Header */
header.site {
  background: linear-gradient(180deg, #efe3f1 0%, #f7f1f5 100%);
  border-bottom: 1px solid var(--line);
  padding: 22px 16px 16px;
  text-align: center;
}
.logo {
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: .01em;
  color: var(--plum-deep);
  margin: 0;
  line-height: 1.1;
}
.logo span { color: var(--pink); }
.tagline { color: var(--muted); font-size: .95rem; margin: 4px 0 12px; }
.date-pill {
  display: inline-block;
  background: var(--plum);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  border-radius: 999px;
  padding: 6px 16px;
  box-shadow: var(--shadow-sm);
}
nav.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 14px 12px 0;
  max-width: var(--maxw);
  margin: 0 auto;
}
nav.jump a {
  font-size: .85rem;
  font-weight: 700;
  color: var(--plum-deep);
  text-decoration: none;
  border: 1px solid #d9c8e2;
  background: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  box-shadow: var(--shadow-sm);
  transition: background .15s ease, transform .15s ease;
}
nav.jump a:hover { background: #f1e6f5; transform: translateY(-1px); }

/* Layout and hero */
main { max-width: var(--maxw); margin: 0 auto; padding: 8px 20px 48px; }
.hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 5px solid var(--plum);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  padding: 28px 28px 22px;
  margin: 20px 0 8px;
}
h1 {
  font-size: 2rem;
  line-height: 1.25;
  color: var(--plum-deep);
  text-align: center;
  margin: 4px 0 14px;
  letter-spacing: -.01em;
}
h2 {
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--plum-deep);
  margin: 48px 0 12px;
  padding: 0 0 10px 14px;
  border-left: 4px solid var(--pink);
  border-bottom: 1px solid var(--line);
}
h3 { font-size: 1.15rem; color: var(--plum-deep); margin: 26px 0 8px; }
p { margin: 0 0 14px; }
.lede { font-size: 1.08rem; line-height: 1.7; color: #3d3444; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px;
  margin: 18px 0;
  box-shadow: var(--shadow-sm);
}
.hero .card { box-shadow: none; border: 1px dashed #d9c8e2; background: #fdf9fd; margin: 18px 0 4px; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 20px; }
.facts li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding: 7px 0; font-size: .95rem; }
.facts li:last-child { border-bottom: 0; }
.facts span { color: var(--muted); }
.facts b { color: var(--plum-deep); }
ul.tight, ol.tight { margin: 0 0 14px; padding-left: 22px; }
ul.tight li, ol.tight li { margin-bottom: 10px; }
table.zones { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: .95rem; box-shadow: var(--shadow-sm); border-radius: 12px; overflow: hidden; }
table.zones th, table.zones td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
table.zones th { background: var(--plum-deep); color: #fff; }
table.zones tr:nth-child(even) td { background: #faf6fb; }
details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 0 0 10px; box-shadow: var(--shadow-sm); }
details summary { cursor: pointer; font-weight: 700; color: var(--plum-deep); }
details p { margin: 8px 0 4px; }
.coming { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.coming li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.coming .soon {
  float: right;
  font-size: .72rem;
  font-weight: 800;
  color: var(--pink);
  border: 1px solid var(--pink);
  border-radius: 999px;
  padding: 2px 9px;
  background: var(--pink-soft);
}
footer.site {
  border-top: 1px solid var(--plum-deep);
  background: var(--plum-deep);
  color: #e8ddf2;
  font-size: .88rem;
  text-align: center;
  padding: 28px 16px 34px;
}
footer.site p { max-width: 680px; margin: 0 auto 10px; }

/* Pips solver: original game style. White and cream dominoes, black pips,
   center divider, earthy muted zones. Revealed cells are white and cream,
   never zone colored. */
.play-pips { text-align: center; }
.tool-card {
  border: 1px solid #d9c8e2;
  border-top: 5px solid var(--pink);
  box-shadow: var(--shadow-lg);
  padding: 24px 20px 20px;
}
.pp-tabs {
  display: inline-flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 auto 16px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}
.pp-tab {
  border: 0;
  background: transparent;
  color: var(--plum-deep);
  font-weight: 700;
  border-radius: 999px;
  padding: 9px 22px;
  cursor: pointer;
  font-size: .92rem;
  font-family: inherit;
  transition: background .15s ease, box-shadow .15s ease;
}
.pp-tab.on { background: var(--plum); color: #fff; box-shadow: 0 2px 8px rgba(78, 53, 114, .35); }
#pp-board { display: grid; gap: 6px; margin: 6px auto 14px; justify-content: center; }
.pp-gap { visibility: hidden; width: var(--ppc, 64px); height: var(--ppc, 64px); }
.pp-cell {
  position: relative;
  border: 2px solid;
  border-radius: 10px;
  width: var(--ppc, 64px);
  height: var(--ppc, 64px);
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .1s ease, box-shadow .15s ease;
}
.pp-cell:hover { box-shadow: 0 3px 8px rgba(78, 53, 114, .25); }
.pp-cell:active { transform: scale(.96); }
.pp-cell.z-blue { background: #c3d9f2; border-color: #6ea3d8; }
.pp-cell.z-purple { background: #ddd0f2; border-color: #9370c0; }
.pp-cell.z-pink { background: #f5cfe0; border-color: #cf8aa9; }
.pp-cell.z-teal { background: #bfe6d9; border-color: #57a892; }
.pp-cell.z-orange { background: #f8d9b5; border-color: #dd9240; }
.pp-cell.z-green { background: #d2e9bf; border-color: #74a854; }
.pp-cell.z-free { background: var(--cream); border-color: #c9bfae; border-style: dashed; }
.pp-cell.pp-revealed { background: var(--cream) !important; border-color: var(--domino-line) !important; box-shadow: 0 2px 4px rgba(58, 53, 44, .12); }
.pp-mark {
  position: absolute;
  top: 2px;
  left: 5px;
  font-size: .68rem;
  font-weight: 800;
  color: rgba(43, 37, 48, .75);
  line-height: 1;
}
.pp-cell.pp-revealed .pp-mark { display: none; }
.pp-q { font-size: 1.5rem; font-weight: 700; color: #3a352c; opacity: .55; line-height: 1; }
.pips { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); width: 82%; aspect-ratio: 1 / 1; place-items: center; pointer-events: none; }
.pips i { border-radius: 50%; width: 75%; height: 75%; display: block; }
.pips i.on { background: #2c2a26; }
.pp-tray-label { font-size: .85rem; color: var(--muted); font-weight: 700; margin: 12px 0 8px; letter-spacing: .04em; text-transform: uppercase; }
#pp-tray { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 6px; }
.pp-tray-dom {
  border: 2px solid var(--domino-line);
  border-radius: 14px;
  background: var(--cream);
  padding: 6px 8px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 2px 4px rgba(58, 53, 44, .12);
  transition: box-shadow .15s ease, transform .1s ease, opacity .15s ease;
}
.pp-tray-dom:hover { box-shadow: 0 6px 12px rgba(58, 53, 44, .20); transform: translateY(-1px); }
.pp-tray-dom:active { transform: scale(.95); }
.pp-tray-dom.used { opacity: .35; filter: grayscale(.6); }
.pp-tray-dom .pdom { display: flex; align-items: center; }
.pp-tray-dom .phalf { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.pp-tray-dom .pdom .phalf:first-child { border-right: 2px solid var(--domino-line); }
#pp-msg {
  display: inline-block;
  min-height: 26px;
  text-align: center;
  font-weight: 700;
  font-size: .93rem;
  margin: 10px 0 4px;
  background: var(--paper-2);
  border-radius: 999px;
  padding: 5px 16px;
  color: var(--plum-deep);
}
#pp-msg.good { color: #fff; background: var(--plum); }
.pp-controls { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.pp-btn {
  border: 1px solid var(--plum);
  background: #fff;
  color: var(--plum-deep);
  font-weight: 700;
  border-radius: 999px;
  padding: 11px 24px;
  cursor: pointer;
  font-size: .92rem;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
  transition: background .15s ease, transform .15s ease;
}
.pp-btn:hover { background: #f1e6f5; transform: translateY(-1px); }
.pp-btn.primary { background: linear-gradient(135deg, var(--plum) 0%, var(--pink) 100%); color: #fff; border-color: transparent; }
.pp-btn.primary:hover { background: linear-gradient(135deg, var(--plum-deep) 0%, var(--pink) 100%); }
.pp-note { font-size: .88rem; color: var(--muted); text-align: center; margin: 12px 0 0; }

/* Solved boards in the answer section: rendered grids, white and cream. */
.ans-boards { display: none; margin-top: 14px; }
.ans-boards.show { display: block; }
.ans-board { margin: 0 0 22px; }
.ans-board h3 { text-align: center; margin: 0 0 8px; }
.ans-grid { display: grid; gap: 5px; justify-content: center; }
.ans-cell {
  width: var(--apc, 52px);
  height: var(--apc, 52px);
  background: var(--cream);
  border: 1px solid #c9bfae;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ans-gap { visibility: hidden; width: var(--apc, 52px); height: var(--apc, 52px); }
.ans-board p { text-align: center; font-size: .9rem; color: var(--muted); margin: 8px 0 0; }

@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .coming { grid-template-columns: 1fr; }
  table.zones { display: block; overflow-x: auto; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  .hero { padding: 20px 16px 16px; margin: 12px 0 8px; }
  main { padding: 8px 12px 32px; }
  .pp-tray-dom .phalf { width: 36px; height: 36px; }
  .pp-tab { padding: 8px 16px; font-size: .85rem; }
  .pp-btn { padding: 10px 18px; }
  .facts { grid-template-columns: 1fr; }
}

/* Site header and footer (same structure as the other site, Pips palette) */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.site-header { background: linear-gradient(180deg, #efe3f1 0%, #f7f1f5 100%); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-tiles { display: inline-flex; gap: 4px; }
.brand-tiles i { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; font-style: normal; font-weight: 900; font-size: 1.05rem; color: #fff; }
.brand-tiles .t-w { background: var(--plum); }
.brand-tiles .t-h { background: var(--pink); }
.brand-name { font-size: 1.45rem; font-weight: 900; color: var(--plum-deep); letter-spacing: .01em; }
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav > a { color: var(--plum-deep); font-weight: 700; text-decoration: none; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.main-nav > a:hover { background: #f1e6f5; }
.nav-dropdown { position: relative; }
.nav-drop-btn { border: 1px solid #d9c8e2; background: #fff; color: var(--plum-deep); font-weight: 700; font-size: .95rem; font-family: inherit; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.nav-drop-btn .caret { font-size: .8rem; }
.mega-menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 280px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 10px 12px 12px; z-index: 50; }
.nav-dropdown:hover .mega-menu, .nav-dropdown:focus-within .mega-menu { display: block; }
.mega-heading { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 10px 6px 4px; }
.mega-heading:first-child { margin-top: 2px; }
.mega-link { display: block; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.mega-link:hover { background: #faf6fb; }
.mega-link b { display: block; color: var(--plum-deep); font-size: .95rem; }
.mega-link small { color: var(--muted); font-size: .82rem; }
.hero-date { text-align: center; margin: 0 0 4px; }
.page { max-width: 780px; }
.page h1 { text-align: left; font-size: 1.9rem; }
.page-updated { color: var(--muted); font-size: .88rem; }
.page h2 { margin-top: 36px; }
.site-footer { border-top: 1px solid var(--plum-deep); background: var(--plum-deep); color: #e8ddf2; padding: 28px 0 10px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; padding-bottom: 20px; }
.footer-about p { color: #d9c8e8; font-size: .92rem; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 7px; }
.footer-links a { color: #e8ddf2; text-decoration: none; font-size: .92rem; }
.footer-links a:hover { text-decoration: underline; }
.footer-heading { font-weight: 800; color: #fff; margin: 0 0 10px; font-size: .95rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.22); padding-top: 16px; padding-bottom: 20px; text-align: center; }
.footer-legal .disclaimer { color: #d9c8e8; font-size: .85rem; max-width: 760px; margin: 0 auto 8px; }
.footer-legal .copyright { color: #c9b8d8; font-size: .85rem; margin: 0; }
.brand-footer .brand-name { color: #fff; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-inner { justify-content: center; text-align: center; }
  .main-nav { justify-content: center; }
  .mega-menu { position: static; box-shadow: none; border: 1px solid var(--line); margin-top: 8px; }
  .page h1 { font-size: 1.55rem; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
