/* Unstruck (client/daily-pick.js) */

/* Feedback colors. Color-blind mode (.dp-cb) swaps green/yellow for
   orange/blue, as Wordle's high-contrast mode does. */
#dailyPickScreen { --dp-hit: #3f9d4f; --dp-near: #c9a227; --dp-hit-light: #8fe0a3; }
#dailyPickScreen.dp-cb { --dp-hit: #f5793a; --dp-near: #3d8fd9; --dp-hit-light: #ffb48a; }

/* The screen wrapper's own tinted panel showed as a ghost around the card. */
#dailyPickScreen {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
#dailyPickScreen::before { display: none !important; }

#dailyPickScreen .dp-card {
  width: 100% !important;
  max-width: 560px;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  gap: 12px;
  padding: 12px 12px 16px !important;
}

/* ---------- Taps ----------
   No double-tap-zoom wait before a tap registers, no gray flash, and hover
   highlights only on devices with a real pointer (on phones they'd stick
   to the last tile tapped). */
#dailyPickScreen button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .dp-close:hover { background: #e05252; }
  .dp-help-btn:hover { background: rgba(255,255,255,.08); }
  .dp-word:not([disabled]):not(.is-selected):hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.28); }
}

/* ---------- Header: clock | title | help, close ---------- */
.dp-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.dp-head-buttons { display: flex; gap: 6px; justify-content: flex-end; }
.dp-card .menu-title {
  margin: 0 !important;
  font-size: clamp(19px, 5.6vw, 24px);
  line-height: 38px;
  letter-spacing: .06em;
  white-space: nowrap;
}
.dp-title-grid { margin-left: 8px; font-size: .7em; opacity: .65; letter-spacing: .04em; }
.dp-clock {
  justify-self: start;
  padding-left: 4px;
  line-height: 38px;
  font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums;
  opacity: .75;
}
.dp-close {
  width: 38px; height: 38px; padding: 0;
  border: 0; border-radius: 50%;
  background: #d64545; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.dp-close:active { transform: scale(.92); }
.dp-close svg { display: block; }
/* The clock is hidden on the scorecard; keep its column so the title stays centered. */
.dp-clock[hidden] { display: block !important; visibility: hidden; }
.dp-help-btn {
  width: 36px; height: 36px; padding: 0;
  border: 1.5px solid rgba(255,255,255,.3); border-radius: 50%;
  background: transparent; color: inherit;
  font-weight: 800; cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.dp-help-btn:active { transform: scale(.92); }

/* ---------- How to play ---------- */
.dp-help {
  width: 100%; box-sizing: border-box;
  padding: 6px 8px 4px;
  text-align: left;
  font-size: 15px; line-height: 1.5;
}
.dp-help[hidden], #dailyPickRoot[hidden] { display: none; }
.dp-help h3 { margin: 0 0 10px; font-size: 21px; text-align: center; }
.dp-help p { margin: 0 0 10px; }
.dp-help ul { margin: 0 0 10px; padding-left: 18px; }
.dp-help li { margin-bottom: 8px; }
.dp-help-chip { display: inline-block; width: 13px; height: 13px; border-radius: 3px; vertical-align: -1px; }
.dp-help .dp-next { display: block; margin: 14px auto 0; }

/* ---------- First-visit pop-up ---------- */
.dp-intro {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  border-radius: inherit;
  background: rgba(8,12,18,.6);
}
.dp-intro[hidden] { display: none; }
.dp-intro-card {
  max-width: 300px;
  padding: 22px 22px 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: #16202e;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  text-align: center;
  font-size: 17px; line-height: 1.45;
}
.dp-intro-card p { margin: 0 0 8px; }
.dp-intro-card .dp-next { margin-top: 10px; padding: 11px 36px; }
.dp-intro-more { margin-top: 12px; font-size: 13px; opacity: .6; }

#dailyPickRoot { width: 100%; align-self: stretch; }

/* ---------- Word grid ---------- */
.dp-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
}
.dp-word {
  position: relative;
  font-family: inherit;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: 26px 0;
  border: 1.5px solid rgba(255,255,255,.16);
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  color: inherit;
  cursor: pointer;
  transition: transform .1s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
.dp-word:not([disabled]):active { transform: scale(.96); }
.dp-word[disabled] { cursor: default; }
/* The word lined up to guess: solid blue, lifted, with a soft glow. */
.dp-word.is-selected {
  background: #3b7dd8;
  border-color: #9cc8ff;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px rgba(111,177,255,.35), 0 6px 16px rgba(59,125,216,.45);
}
.dp-word.just-selected { animation: dp-lift .2s ease-out; }
@keyframes dp-lift {
  0% { transform: translateY(0) scale(.95); }
  60% { transform: translateY(-3px) scale(1.03); }
  100% { transform: translateY(-2px) scale(1); }
}

/* Struck words, as in Cuddle's preset challenge: the word fades back and a
   bright red line runs through it. Only the text and frame dim, so the line
   stays vivid. The line is drawn rather than text-decoration so it can sweep
   across when a word is struck. */
.dp-word.is-struck {
  color: rgba(255,255,255,.34);
  border-color: rgba(255,120,120,.22);
  background: rgba(255,90,90,.05);
}
.dp-word.is-struck::after {
  content: "";
  pointer-events: none;
  position: absolute; left: 10%; right: 10%; top: 50%;
  height: 3px; margin-top: -1.5px; border-radius: 3px;
  background: rgba(255,120,120,.95);
  box-shadow: 0 0 6px rgba(255,100,100,.45);
  transform-origin: left center;
}
/* Words already guessed: gold frame, the same line a little quieter. */
.dp-word.is-guessed { border-color: rgba(242,193,78,.6); background: rgba(255,255,255,.03); }
.dp-word.is-guessed::after { background: rgba(255,120,120,.6); box-shadow: none; }
.dp-word.just-struck { animation: dp-snap .2s ease-out; }
.dp-word.just-struck::after { animation: dp-strike .22s cubic-bezier(.3,.9,.4,1.1); }
.dp-word.just-freed { animation: dp-snap .18s ease-out; }
@keyframes dp-snap {
  0% { transform: scale(.92); }
  60% { transform: scale(1.02); }
  100% { transform: scale(1); }
}
@keyframes dp-strike {
  0% { transform: scaleX(0); opacity: .6; }
  70% { transform: scaleX(1.04); opacity: 1; }
  100% { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .dp-word, .dp-word::after, .dp-word .dp-mini, .dp-row .dp-tile, .dp-row .dp-plain-word, .dp-result { animation: none !important; transition: none; }
}

/* ---------- Feedback panel ---------- */
.dp-center {
  margin-top: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 16px 12px; text-align: center;
  border-radius: 12px; background: rgba(0,0,0,.22);
}
.dp-row { display: flex; gap: 5px; align-items: center; }
.dp-tile {
  width: clamp(34px, 10vw, 46px); height: clamp(34px, 10vw, 46px);
  font-size: clamp(17px, 5vw, 22px);
  display: grid; place-items: center;
  font-weight: 800; text-transform: uppercase; color: #fff; border-radius: 7px;
}
.dp-tile.is-correct { background: var(--dp-hit); }
.dp-tile.is-present { background: var(--dp-near); }
.dp-tile.is-absent { background: #555b63; }
/* "In the word, spot not shown": green and yellow split corner to corner,
   with a thin dark seam so it reads as two halves even on small tiles. */
.dp-tile.is-in {
  background: linear-gradient(135deg, var(--dp-hit) 0 49%, rgba(0,0,0,.2) 49% 51%, var(--dp-near) 51% 100%);
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
/* Grid 3 writes the guess out as plain text: gray tiles would read as
   "none of these letters are in the word", when the counts say otherwise. */
.dp-plain-word {
  margin-right: 8px;
  font-size: clamp(22px, 6.4vw, 28px); font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
}
.dp-tile.is-empty { border: 2px solid rgba(255,255,255,.16); }
.dp-count-tile { margin-left: 4px; border-radius: 50%; }

.dp-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: 13px; opacity: .8; }
.dp-key span { display: inline-flex; align-items: center; gap: 5px; }
.dp-key i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.dp-key i.is-round { border-radius: 50%; }

.dp-hint { font-size: 15px; opacity: .85; min-height: 1.4em; display: flex; align-items: center; justify-content: center; gap: 6px; }
.dp-result { font-size: inherit; font-weight: 800; opacity: 1; }

.dp-next {
  padding: 11px 22px; border-radius: 10px; border: 1.5px solid transparent;
  font-weight: 700; cursor: pointer;
  transition: transform .1s ease, opacity .15s ease;
}
.dp-next:not(:disabled):active { transform: scale(.97); }
.dp-next:disabled {
  cursor: default;
  background: transparent; color: inherit; opacity: .45;
  border-color: rgba(255,255,255,.22);
}
.dp-share { background: #3b7dd8; color: #fff; }

/* ---------- Feedback on guessed tiles ----------
   A guessed word keeps its feedback in miniature along the bottom of its tile:
   five dots (or the two counts on grid 3), bright while the word itself fades. */
.dp-mini {
  position: absolute; left: 0; right: 0; bottom: 7px;
  display: flex; justify-content: center; gap: 3px;
  pointer-events: none;
}
.dp-mini i { width: 9px; height: 9px; border-radius: 2px; }
.dp-mini i.is-correct { background: var(--dp-hit); }
.dp-mini i.is-present { background: var(--dp-near); }
.dp-mini i.is-absent { background: #6b727c; }
.dp-mini i.is-in { background: linear-gradient(135deg, var(--dp-hit) 0 50%, var(--dp-near) 50% 100%); }
.dp-mini i.is-count {
  width: 17px; height: 17px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-style: normal; font-weight: 800; color: #fff;
}
/* Fades in once the big tiles below have finished flipping. */
.dp-word.just-guessed .dp-mini { animation: dp-fade-up .3s ease-out .6s both; }
@keyframes dp-fade-up { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Revealing a guess ---------- */
.dp-row.is-revealing .dp-tile,
.dp-row.is-revealing .dp-plain-word {
  animation: dp-flip .42s ease-out both;
  animation-delay: calc(var(--i) * 110ms);
}
@keyframes dp-flip {
  0% { transform: rotateX(90deg); opacity: .4; }
  100% { transform: rotateX(0); opacity: 1; }
}
/* The secret: once flipped, the tiles hop in a wave. */
.dp-row.is-win .dp-tile {
  animation: dp-flip .42s ease-out both, dp-hop .5s ease-in-out both;
  animation-delay: calc(var(--i) * 110ms), calc(700ms + var(--i) * 90ms);
}
@keyframes dp-hop {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-12px); }
  70% { transform: translateY(2px); }
}
.dp-result.is-new { display: inline-block; animation: dp-pop .45s cubic-bezier(.3,1.6,.5,1) 1s both; }
@keyframes dp-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* The secret's tile on the board: green, glowing. */
.dp-word.is-solved {
  background: var(--dp-hit); border-color: var(--dp-hit-light); color: #fff;
  box-shadow: 0 0 0 2px rgba(143,224,163,.35), 0 0 22px rgba(63,157,79,.55);
  animation: dp-glow 1.2s ease-out .5s both;
}
@keyframes dp-glow {
  0% { box-shadow: 0 0 0 0 rgba(143,224,163,.7), 0 0 0 rgba(63,157,79,0); transform: scale(1); }
  30% { transform: scale(1.06); }
  100% { box-shadow: 0 0 0 2px rgba(143,224,163,.35), 0 0 22px rgba(63,157,79,.55); transform: scale(1); }
}

/* ---------- A new grid's rule ---------- */
.dp-rule-grid { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .65; margin-bottom: 8px; }
.dp-rule-count {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  font-size: 12px; font-style: normal; font-weight: 800; color: #fff; vertical-align: 1px;
}
.dp-rule-count.is-correct { background: var(--dp-hit); }
.dp-rule-count.is-present { background: var(--dp-near); }

/* ---------- Scorecard ---------- */
.dp-summary { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.dp-verdict { text-align: center; font-size: 32px; font-weight: 800; margin-top: 4px; }
.dp-verdict span { font-size: 20px; opacity: .7; }
.dp-verdict-sub { text-align: center; font-size: 15px; opacity: .7; margin-top: -4px; font-variant-numeric: tabular-nums; }
.dp-summary .dp-share { align-self: center; margin: 4px 0 6px; padding: 12px 40px; }
.dp-stats.dp-stats-4 { grid-template-columns: repeat(4, 1fr); margin-top: 0; }

/* Score history, golf style. */
.dp-dist { margin-top: 6px; padding: 12px; border-radius: 10px; background: rgba(255,255,255,.04); }
.dp-dist-title { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .6; margin-bottom: 8px; }
.dp-dist-row { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 8px; margin: 5px 0; font-size: 13px; }
.dp-dist-label { opacity: .75; white-space: nowrap; }
.dp-dist-track { display: flex; align-items: center; gap: 6px; min-height: 20px; }
.dp-dist-bar { display: block; height: 20px; border-radius: 4px; background: #555b63; }
.dp-dist-track b { font-variant-numeric: tabular-nums; font-size: 13px; }
.dp-dist-row.is-today .dp-dist-bar { background: var(--dp-hit); }
.dp-dist-row.is-today .dp-dist-label { opacity: 1; font-weight: 800; }
.dp-summary .dp-hint { font-size: 14px; opacity: .65; }

/* .game-menu button pins every menu button to 14px with !important. */
#dailyPickScreen .dp-word { font-size: clamp(15px, 4.5vw, 24px) !important; }
#dailyPickScreen .dp-next { font-size: 16px !important; }
#dailyPickScreen .dp-help-btn { font-size: 16px !important; }
#dailyPickScreen .dp-summary .dp-share { font-size: 17px !important; }

/* ---------- Desktop ---------- */
@media (min-width: 760px) {
  #dailyPickScreen .dp-card { margin-top: 3vh; padding: 16px 20px 22px !important; }
  .dp-board { gap: 10px; }
  .dp-word { padding: 30px 0; }
}
.dp-copyright { margin-top: 14px; text-align: center; font-size: 12px; opacity: .45; }

/* ---------- Stats and countdown (scorecard) ---------- */
.dp-stats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
  margin-top: 6px;
}
.dp-stat {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 2px; border-radius: 10px;
  background: rgba(255,255,255,.05);
  text-align: center;
}
.dp-stat b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dp-stat span { font-size: 11px; line-height: 1.2; opacity: .65; }
.dp-countdown { text-align: center; font-size: 15px; opacity: .8; }
.dp-countdown b { font-variant-numeric: tabular-nums; }

/* ---------- Settings (top of How to play) ---------- */
.dp-settings {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 16px; padding: 12px 14px;
  border-radius: 12px; background: rgba(255,255,255,.05);
}
.dp-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 700; }
.dp-switch > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.dp-switch small { font-size: 12px; font-weight: 500; opacity: .65; }
.dp-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dp-switch-ui {
  position: relative; flex: none; width: 42px; height: 24px; border-radius: 999px;
  background: rgba(255,255,255,.18); transition: background .15s ease;
}
.dp-switch-ui::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: transform .15s ease;
}
.dp-switch input:checked + .dp-switch-ui { background: #3b7dd8; }
.dp-switch input:checked + .dp-switch-ui::after { transform: translateX(18px); }
.dp-switch input:focus-visible + .dp-switch-ui { outline: 2px solid #9cc8ff; outline-offset: 2px; }

/* ---------- Text links ---------- */
.dp-link {
  display: block; margin: 10px auto 0; padding: 6px 10px;
  border: 0; background: none; color: #9cc8ff;
  font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
#dailyPickScreen .dp-link { font-size: 14px !important; }
.dp-summary .dp-next + .dp-next { align-self: center; padding: 11px 26px; }

/* ---------- Tutorial ---------- */
.dp-intro-card.dp-tutorial { max-width: 340px; width: 100%; text-align: left; }
.dp-tutorial h3 { margin: 2px 0 10px; font-size: 20px; text-align: center; }
.dp-tut-step { text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .55; }
.dp-tut-body { font-size: 15px; line-height: 1.45; min-height: 170px; }
.dp-tut-body p { margin: 0 0 10px; }
.dp-tut-dots { display: flex; justify-content: center; gap: 6px; margin: 6px 0 12px; }
.dp-tut-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.22); }
.dp-tut-dots i.is-on { background: #3b7dd8; width: 18px; border-radius: 4px; }
.dp-tut-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dp-tut-nav .dp-link { margin: 0; }
.dp-tut-nav .dp-next { margin: 0 !important; }
.dp-demo { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 12px; flex-wrap: wrap; }
.dp-demo-row { display: flex; gap: 4px; align-items: center; }
.dp-demo .dp-tile { width: 34px; height: 34px; font-size: 16px; }
.dp-demo .dp-plain-word { font-size: 20px; margin-right: 6px; }
.dp-demo-word {
  position: relative; display: inline-grid; place-items: center;
  min-width: 70px; padding: 10px 6px; border-radius: 9px;
  border: 1.5px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07);
  font-weight: 800; letter-spacing: .02em;
}
.dp-demo-word.is-selected { background: #3b7dd8; border-color: #9cc8ff; color: #fff; }
.dp-demo-word.is-struck { color: rgba(255,255,255,.34); border-color: rgba(255,120,120,.22); background: rgba(255,90,90,.05); }
.dp-demo-word.is-struck::after {
  content: ""; position: absolute; left: 10%; right: 10%; top: 50%;
  height: 3px; margin-top: -1.5px; border-radius: 3px; background: rgba(255,120,120,.95);
}
.dp-demo-arrow { opacity: .6; }
.dp-demo-btn { padding: 8px 12px; border-radius: 9px; background: #f1f2f4; color: #15181d; font-weight: 700; font-size: 14px; }
.dp-demo-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 10px; }
.dp-demo-steps > span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dp-demo-steps small { font-size: 12px; opacity: .7; }

/* ---------- Scorecard: today's guesses first ---------- */
.dp-score { text-align: center; padding: 6px 0 2px; }
.dp-score-num {
  font-size: 76px; font-weight: 900; line-height: 1; color: var(--dp-hit);
  font-variant-numeric: tabular-nums;
}
.dp-score-num sup { font-size: 34px; vertical-align: top; margin-left: 2px; }
.dp-score-label { font-size: 15px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .75; margin-top: 2px; }
.dp-score-verdict { margin-top: 8px; font-size: 20px; font-weight: 800; }
.dp-score-verdict span { font-size: 14px; font-weight: 600; opacity: .65; }
.dp-grid-scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dp-grid-score {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 4px 12px; border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06);
}
.dp-grid-score b { font-size: 34px; font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; }
.dp-grid-name { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.dp-grid-unit { font-size: 12px; opacity: .7; }
.dp-stats-title { margin-top: 10px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .55; }
.dp-summary .dp-stats { margin-top: 0; }
.dp-summary .dp-stat b { font-size: 18px; }
.dp-demo-flow { flex-wrap: nowrap; gap: 3px; justify-content: space-between; }
.dp-flow-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dp-flow-tile .dp-demo-word { min-width: 0; width: 54px; padding: 9px 0; font-size: 11px; }
.dp-flow-tile small, .dp-flow-arrow small { font-size: 10px; opacity: .7; white-space: nowrap; }
.dp-flow-arrow { display: flex; flex-direction: column; align-items: center; margin-bottom: 16px; color: #9cc8ff; }
.dp-flow-arrow b { font-size: 18px; line-height: 1; }

/* ---------- Daily / Weekly tabs ---------- */
.dp-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 100%;
  padding: 4px; border-radius: 12px; background: rgba(255,255,255,.06);
}
.dp-tab {
  padding: 8px 0; border: 0; border-radius: 9px; background: transparent; color: inherit;
  font-weight: 800; letter-spacing: .04em; opacity: .65; cursor: pointer;
}
.dp-tab.is-on { background: rgba(255,255,255,.14); opacity: 1; }
#dailyPickScreen .dp-tab { font-size: 15px !important; }

/* ---------- Weekly: picture tiles ---------- */
.dp-board.is-pics .dp-word {
  padding: 5px 5px 4px; display: flex; flex-direction: column; align-items: stretch; gap: 4px;
  text-transform: none; letter-spacing: 0;
}
.dp-pic {
  display: block; width: 100%; aspect-ratio: var(--ratio); object-fit: cover;
  border-radius: 6px; pointer-events: none; -webkit-user-drag: none;
}
.dp-pic-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 10.5px; font-weight: 700; line-height: 1.2; text-align: center; min-height: 2.4em;
}
#dailyPickScreen .dp-board.is-pics .dp-word { font-size: 11px !important; }
.dp-board.is-pics .dp-word.is-struck .dp-pic { opacity: .35; filter: grayscale(.6); }
.dp-board.is-pics .dp-word.is-struck::after { top: 38%; }
.dp-board.is-pics .dp-word.is-selected .dp-pic { box-shadow: 0 0 0 2px #fff; }
.dp-board.is-pics .dp-word.is-solved .dp-pic { box-shadow: 0 0 0 2px var(--dp-hit-light); }
/* A guessed picture keeps a tiny copy of its feedback in the corner. */
.dp-mini.dp-mini-grid {
  left: auto; right: 7px; bottom: auto; top: 7px;
  display: grid; grid-template-columns: repeat(var(--cols), 5px); gap: 1px;
  padding: 2px; border-radius: 3px; background: rgba(10,14,20,.85);
}
.dp-mini.dp-mini-grid i { width: 5px; height: 5px; border-radius: 1px; }

/* ---------- Weekly: the feedback grid ---------- */
.dp-pic-row { gap: 10px; align-items: center; }
.dp-pic-guess { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 96px; }
.dp-pic-guess img { width: 96px; object-fit: cover; border-radius: 6px; display: block; }
.dp-pic-guess small { font-size: 11px; font-weight: 700; text-align: center; line-height: 1.2; opacity: .85; }
.dp-arrow { font-size: 20px; opacity: .55; }
.dp-fb-grid {
  display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 2px;
  width: 140px; padding: 3px; border-radius: 6px; background: rgba(0,0,0,.35);
}
.dp-fb-grid.is-demo { width: 96px; aspect-ratio: 3 / 2; }
.dp-cell { border-radius: 2px; min-height: 0; }
.dp-cell.is-correct { background: var(--dp-hit); }
.dp-cell.is-present { background: var(--dp-near); }
.dp-cell.is-absent { background: #555b63; }
.dp-cell.is-empty { background: rgba(255,255,255,.07); }
.dp-row.is-revealing .dp-cell { animation: dp-flip .32s ease-out both; animation-delay: calc(var(--i) * 45ms); }
.dp-row.is-win .dp-fb-grid { animation: dp-hop .5s ease-in-out .8s both; }
@media (prefers-reduced-motion: reduce) { .dp-row .dp-cell, .dp-row .dp-fb-grid { animation: none !important; } }

/* Emoji: the whole drawing on the tile, and their empty background cells
   left blank in the feedback. */
.dp-board.is-animals .dp-pic, .dp-board.is-food .dp-pic { object-fit: contain; padding: 6px; box-sizing: border-box; }
.dp-cell.is-none { background: transparent; }
.dp-mini i.is-none { background: transparent; }
.dp-copyright a { color: inherit; }

/* ---------- Results screen: tighter, guesses and time side by side ---------- */
#dailyPickScreen.is-results .dp-help-btn { visibility: hidden; }
#dailyPickScreen.is-results .dp-card { gap: 6px; }
.dp-summary { gap: 8px; padding: 0; }
.dp-score { padding: 0; }
.dp-score-main { display: grid; grid-template-columns: 1fr 1fr; align-items: end; }
.dp-score-main > div + div { border-left: 1px solid rgba(255,255,255,.12); }
.dp-score-num { font-size: 58px; }
.dp-score-num.dp-score-time { color: #f5f8fc; font-size: 46px; line-height: 58px; }
.dp-score-label { font-size: 13px; margin-top: 2px; }
.dp-score-verdict { margin-top: 6px; font-size: 18px; }
.dp-grid-score { padding: 6px 4px 8px; gap: 0; }
.dp-grid-score b { font-size: 28px; }
.dp-summary .dp-share { margin: 2px 0; padding: 10px 40px; }
.dp-stats-title { margin-top: 4px; }
.dp-summary .dp-stat { padding: 7px 2px; }
.dp-dist { margin-top: 0; padding: 10px 12px; }
.dp-dist-title { margin-bottom: 4px; }
.dp-dist-row { margin: 3px 0; }
.dp-dist-track { min-height: 16px; }
.dp-dist-bar { height: 16px; }
.dp-summary .dp-link { margin-top: 0; padding: 4px 10px; }
.dp-summary .dp-copyright { margin-top: 2px; }
/* Share fills its row, so there's no empty space on either side. */
.dp-summary .dp-share { align-self: stretch; margin: 0; padding: 9px 0; }
.dp-grid-time { margin-top: 2px; font-size: 12px; font-weight: 700; opacity: .75; font-variant-numeric: tabular-nums; }
.dp-grid-time { display: inline-flex; align-items: center; gap: 4px; }
.dp-clock-icon { display: block; flex-shrink: 0; }
.dp-score-par { font-size: 15px; font-weight: 800; margin-top: 2px; color: var(--dp-hit); font-variant-numeric: tabular-nums; }
.dp-dist-row { grid-template-columns: 138px 1fr; }
.dp-score-main { align-items: start; }
/* Guesses and time: same size, same color. */
.dp-score-num, .dp-score-num.dp-score-time { font-size: 52px; line-height: 1.05; color: var(--dp-hit); }

/* ---------- Game screen refinements ---------- */
/* A shorter header; the grid counter stays secondary to the title. */
.dp-card .menu-title { line-height: 34px; }
.dp-clock { line-height: 34px; }
.dp-title-grid { font-size: .62em; opacity: .55; }
/* Small buttons keep a 44px tap area. */
.dp-close, .dp-help-btn { position: relative; }
.dp-close::after, .dp-help-btn::after { content: ""; position: absolute; inset: -5px; }
/* About 12% tighter grid. */
#dailyPickScreen .dp-card { gap: 10px; padding: 10px 10px 14px !important; }
.dp-board { gap: 7px; }
.dp-word { padding: 23px 0; }
@media (min-width: 760px) { .dp-word { padding: 26px 0; } }
/* Struck words: muted text and the red line, no red frame. */
.dp-word.is-struck { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.03); }
/* A shorter feedback panel. */
.dp-center { margin-top: 8px; gap: 8px; padding: 10px 10px 12px; }
.dp-last { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .55; margin-bottom: -2px; }
/* Guess: full width, blue like the picked word. */
#dailyPickScreen .dp-center #dpGuess {
  align-self: stretch; padding: 13px 0; border: 0;
  background: #3b7dd8 !important; color: #fff !important;
  font-size: 18px !important;
}
#dailyPickScreen .dp-center #dpGuess:disabled {
  background: transparent !important; color: inherit !important;
  border: 1.5px solid rgba(255,255,255,.22); opacity: .5;
}

/* ---------- Light mode ---------- */
#dailyPickScreen.dp-light { color: #1b1f27; }
#dailyPickScreen.dp-light .dp-card {
  background: #ffffff !important; border-color: #d6dce6 !important;
  box-shadow: 0 16px 48px rgba(20,28,40,.12) !important; color: #1b1f27;
}
#dailyPickScreen.dp-light .menu-title { color: #141c28 !important; }
#dailyPickScreen.dp-light .dp-word { background: #f2f4f8; border-color: #d3d9e3; color: #1b1f27; }
#dailyPickScreen.dp-light .dp-word.is-selected { background: #3b7dd8; border-color: #2f6fc6; color: #fff; }
#dailyPickScreen.dp-light .dp-word.is-struck { color: rgba(27,31,39,.35); background: #f7f8fa; border-color: #e1e5ec; }
#dailyPickScreen.dp-light .dp-word.is-guessed { border-color: #d9b44a; background: #f7f8fa; }
#dailyPickScreen.dp-light .dp-center { background: #f0f2f6; }
#dailyPickScreen.dp-light .dp-tile.is-empty { border-color: #cbd2dc; }
#dailyPickScreen.dp-light .dp-tile.is-absent,
#dailyPickScreen.dp-light .dp-cell.is-absent { background: #7d8592; }
#dailyPickScreen.dp-light .dp-tile.is-plain { color: #1b1f27; }
#dailyPickScreen.dp-light .dp-mini i.is-absent { background: #9aa1ab; }
#dailyPickScreen.dp-light .dp-mini.dp-mini-grid { background: rgba(255,255,255,.92); }
#dailyPickScreen.dp-light .dp-fb-grid { background: rgba(20,28,40,.08); }
#dailyPickScreen.dp-light .dp-help-btn { border-color: #b9c1cd; }
#dailyPickScreen.dp-light .dp-center #dpGuess:disabled { border-color: rgba(20,28,40,.25); }
#dailyPickScreen.dp-light .dp-next:not(.dp-share):not(#dpGuess) { background: #1b1f27; color: #fff; }
#dailyPickScreen.dp-light .dp-next:disabled:not(#dpGuess) { background: transparent; color: inherit; }
#dailyPickScreen.dp-light .dp-link { color: #2f6fc6; }
#dailyPickScreen.dp-light .dp-intro { background: rgba(238,241,245,.7); }
#dailyPickScreen.dp-light .dp-intro-card { background: #ffffff; border-color: #d6dce6; box-shadow: 0 12px 32px rgba(20,28,40,.18); }
#dailyPickScreen.dp-light .dp-settings,
#dailyPickScreen.dp-light .dp-stat,
#dailyPickScreen.dp-light .dp-dist,
#dailyPickScreen.dp-light .dp-tabs { background: #f0f2f6; }
#dailyPickScreen.dp-light .dp-grid-score { background: #f0f2f6; border-color: #dde2ea; }
#dailyPickScreen.dp-light .dp-dist-bar { background: #b8bfca; }
#dailyPickScreen.dp-light .dp-dist-row.is-today .dp-dist-bar { background: var(--dp-hit); }
#dailyPickScreen.dp-light .dp-score-main > div + div { border-left-color: rgba(20,28,40,.12); }
#dailyPickScreen.dp-light .dp-switch-ui { background: #cdd3dc; }
#dailyPickScreen.dp-light .dp-switch input:checked + .dp-switch-ui { background: #3b7dd8; }
#dailyPickScreen.dp-light .dp-tut-dots i { background: #cdd3dc; }
#dailyPickScreen.dp-light .dp-tut-dots i.is-on { background: #3b7dd8; }
#dailyPickScreen.dp-light .dp-demo-word { background: #f2f4f8; border-color: #d3d9e3; }
#dailyPickScreen.dp-light .dp-demo-word.is-selected { background: #3b7dd8; color: #fff; }
#dailyPickScreen.dp-light .dp-demo-word.is-struck { color: rgba(27,31,39,.35); }
#dailyPickScreen.dp-light .dp-demo-btn { background: #3b7dd8; color: #fff; }
#dailyPickScreen.dp-light .dp-tab.is-on { background: #ffffff; }
#dailyPickScreen.dp-light .dp-cell.is-empty { background: rgba(20,28,40,.06); }
@media (hover: hover) {
  #dailyPickScreen.dp-light .dp-word:not([disabled]):not(.is-selected):hover { background: #e8ecf2; border-color: #c3cad5; }
  #dailyPickScreen.dp-light .dp-help-btn:hover { background: #f0f2f6; }
}
.dp-demo-btn { background: #3b7dd8; color: #fff; }
.dp-hint:empty { display: none; }

/* ---------- Larger switches ---------- */
.dp-switch { gap: 14px; font-size: 17px; min-height: 44px; }
.dp-switch-ui { width: 56px; height: 32px; }
.dp-switch-ui::after { top: 4px; left: 4px; width: 24px; height: 24px; }
.dp-switch input:checked + .dp-switch-ui::after { transform: translateX(24px); }
#dailyPickScreen .dp-help-btn.is-open { font-size: 18px !important; }

/* ---------- Light mode, refined ---------- */
#dailyPickScreen.dp-light { --dp-hit: #2f9449; --dp-near: #d3a21f; --dp-hit-light: #7fd096; }
#dailyPickScreen.dp-light.dp-cb { --dp-hit: #ef6c2b; --dp-near: #2f80d0; --dp-hit-light: #ffb48a; }
body.dp-light-page { background: #eef1f6; }
#dailyPickScreen.dp-light .dp-card { border-color: #e1e6ee !important; box-shadow: 0 10px 36px rgba(20,28,40,.08) !important; }
#dailyPickScreen.dp-light .dp-title-grid, #dailyPickScreen.dp-light .dp-clock { color: #6d7685; opacity: 1; }
/* Word tiles: white on white, lifted by a soft shadow. */
#dailyPickScreen.dp-light .dp-word {
  background: #ffffff; border-color: #dfe4ec; color: #141c28;
  box-shadow: 0 1px 2px rgba(20,28,40,.06), 0 2px 6px rgba(20,28,40,.04);
}
#dailyPickScreen.dp-light .dp-word.is-selected { background: #3b7dd8; border-color: #2f6fc6; color: #fff; box-shadow: 0 0 0 2px rgba(59,125,216,.25), 0 6px 14px rgba(59,125,216,.3); }
#dailyPickScreen.dp-light .dp-word.is-struck { background: #f5f6f9; border-color: #e7eaf0; color: rgba(20,28,40,.3); box-shadow: none; }
#dailyPickScreen.dp-light .dp-word.is-struck::after { background: #e5484d; box-shadow: none; }
#dailyPickScreen.dp-light .dp-word.is-guessed { background: #fbf8ee; border-color: #e6c766; }
#dailyPickScreen.dp-light .dp-word.is-guessed::after { background: rgba(229,72,77,.6); }
/* The secret, once found: solid green like the dark theme. */
#dailyPickScreen.dp-light .dp-word.is-solved { background: var(--dp-hit); border-color: var(--dp-hit); color: #fff; }
/* Panel and feedback */
#dailyPickScreen.dp-light .dp-center { background: #f5f7fa; border: 1px solid #e6eaf0; }
#dailyPickScreen.dp-light .dp-tile.is-absent, #dailyPickScreen.dp-light .dp-cell.is-absent { background: #8a929e; }
#dailyPickScreen.dp-light .dp-mini i.is-absent { background: #b3b9c3; }
#dailyPickScreen.dp-light .dp-key, #dailyPickScreen.dp-light .dp-hint { color: #4a5261; opacity: 1; }
#dailyPickScreen.dp-light .dp-last { color: #6d7685; opacity: 1; }
#dailyPickScreen.dp-light .dp-help-btn { border-color: #cfd6e0; color: #141c28; }
/* Results */
#dailyPickScreen.dp-light .dp-grid-score, #dailyPickScreen.dp-light .dp-stat, #dailyPickScreen.dp-light .dp-dist, #dailyPickScreen.dp-light .dp-settings {
  background: #f5f7fa; border: 1px solid #e6eaf0;
}
#dailyPickScreen.dp-light .dp-dist-bar { background: #c6ccd6; }
#dailyPickScreen.dp-light .dp-grid-name, #dailyPickScreen.dp-light .dp-score-label, #dailyPickScreen.dp-light .dp-dist-title { color: #6d7685; opacity: 1; }

/* While the rules are open, the "?" is a red close button. */
.dp-help-btn.is-open, #dailyPickScreen.dp-light .dp-help-btn.is-open { background: #d64545; border-color: #d64545; color: #fff; }

/* Results: the numbers stay neutral; the result line carries the color
   (green at par or better, amber over par). */
.dp-score-num, .dp-score-num.dp-score-time { color: #f5f8fc; }
#dailyPickScreen.dp-light .dp-score-num { color: #141c28; }
.dp-score-verdict.is-good { color: var(--dp-hit); }
.dp-score-verdict.is-over { color: #e8a33d; }
#dailyPickScreen.dp-light .dp-score-verdict.is-over { color: #c47a12; }
.dp-score-verdict span { color: inherit; }
.dp-dist-row.is-today.is-over .dp-dist-bar, #dailyPickScreen.dp-light .dp-dist-row.is-today.is-over .dp-dist-bar { background: #e8a33d; }
.dp-summary .dp-stat span { font-size: 10.5px; white-space: nowrap; }

/* Share: a centered pill with an icon, so it stands apart from the
   full-width cards around it. */
.dp-summary .dp-share {
  align-self: center; width: 62%; min-width: 200px; margin: 4px 0;
  padding: 13px 0; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 6px 18px rgba(59,125,216,.4);
}
#dailyPickScreen .dp-summary .dp-share { font-size: 18px !important; }
.dp-share svg { display: block; flex-shrink: 0; }

/* ---------- Results: Overall / Details ---------- */
.dp-views {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 2px;
  padding: 4px; border-radius: 12px; background: rgba(255,255,255,.06);
}
.dp-view {
  padding: 7px 0; border: 0; border-radius: 9px; background: transparent; color: inherit;
  font-weight: 800; opacity: .6; cursor: pointer;
}
.dp-view.is-on { background: rgba(255,255,255,.14); opacity: 1; }
#dailyPickScreen .dp-view { font-size: 14px !important; }
.dp-details { padding: 10px 10px 8px; border-radius: 10px; background: rgba(255,255,255,.04); }
.dp-details table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.dp-details th, .dp-details td { padding: 7px 2px; text-align: center; font-size: 14px; }
.dp-details thead th { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; opacity: .6; }
.dp-details tbody th { text-align: left; font-weight: 800; white-space: nowrap; }
.dp-details td { font-weight: 700; }
.dp-details tbody tr + tr { border-top: 1px solid rgba(255,255,255,.08); }
.dp-details tr.is-total { border-top: 2px solid rgba(255,255,255,.18) !important; }
.dp-details tr.is-total th, .dp-details tr.is-total td { font-weight: 900; }
.dp-details-note { margin-top: 6px; text-align: center; font-size: 11.5px; opacity: .55; }
#dailyPickScreen.dp-light .dp-views, #dailyPickScreen.dp-light .dp-details { background: #f5f7fa; border: 1px solid #e6eaf0; }
#dailyPickScreen.dp-light .dp-view.is-on { background: #ffffff; box-shadow: 0 1px 3px rgba(20,28,40,.1); }
#dailyPickScreen.dp-light .dp-details tbody tr + tr { border-top-color: #e3e7ee; }
#dailyPickScreen.dp-light .dp-details tr.is-total { border-top-color: #cfd6e0 !important; }

/* Overall and Details share one space, sized to the taller of the two. */
.dp-panes { display: grid; }
.dp-pane { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 8px; }
.dp-pane[aria-hidden="true"] { visibility: hidden; }
.dp-pane > .dp-details, .dp-pane > .dp-dist { flex: 1; }

/* ---------- Results: Speed | Share | Experimental ---------- */
.dp-share-row { display: flex; justify-content: center; margin: 4px 0; }
.dp-share-row:has(.dp-side-btn) {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 8px;
}
.dp-summary .dp-share-row .dp-share { margin: 0; }
.dp-share-row:has(.dp-side-btn) .dp-share { width: 100%; min-width: 0; }
.dp-summary .dp-share-row .dp-side-btn {
  height: 40px; padding: 0 2px; border-radius: 999px; white-space: nowrap;
  background: rgba(255,255,255,.08); color: inherit; border-color: rgba(255,255,255,.24);
}
#dailyPickScreen .dp-summary .dp-side-btn { font-size: 12.5px !important; overflow: hidden; text-overflow: ellipsis; }
.dp-stats.is-four { grid-template-columns: repeat(4, 1fr); }
#dailyPickScreen.dp-light .dp-summary .dp-side-btn { background: #fff; color: #1b1f27; border-color: #c3cad5; }

/* ---------- Speed ---------- */
.dp-clock { position: relative; }
.dp-clock.is-low { color: #ff6b6b; opacity: 1; }
.dp-clock.is-penalty { animation: dp-penalty .5s ease-out; }
.dp-clock.is-penalty::after {
  content: "−2s"; position: absolute; left: 4px; top: 100%;
  font-size: 13px; font-weight: 800; color: #ff6b6b;
  animation: dp-penalty-float .9s ease-out both; pointer-events: none;
}
@keyframes dp-penalty { 0%, 40% { color: #ff6b6b; opacity: 1; transform: scale(1.15); } 100% { transform: none; } }
@keyframes dp-penalty-float { from { opacity: 1; transform: translateY(-4px); } to { opacity: 0; transform: translateY(10px); } }

/* A new grid flips in like a split-flap board: each tile drops from the top
   with a hinge line across its middle while its letters spin (game JS). */
.dp-word.is-flap {
  animation: dp-flap .5s cubic-bezier(.2,.8,.3,1.15) var(--flap-delay, 0ms) both;
  transform-origin: center center;
}
.dp-word.is-flap::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: rgba(0,0,0,.5); pointer-events: none;
}
@keyframes dp-flap {
  0% { transform: perspective(500px) rotateX(-100deg); opacity: .2; }
  65% { transform: perspective(500px) rotateX(14deg); opacity: 1; }
  100% { transform: perspective(500px) rotateX(0); }
}

.dp-speed-cells { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.dp-speed-cell {
  position: relative; height: 46px; border-radius: 9px;
  display: grid; place-items: center; font-size: 20px; font-weight: 800;
  background: rgba(255,255,255,.05); border: 1.5px dashed rgba(255,255,255,.18);
}
.dp-speed-cell.is-solved { background: var(--dp-hit); border: 0; color: #fff; }
.dp-speed-cell small { position: absolute; top: 3px; left: 6px; font-size: 10px; font-weight: 700; opacity: .6; }
.dp-speed-note { font-size: 12px; opacity: .6; text-align: center; margin-top: -4px; }
#dailyPickScreen.dp-light .dp-speed-cell:not(.is-solved) { background: #f2f4f8; border-color: #c3cad5; }

/* ---------- Weekly: Colors ---------- */
.dp-paints { display: inline-flex; gap: 3px; }
.dp-paints i {
  width: clamp(10px, 3vw, 14px); height: clamp(18px, 5.4vw, 26px); border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.18);
}
.dp-board.is-colors .dp-word { padding: 22px 0 26px; display: grid; place-items: center; }
.dp-board.is-colors .dp-word.is-struck .dp-paints { opacity: .32; filter: grayscale(.5); }
.dp-board.is-colors .dp-word.is-struck::after { top: 42%; }
.dp-board.is-colors .dp-word.is-guessed .dp-paints { opacity: .45; }
.dp-board.is-colors .dp-word.is-selected .dp-paints i { box-shadow: inset 0 0 0 1px rgba(0,0,0,.35), 0 0 0 1px #fff; }
.dp-paints-inline { vertical-align: middle; margin-left: 4px; }
.dp-paints-inline i { width: 10px; height: 16px; }
/* A paint guessed: the paint itself, its feedback as a bar underneath. */
.dp-paint-tile { flex-direction: column; gap: 5px; height: auto; background: none; }
.dp-paint-tile i {
  display: block; width: 100%; aspect-ratio: 1; border-radius: 7px;
  box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.2);
}
.dp-paint-tile b { display: block; width: 100%; height: 7px; border-radius: 4px; }
.dp-paint-tile b.is-correct { background: var(--dp-hit); }
.dp-paint-tile b.is-present { background: var(--dp-near); }
.dp-paint-tile b.is-absent { background: #555b63; }
.dp-mixes { display: grid; gap: 5px; width: max-content; margin: 2px auto 10px; font-size: 14px; text-align: left; }
.dp-mix { display: flex; align-items: center; gap: 6px; }
.dp-mix .dp-paints-inline { margin: 0; }
.dp-mix .dp-paints-inline i:not(:first-child) { display: none; }

/* ---------- Weekly: Arrows (no colors at all) ---------- */
.dp-arrow-tile {
  flex-direction: column; gap: 1px; line-height: 1;
  background: #3a3f47; border: 1.5px solid rgba(255,255,255,.18);
}
.dp-arrow-tile small { font-size: .8em; font-weight: 800; opacity: .9; }
.dp-mini-arrows { gap: 4px; bottom: 5px; }
.dp-mini-arrows i { width: auto; height: auto; font-style: normal; font-weight: 800; font-size: 12px; line-height: 1; }
.dp-key b { font-weight: 900; }
#dailyPickScreen.dp-light .dp-arrow-tile { background: #eef1f5; color: #1b1f27; border-color: #cbd2dc; }
/* Just Share and one other button: two equal halves. */
.dp-share-row:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Start screen ---------- */
/* The grid stays out of sight until Play, so nobody gets a head start. */
#dailyPickScreen.is-splash #dailyPickRoot { visibility: hidden; }
#dailyPickScreen.is-splash #dpClock { visibility: hidden; }
.dp-start { background: transparent; align-items: flex-start; padding-top: 18vh; }
.dp-start-card { text-align: center; width: 100%; max-width: 320px; padding: 28px 22px 18px; }
.dp-start-title { font-size: 34px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.dp-start-date { margin: 4px 0 18px; font-size: 14px; opacity: .65; }
/* Play: the same plain button as the game's others (like "Got it"), just full width. */
.dp-intro-card .dp-start-play { width: 100%; margin-top: 0; padding: 13px 0; }
#dailyPickScreen .dp-intro-card .dp-start-play { font-size: 17px !important; }
.dp-start-sub { margin-top: 8px; font-size: 14px; opacity: .7; }
.dp-start-card .dp-link { margin-top: 14px; }
#dailyPickScreen.dp-light .dp-start-card { background: #fff; border-color: #d3d9e3; color: #1b1f27; }

/* ---------- New grid banner ---------- */
.dp-banner {
  position: absolute; z-index: 4; left: 50%; top: 64px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 22px 11px; border-radius: 14px;
  background: #16202e; border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
  pointer-events: none; white-space: nowrap;
  transform: translateX(-50%);
}
.dp-banner[hidden] { display: none; }
.dp-banner b { font-size: 22px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.dp-banner span { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; opacity: .9; }
.dp-banner .dp-help-chip { margin: 0 0 0 4px; }
.dp-banner .dp-rule-count { margin-left: 4px; }
.dp-banner.is-showing { animation: dp-banner 2.2s cubic-bezier(.2,.8,.3,1) both; }
@keyframes dp-banner {
  0% { opacity: 0; transform: translate(-50%, -18px) scale(.94); }
  12%, 78% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -14px) scale(.97); }
}
#dailyPickScreen.dp-light .dp-banner { background: #fff; border-color: #d3d9e3; color: #1b1f27; }

/* ---------- Experimental picker ---------- */
.dp-choose-card { width: 100%; max-width: 330px; display: flex; flex-direction: column; gap: 10px; }
.dp-choice {
  display: flex; flex-direction: column; gap: 3px; align-items: flex-start; text-align: left;
  padding: 14px 16px; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.18); color: inherit;
  font-family: inherit; transition: transform .1s ease, border-color .15s ease;
}
.dp-choice:active { transform: scale(.98); }
.dp-choice b { font-size: 18px; font-weight: 800; }
.dp-choice span { font-size: 14px; opacity: .75; line-height: 1.35; }
.dp-choice em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--dp-hit-light); }
.dp-choose-card .dp-link { margin-top: 2px; align-self: center; }
#dailyPickScreen.dp-light .dp-choose-card { background: #fff; border-color: #d3d9e3; color: #1b1f27; }
#dailyPickScreen.dp-light .dp-choice { background: #f2f4f8; border-color: #d3d9e3; }
#dailyPickScreen.dp-light .dp-choice em { color: #2e7d3c; }

/* ---------- Rule cards: worked example and "are you sure?" ---------- */
#dpRuleCard { max-height: calc(100% - 8px); overflow-y: auto; }
.dp-example {
  margin: 10px 0 4px; padding: 10px 12px 8px; border-radius: 12px;
  border: 2px solid #e5484d; background: rgba(229,72,77,.07); text-align: left;
}
.dp-example-title { text-align: center; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #ff7a7e; margin-bottom: 8px; }
.dp-example p { font-size: 14px; margin: 6px 0 2px; }
.dp-example .dp-demo { margin: 4px 0; }
.dp-ex-line { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.dp-ex-line > span:first-child { width: 48px; font-size: 12px; font-weight: 800; opacity: .7; text-transform: uppercase; }
.dp-ex-row { display: flex; gap: 6px; }
.dp-ex-cell { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 30px; }
.dp-ex-cell i { width: 30px; height: 30px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.2); }
.dp-ex-cell b { width: 30px; height: 5px; border-radius: 3px; }
.dp-ex-cell b.is-correct { background: var(--dp-hit); }
.dp-ex-cell b.is-present { background: var(--dp-near); }
.dp-ex-cell b.is-absent { background: #555b63; }
.dp-ex-cell small { font-size: 10px; opacity: .55; line-height: 1; }
.dp-ex-why { margin: 6px 0 2px; padding-left: 20px; font-size: 13.5px; line-height: 1.4; }
.dp-ex-why li { margin-bottom: 3px; }
.dp-sure { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.14); }
.dp-sure p { font-weight: 800; margin: 0 0 4px; }
.dp-sure .dp-link { display: block; margin: 8px auto 0; }
#dailyPickScreen.dp-light .dp-example { background: #fff4f4; }
#dailyPickScreen.dp-light .dp-example-title { color: #c62f35; }
/* Cards with a worked example: left-aligned and a touch smaller, so they read like a rulebook. */
#dpRuleCard:has(.dp-example) { max-width: 340px; width: 100%; }
#dpRuleCard:has(.dp-example) p { text-align: left; font-size: 15px; line-height: 1.45; }
#dpRuleCard:has(.dp-example) .dp-mixes { font-size: 13px; gap: 3px; margin-bottom: 8px; }
#dpRuleCard .dp-sure p { text-align: center; }
/* The start screen only catches taps on its card: the header's ? and ✕ stay usable. */
.dp-start { pointer-events: none; }
.dp-start-card { pointer-events: auto; }

/* ---------- Twists ---------- */
/* One letter: letters without feedback this time. */
.dp-tile.is-hidden { background: transparent; border: 2px solid rgba(255,255,255,.18); color: rgba(255,255,255,.45); }
.dp-mini i.is-hidden { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28); }
#dailyPickScreen.dp-light .dp-tile.is-hidden { border-color: #cbd2dc; color: #9aa1ab; }
#dailyPickScreen.dp-light .dp-mini i.is-hidden { box-shadow: inset 0 0 0 1.5px #b8bfc9; }
.dp-ex-rows { display: flex; flex-direction: column; align-items: center; gap: 5px; margin: 2px 0 6px; }
.dp-ex-rows .dp-tile { width: 32px; height: 32px; font-size: 16px; }

/* Autopilot: the countdown to its next guess, big and see-through over the board. */
.dp-board { position: relative; }
.dp-auto-count {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  display: grid; place-items: center;
  font-size: min(62vw, 300px); font-weight: 900; line-height: 1;
  color: rgba(229,72,77,.22); font-variant-numeric: tabular-nums;
}
.dp-auto-count.is-tick { animation: dp-count-tick .45s ease-out; }
@keyframes dp-count-tick { from { transform: scale(1.18); color: rgba(229,72,77,.4); } to { transform: none; } }

/* Pick two: the two words offered, as buttons, and marked on the board. */
.dp-pick-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.dp-pick { padding: 13px 0; letter-spacing: .06em; }
.dp-word.is-offered { border-color: #6fb1ff; box-shadow: 0 0 0 2px rgba(111,177,255,.35); }

/* Elimination grids: the secret, struck out, when the grid is lost. */
.dp-word.is-lost-secret { border-color: #e5484d; box-shadow: 0 0 0 2px rgba(229,72,77,.45); }
.dp-result.is-lost { color: #ff7a7e; }
.dp-grid-score.is-lost b { color: #ff7a7e; }

/* ---------- Rating the grids ---------- */
#dpChooseCard { max-height: calc(100% - 8px); overflow-y: auto; }
.dp-rate-open {
  align-self: center; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  background: transparent; color: #f2c14e; border: 1.5px solid rgba(242,193,78,.55);
  font-family: inherit; font-weight: 800;
}
#dailyPickScreen .dp-rate-open { font-size: 14px !important; }
.dp-rate-note { text-align: center; font-size: 13px; opacity: .65; margin-top: -4px; }
.dp-rate-group { display: flex; flex-direction: column; gap: 2px; }
.dp-rate-head { font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; opacity: .55; margin: 4px 0 2px; }
.dp-rate-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.dp-stars { display: inline-flex; flex-shrink: 0; }
.dp-star {
  width: 30px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer;
  color: rgba(255,255,255,.22); line-height: 1;
}
#dailyPickScreen .dp-star { font-size: 24px !important; }
.dp-star.is-on { color: #f2c14e; }
.dp-star:active { transform: scale(.88); }
.dp-choose-card .dp-share { display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 12px 0; margin-top: 4px; }
#dailyPickScreen.dp-light .dp-star { color: #cfd5de; }
#dailyPickScreen.dp-light .dp-star.is-on { color: #e0a800; }
#dailyPickScreen.dp-light .dp-rate-open { color: #b07f00; border-color: #e0b84a; }
.dp-rate-row > span:first-child { text-align: left; }
.dp-star { width: 26px; } .dp-rate-row > span:first-child { white-space: nowrap; }

/* The rule card's button (and its "Are you sure?") stays pinned to the
   bottom of a long card, with a fade above it hinting there's more to scroll. */
.dp-rule-foot {
  position: sticky; bottom: -16px; z-index: 1;
  margin: 0 -22px -16px; padding: 4px 22px 16px;
  background: #16202e;
  box-shadow: 0 -18px 16px -2px #16202e;
}
.dp-rule-foot .dp-next { margin-top: 6px; }
.dp-rule-foot .dp-sure { margin-top: 6px; }
#dailyPickScreen.dp-light .dp-rule-foot { background: #ffffff; box-shadow: 0 -18px 16px -2px #ffffff; }
/* The banner can be tapped away early. */
.dp-banner { pointer-events: auto; cursor: pointer; }
.dp-banner.is-showing.is-leaving { animation: dp-banner-out .18s ease-in both; }
@keyframes dp-banner-out { from { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; transform: translate(-50%, -12px) scale(.97); } }

/* ---------- Archive ---------- */
.dp-archive { display: flex; flex-direction: column; gap: 8px; }
.dp-archive-note { text-align: center; font-size: 13px; opacity: .65; margin: 0 0 4px; }
.dp-archive-day {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: 12px; cursor: pointer; text-align: left;
  background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.16); color: inherit; font-family: inherit;
}
.dp-archive-day:active { transform: scale(.98); }
.dp-archive-day b { font-size: 17px; font-weight: 900; }
.dp-archive-day span { font-size: 15px; opacity: .85; }
.dp-archive-day em { font-style: normal; font-size: 12.5px; font-weight: 700; opacity: .65; }
.dp-archive-day em.is-done { color: var(--dp-hit-light); opacity: 1; }
.dp-archive .dp-link { align-self: center; margin-top: 6px; }
.dp-archive-tag { text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
#dailyPickScreen.dp-light .dp-archive-day { background: #f2f4f8; border-color: #d3d9e3; }
#dailyPickScreen.dp-light .dp-archive-day em.is-done { color: #2e7d3c; }

/* ======================================================================
   Word cards: ✕ (cross out) on the left, ✓ (pick) on the right, and a
   guessed word's feedback shown on the card itself.
   ====================================================================== */
.dp-word {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 86px; padding: 0; text-transform: none;
}
.dp-board.is-pics .dp-word, .dp-board.is-colors .dp-word { min-height: 0; }
.dp-card-face { flex: 1; display: grid; place-items: center; align-content: center; gap: 4px; padding: 12px 4px 2px; }
.dp-card-word { text-transform: capitalize; font-weight: 800; letter-spacing: .01em; }
.dp-card-acts { display: flex; justify-content: space-between; padding: 0 6px 6px; }
.dp-x, .dp-check {
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; font-family: inherit; font-weight: 900; line-height: 1;
  transition: transform .1s ease, background .15s ease;
}
#dailyPickScreen .dp-x, #dailyPickScreen .dp-check { font-size: 15px !important; }
.dp-x { background: rgba(229,72,77,.16); color: #ff6b70; }
.dp-check { background: rgba(63,157,79,.18); color: #59c46c; }
.dp-x:active, .dp-check:active { transform: scale(.88); }
.dp-word.is-selected .dp-check { background: #3f9d4f; color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
.dp-word.is-struck .dp-x { background: rgba(255,255,255,.1); color: inherit; }
/* The strike line crosses the word, not the buttons below it. */
.dp-word.is-struck::after { top: calc((100% - 36px) / 2 + 6px); }
/* A guessed word: its letters in their feedback colors, no strike line. */
.dp-word.is-guessed:has(.dp-card-fb)::after, .dp-word.is-guessed:has(.dp-card-counts)::after { display: none; }
.dp-word.is-guessed:has(.dp-card-fb), .dp-word.is-guessed:has(.dp-card-counts) { justify-content: center; }
.dp-word.is-guessed .dp-card-face { padding: 4px 2px; }
.dp-card-fb { display: flex; gap: 2px; }
.dp-card-fb i {
  width: clamp(13px, 3.6vw, 17px); height: clamp(20px, 5.4vw, 24px); border-radius: 4px;
  display: grid; place-items: center; font-style: normal; font-weight: 800; color: #fff;
  text-transform: uppercase; line-height: 1;
}
#dailyPickScreen .dp-card-fb i { font-size: clamp(11px, 3.2vw, 14px) !important; }
.dp-card-fb i.is-correct { background: var(--dp-hit); }
.dp-card-fb i.is-present { background: var(--dp-near); }
.dp-card-fb i.is-absent { background: #6b727c; }
.dp-card-fb i.is-in { background: linear-gradient(135deg, var(--dp-hit) 0 50%, var(--dp-near) 50% 100%); }
.dp-card-fb i.is-hidden { background: transparent; color: inherit; opacity: .45; box-shadow: inset 0 0 0 1.5px currentColor; }
.dp-card-fb i.is-left, .dp-card-fb i.is-right, .dp-card-fb i.is-same { background: #555b63; height: auto; padding: 3px 0; gap: 1px; }
.dp-card-fb small { font-size: 10px; }
.dp-card-counts { display: flex; gap: 5px; }
.dp-card-counts i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 12px; color: #fff; }
.dp-card-counts i.is-correct { background: var(--dp-hit); }
.dp-card-counts i.is-present { background: var(--dp-near); }
/* Just guessed: the card turns over to show its feedback; the secret pops. */
.dp-word.just-guessed { animation: dp-card-turn .5s ease-out; }
.dp-word.is-solved.just-guessed { animation: dp-card-win .7s cubic-bezier(.3,1.6,.5,1); }
@keyframes dp-card-turn { 0% { transform: perspective(500px) rotateY(90deg); } 100% { transform: none; } }
@keyframes dp-card-win { 0% { transform: scale(.85); } 60% { transform: scale(1.08); } 100% { transform: none; } }
.dp-hint-check { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(63,157,79,.18); color: #3f9d4f; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .dp-word.just-guessed { animation: none !important; } }

/* First-time rules: the two demo cards and three steps. */
.dp-demo-cards { display: flex; justify-content: center; gap: 10px; margin: 6px 0 10px; }
.dp-demo-card { width: 104px; min-height: 84px; cursor: default; }
.dp-tut-lead { text-align: center; font-size: 17px; }
.dp-tut-steps { margin: 0 0 8px; padding-left: 22px; line-height: 1.5; }
.dp-tut-steps li { margin-bottom: 6px; }
.dp-tut-check, .dp-tut-x { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; }
.dp-tut-check { background: rgba(63,157,79,.18); color: #3f9d4f; }
.dp-tut-x { background: rgba(229,72,77,.16); color: #e5484d; }
.dp-tut-small { font-size: 13px; opacity: .7; text-align: center; }
.dp-intro-card.dp-tutorial .dp-tut-body { min-height: 0; }

/* ======================================================================
   Paper theme (the light look, now the default): warm cream, cards that
   look like cards.
   ====================================================================== */
body.dp-light-page { background: #f3eee3; color: #2b2925; }
#dailyPickScreen.dp-light { color: #2b2925; }
#dailyPickScreen.dp-light .dp-card { background: #faf7f0 !important; border-color: #e6dfd0 !important; box-shadow: 0 10px 36px rgba(80,60,20,.08) !important; }
#dailyPickScreen.dp-light .menu-title { color: #2b2925 !important; }
#dailyPickScreen.dp-light .dp-word {
  background: #fffdf8; border-color: #e2d9c6; color: #2b2925;
  box-shadow: 0 1px 0 #e2d9c6, 0 4px 10px rgba(80,60,20,.07);
}
#dailyPickScreen.dp-light .dp-word.is-selected { background: #fffdf8; border-color: #2f9449; color: #2b2925; box-shadow: 0 0 0 2px rgba(47,148,73,.35), 0 6px 14px rgba(47,148,73,.18); }
#dailyPickScreen.dp-light .dp-word.is-selected .dp-check { box-shadow: none; }
#dailyPickScreen.dp-light .dp-word.is-struck { background: #f4efe4; border-color: #e8e1d2; color: rgba(43,41,37,.35); box-shadow: none; }
#dailyPickScreen.dp-light .dp-word.is-struck .dp-x { background: #ebe4d5; color: #6d665a; }
#dailyPickScreen.dp-light .dp-word.is-guessed { background: #f7f2e7; border-color: #e2d9c6; box-shadow: none; }
#dailyPickScreen.dp-light .dp-word.is-solved { background: var(--dp-hit); border-color: var(--dp-hit); color: #fff; }
#dailyPickScreen.dp-light .dp-x { background: #fbe4e3; color: #d83a3f; }
#dailyPickScreen.dp-light .dp-check { background: #e2f1e3; color: #2f8a45; }
#dailyPickScreen.dp-light .dp-word.is-selected .dp-check { background: #2f9449; color: #fff; }
#dailyPickScreen.dp-light .dp-card-fb i.is-absent { background: #8b867c; }
#dailyPickScreen.dp-light .dp-card-fb i.is-left, #dailyPickScreen.dp-light .dp-card-fb i.is-right, #dailyPickScreen.dp-light .dp-card-fb i.is-same { background: #8b867c; }
#dailyPickScreen.dp-light .dp-center { background: #f4efe4; border: 1px solid #e6dfd0; }
#dailyPickScreen.dp-light .dp-key, #dailyPickScreen.dp-light .dp-hint { color: #5b5549; }
#dailyPickScreen.dp-light .dp-intro { background: rgba(243,238,227,.72); }
#dailyPickScreen.dp-light .dp-intro-card,
#dailyPickScreen.dp-light .dp-start-card,
#dailyPickScreen.dp-light .dp-banner,
#dailyPickScreen.dp-light .dp-choose-card { background: #fffdf8; border-color: #e2d9c6; color: #2b2925; }
#dailyPickScreen.dp-light .dp-rule-foot { background: #fffdf8; box-shadow: 0 -18px 16px -2px #fffdf8; }
#dailyPickScreen.dp-light .dp-grid-score, #dailyPickScreen.dp-light .dp-stat, #dailyPickScreen.dp-light .dp-dist,
#dailyPickScreen.dp-light .dp-settings, #dailyPickScreen.dp-light .dp-views, #dailyPickScreen.dp-light .dp-details,
#dailyPickScreen.dp-light .dp-archive-day { background: #f4efe4; border-color: #e6dfd0; }
#dailyPickScreen.dp-light .dp-view.is-on { background: #fffdf8; }
#dailyPickScreen.dp-light .dp-help-btn { border-color: #d8cfbd; color: #2b2925; }
#dailyPickScreen.dp-light .dp-next:not(.dp-share):not(#dpGuess) { background: #2b2925; color: #fffdf8; }
#dailyPickScreen.dp-light .dp-title-grid, #dailyPickScreen.dp-light .dp-grid-name,
#dailyPickScreen.dp-light .dp-score-label, #dailyPickScreen.dp-light .dp-dist-title { color: #8a8276; }
#dailyPickScreen.dp-light .dp-score-num { color: #2b2925; }
#dailyPickScreen.dp-light .dp-switch-ui { background: #ddd5c4; }
@media (hover: hover) {
  #dailyPickScreen.dp-light .dp-word:not([disabled]):not(.is-selected):hover { background: #fffaf0; border-color: #d6cbb4; }
}
/* A guessed card stays readable (it's out of play, but its clue matters). */
.dp-word.is-guessed.is-struck { color: rgba(255,255,255,.85); }
#dailyPickScreen.dp-light .dp-word.is-guessed.is-struck { color: #2b2925; }
/* One-card rules: the button centered. */
.dp-tut-nav:not(:has(.dp-link)) { justify-content: center; }

/* ======================================================================
   One big card per word, split corner to corner: top-left half crosses
   out, bottom-right half picks. A faint diagonal and two corner marks.
   ====================================================================== */
.dp-word { min-height: 78px; justify-content: center; }
.dp-card-face { padding: 10px 4px; }
#dailyPickScreen .dp-board:not(.is-pics):not(.is-colors) .dp-card-word { font-size: clamp(19px, 5.6vw, 27px) !important; }
.dp-word.is-split::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(to bottom right, transparent calc(50% - .75px), rgba(255,255,255,.1) 50%, transparent calc(50% + .75px));
}
.dp-corner {
  position: absolute; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-style: normal; font-weight: 900; line-height: 1;
  pointer-events: none; opacity: .75;
}
#dailyPickScreen .dp-corner { font-size: 11px !important; }
.dp-corner-x { top: 5px; left: 5px; background: rgba(229,72,77,.16); color: #ff6b70; }
.dp-corner-check { bottom: 5px; right: 5px; background: rgba(63,157,79,.18); color: #59c46c; }
.dp-word.is-selected .dp-corner-check { background: #3f9d4f; color: #fff; opacity: 1; }
.dp-word.is-struck .dp-corner-x { background: rgba(255,255,255,.12); color: inherit; opacity: 1; }
/* Back to a line straight through the middle of the word. */
.dp-word.is-struck::after { top: 50%; }
.dp-demo-card { min-height: 78px; }
.dp-demo-card .dp-card-word { font-size: 22px; }
.dp-word:focus-visible { outline: 2px solid #3b7dd8; outline-offset: 2px; }
#dailyPickScreen.dp-light .dp-word.is-split::before { background: linear-gradient(to bottom right, transparent calc(50% - .75px), rgba(80,60,20,.12) 50%, transparent calc(50% + .75px)); }
#dailyPickScreen.dp-light .dp-corner-x { background: #fbe4e3; color: #d83a3f; }
#dailyPickScreen.dp-light .dp-corner-check { background: #e2f1e3; color: #2f8a45; }
#dailyPickScreen.dp-light .dp-word.is-selected .dp-corner-check { background: #2f9449; color: #fff; }
#dailyPickScreen.dp-light .dp-word.is-struck .dp-corner-x { background: #ebe4d5; color: #6d665a; }
.dp-word.is-split.is-flap::before { inset: 50% 0 auto; height: 2px; margin-top: -1px; background: rgba(0,0,0,.5); }
/* Columns that the words (or spinning letters) can't widen, so the grid never shifts under a finger. */
.dp-board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dp-card-face { min-width: 0; }
.dp-card-word { max-width: 100%; overflow: hidden; white-space: nowrap; }
/* Big, but the widest five-letter words (WAXED, MOMMY) still clear the edges. */
#dailyPickScreen .dp-board:not(.is-pics):not(.is-colors) .dp-card-word { font-size: clamp(17px, 5vw, 26px) !important; letter-spacing: 0; }
.dp-word .dp-card-face { padding-left: 2px; padding-right: 2px; }
#dailyPickScreen .dp-board:not(.is-pics):not(.is-colors) .dp-card-word { font-size: clamp(18px, 5.7vw, 28px) !important; }

/* ======================================================================
   Tap a card to cross it out; the round ✓ on its top-right corner,
   poking out a little past the edge, picks it.
   ====================================================================== */
.dp-word.is-split::before { display: none; }
.dp-corner { display: none; }
.dp-word { overflow: visible; }
.dp-board { padding-top: 6px; }
.dp-pick-dot {
  position: absolute; top: -7px; right: -7px; z-index: 2;
  width: 28px; height: 28px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; font-family: inherit; font-weight: 900; line-height: 1;
  background: #1f2a38; color: #59c46c; border: 2px solid #3f9d4f;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
  transition: transform .1s ease, background .15s ease;
}
#dailyPickScreen .dp-pick-dot { font-size: 14px !important; }
.dp-pick-dot:active { transform: scale(.88); }
.dp-word.is-selected .dp-pick-dot { background: #3f9d4f; color: #fff; border-color: #fff; transform: scale(1.1); }
.dp-word.is-struck .dp-pick-dot { opacity: .5; }
.dp-demo-card .dp-pick-dot { top: -7px; right: -7px; }
#dailyPickScreen.dp-light .dp-pick-dot { background: #fffdf8; color: #2f8a45; border-color: #2f9449; box-shadow: 0 2px 6px rgba(80,60,20,.18); }
#dailyPickScreen.dp-light .dp-word.is-selected .dp-pick-dot { background: #2f9449; color: #fff; border-color: #fffdf8; }
/* The ✓ is a button, not a status: solid blue (the Guess button's color),
   raised. Once picked it becomes a plain ✕ to unpick. */
.dp-pick-dot, #dailyPickScreen.dp-light .dp-pick-dot {
  background: #3b7dd8; color: #fff; border: 2px solid #fff;
  box-shadow: 0 2px 0 #2a5ea8, 0 3px 8px rgba(30,60,120,.35);
}
.dp-pick-dot:active { transform: translateY(1px) scale(.92); box-shadow: 0 1px 0 #2a5ea8; }
.dp-pick-dot.is-unpick, #dailyPickScreen.dp-light .dp-pick-dot.is-unpick,
.dp-word.is-selected .dp-pick-dot, #dailyPickScreen.dp-light .dp-word.is-selected .dp-pick-dot {
  background: #5b5f66; color: #fff; border-color: #fff; transform: none;
  box-shadow: 0 2px 0 #3d4046, 0 3px 8px rgba(0,0,0,.3);
}
#dailyPickScreen.dp-light .dp-pick-dot.is-unpick { background: #6d665a; box-shadow: 0 2px 0 #4f4a41, 0 3px 8px rgba(80,60,20,.25); }
#dailyPickScreen .dp-pick-dot { font-size: 14px !important; }
.dp-word.is-struck .dp-pick-dot { opacity: .55; }
/* The picked card: outlined in the same blue as the Guess button. */
.dp-word.is-selected, #dailyPickScreen.dp-light .dp-word.is-selected {
  border-color: #3b7dd8; box-shadow: 0 0 0 2px rgba(59,125,216,.35), 0 6px 14px rgba(59,125,216,.2);
}
#dailyPickScreen.dp-light .dp-word.is-selected { background: #fffdf8; color: #2b2925; }
.dp-hint-check, .dp-tut-check { background: #3b7dd8; color: #fff; }
/* A raised key, not a badge: white with a border and a shadow under it,
   the check in the Guess blue. Pressing pushes it down. */
.dp-pick-dot, #dailyPickScreen.dp-light .dp-pick-dot {
  width: 30px; height: 30px; top: -8px; right: -8px;
  background: #fff; color: #3b7dd8; border: 1.5px solid #c9c2b4;
  box-shadow: 0 3px 0 #c9c2b4, 0 4px 10px rgba(60,45,20,.18);
}
.dp-pick-dot { background: #2a3442; color: #8ec5ff; border-color: #4a5566; box-shadow: 0 3px 0 #10161f, 0 4px 10px rgba(0,0,0,.35); }
.dp-pick-dot:active, #dailyPickScreen.dp-light .dp-pick-dot:active { transform: translateY(2px); box-shadow: 0 1px 0 #c9c2b4; }
#dailyPickScreen .dp-pick-dot { font-size: 15px !important; }
/* The corner key shows the card's state. Picked: pressed in, solid blue. */
.dp-pick-dot.is-picked, #dailyPickScreen.dp-light .dp-pick-dot.is-picked,
.dp-word.is-selected .dp-pick-dot, #dailyPickScreen.dp-light .dp-word.is-selected .dp-pick-dot {
  background: #3b7dd8; color: #fff; border-color: #2f6fc6;
  transform: translateY(2px); box-shadow: 0 1px 0 #2a5ea8, inset 0 1px 2px rgba(0,0,0,.2);
}
/* Crossed out: a red ✕, still a key (tap it, or the card, to bring the word back). */
.dp-pick-dot.is-out, #dailyPickScreen.dp-light .dp-pick-dot.is-out,
.dp-word.is-struck .dp-pick-dot, #dailyPickScreen.dp-light .dp-word.is-struck .dp-pick-dot {
  opacity: 1; background: #fff; color: #e5484d; border-color: #e8b4b4;
  box-shadow: 0 3px 0 #e8b4b4, 0 4px 10px rgba(120,30,30,.15);
}
.dp-pick-dot.is-out { background: #3a2a2e; border-color: #6b3a40; color: #ff7a7e; box-shadow: 0 3px 0 #1d1214, 0 4px 10px rgba(0,0,0,.35); }
#dailyPickScreen.dp-light .dp-pick-dot.is-out { background: #fff; color: #e5484d; border-color: #e8b4b4; box-shadow: 0 3px 0 #e8b4b4, 0 4px 10px rgba(120,30,30,.15); }
#dailyPickScreen:not(.dp-light) .dp-word .dp-pick-dot.is-out { background: #3a2a2e; border-color: #6b3a40; color: #ff7a7e; box-shadow: 0 3px 0 #1d1214, 0 4px 10px rgba(0,0,0,.35); }
#dailyPickScreen:not(.dp-light) .dp-word .dp-pick-dot.is-picked { border-color: #fff; }

/* ======================================================================
   Polish: bigger clues on guessed cards, quieter corner buttons, roomier
   cards, a divided title, the key as a strip, a fuller Guess button.
   ====================================================================== */
/* 1. A guessed card's letters fill the card. */
.dp-word.is-guessed .dp-card-face { width: 100%; padding: 6px; box-sizing: border-box; }
.dp-card-fb { width: 100%; gap: 3px; }
.dp-card-fb i {
  flex: 1; min-width: 0; width: auto;
  height: clamp(26px, 7.4vw, 36px); border-radius: 6px;
}
#dailyPickScreen .dp-card-fb i { font-size: clamp(13px, 4vw, 19px) !important; }
.dp-card-counts i { width: 26px; height: 26px; font-size: 14px; }

/* 2. Corner buttons: a dark (or paper) circle with a thin colored ring. */
#dailyPickScreen .dp-word .dp-pick-dot {
  top: -6px; right: -6px; width: 28px; height: 28px;
  background: #1c2430; color: #8ec5ff; border: 2px solid #3b7dd8;
  box-shadow: 0 2px 6px rgba(0,0,0,.35); transform: none;
}
#dailyPickScreen .dp-word .dp-pick-dot.is-out { background: #2a1d21; color: #ff7a7e; border-color: #c4474c; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
#dailyPickScreen .dp-word .dp-pick-dot.is-picked { background: #3b7dd8; color: #fff; border-color: #fff; }
#dailyPickScreen.dp-light .dp-word .dp-pick-dot { background: #fffdf8; color: #2f6fc6; border-color: #3b7dd8; box-shadow: 0 1px 4px rgba(80,60,20,.18); }
#dailyPickScreen.dp-light .dp-word .dp-pick-dot.is-out { background: #fffdf8; color: #d83a3f; border-color: #e5484d; box-shadow: 0 1px 4px rgba(80,60,20,.15); }
#dailyPickScreen.dp-light .dp-word .dp-pick-dot.is-picked { background: #3b7dd8; color: #fff; border-color: #fffdf8; }
#dailyPickScreen .dp-word .dp-pick-dot:active { transform: scale(.9); }

/* 3. Roomier cards. */
.dp-board { gap: 10px; }
.dp-word { min-height: clamp(76px, 10.5vh, 96px); }
.dp-board.is-pics .dp-word, .dp-board.is-colors .dp-word { min-height: 0; }
/* One glow at a time: the picked card gets an outline, not a halo. */
#dailyPickScreen:not(.dp-light) .dp-word.is-selected { box-shadow: 0 0 0 2px rgba(142,197,255,.35); }

/* 4. Title with a divider, the key as an outlined strip, a fuller Guess. */
.dp-title-grid { margin-left: 12px; padding-left: 12px; border-left: 2px solid rgba(255,255,255,.18); }
#dailyPickScreen.dp-light .dp-title-grid { border-left-color: rgba(43,41,37,.15); }
.dp-center .dp-key { padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); opacity: 1; }
#dailyPickScreen.dp-light .dp-center .dp-key { border-color: #e2d9c6; background: #fffdf8; }
.dp-center #dpGuess:not(:disabled) {
  padding-top: 15px; padding-bottom: 15px; border-radius: 14px;
  background: linear-gradient(180deg, #4a8be6, #3170cc); color: #fff; border-color: transparent;
}
#dailyPickScreen .dp-center #dpGuess { font-size: 18px !important; }
#dailyPickScreen .dp-word.is-guessed .dp-card-face { display: flex; justify-content: center; align-items: center; }
#dailyPickScreen .dp-word .dp-card-fb { display: flex; width: 100%; gap: 3px; }
#dailyPickScreen .dp-word .dp-card-fb i { flex: 1 1 0; width: auto; min-width: 0; height: clamp(30px, 8.6vw, 40px); border-radius: 6px; }
#dailyPickScreen .dp-word.is-guessed .dp-card-face { padding: 4px 3px; }
#dailyPickScreen .dp-word .dp-card-fb { gap: 2px; }
#dailyPickScreen .dp-word .dp-card-fb i { height: auto; aspect-ratio: 4 / 5; border-radius: 4px; }
#dailyPickScreen .dp-card-fb i { font-size: clamp(12px, 3.7vw, 17px) !important; }
/* Grid 3: the word above its two counts. */
#dailyPickScreen .dp-word.is-guessed .dp-card-face:has(.dp-card-counts) { flex-direction: column; gap: 5px; }

/* The pick button: a rounded rectangle tucked inside the card's corner. */
#dailyPickScreen .dp-word .dp-pick-dot, #dailyPickScreen .dp-demo-card .dp-pick-dot {
  top: 5px; right: 5px; width: 36px; height: 26px; border-radius: 8px;
  border-width: 1.5px; box-shadow: none;
}
#dailyPickScreen .dp-pick-dot { font-size: 14px !important; }
#dailyPickScreen:not(.dp-light) .dp-word .dp-pick-dot { background: rgba(59,125,216,.14); border-color: rgba(110,165,235,.55); color: #8ec5ff; }
#dailyPickScreen.dp-light .dp-word .dp-pick-dot { background: #eef4fc; border-color: #b9d0ef; color: #2f6fc6; }
#dailyPickScreen .dp-word .dp-pick-dot.is-picked, #dailyPickScreen.dp-light .dp-word .dp-pick-dot.is-picked { background: #3b7dd8; border-color: #3b7dd8; color: #fff; }
.dp-board { padding-top: 0; }
.dp-word .dp-card-face { padding-top: 14px; }
/* Crossed out: the ✕ stays, dimmed with the card. */
#dailyPickScreen .dp-word .dp-pick-dot.is-out, #dailyPickScreen.dp-light .dp-word .dp-pick-dot.is-out {
  opacity: .45; background: transparent; box-shadow: none;
}
#dailyPickScreen:not(.dp-light) .dp-word .dp-pick-dot.is-out { color: #ff8a8e; border-color: rgba(255,122,126,.5); }
#dailyPickScreen.dp-light .dp-word .dp-pick-dot.is-out { color: #c9484c; border-color: #e3a5a7; }
#dailyPickScreen .dp-word:not(.is-guessed) .dp-card-face { padding-top: 30px; padding-bottom: 8px; }
#dailyPickScreen .dp-board:not(.is-pics):not(.is-colors) .dp-word.is-struck:not(.is-guessed)::after { top: calc(50% + 11px); }

/* ======================================================================
   The board: a 4 x 5 block of word cards around the middle spot (row 3,
   columns 2-3). Tap a card to cross it out; drag it to the middle to guess.
   ====================================================================== */
.dp-board.is-diamond {
  --card-h: clamp(68px, 9.4vh, 88px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(5, var(--card-h));
  gap: 10px; padding-top: 0;
}
.dp-board.is-diamond .dp-word { height: var(--card-h); min-height: 0; touch-action: none; }
.dp-board.is-diamond.is-pics, .dp-board.is-diamond.is-colors { grid-template-rows: none; grid-auto-rows: auto; }
.dp-board.is-diamond.is-pics .dp-word, .dp-board.is-diamond.is-colors .dp-word { height: auto; }
#dailyPickScreen .dp-board.is-diamond .dp-word:not(.is-guessed) .dp-card-face { padding: 6px 2px; }
#dailyPickScreen .dp-board.is-diamond:not(.is-pics):not(.is-colors) .dp-word.is-struck:not(.is-guessed)::after { top: 50%; }
/* 16 words: the outer columns slide half a card toward the middle. */
.dp-board.is-diamond .dp-word.is-slid-down { translate: 0 calc((var(--card-h) + 10px) / 2); }
.dp-board.is-diamond .dp-word.is-slid-up { translate: 0 calc((var(--card-h) + 10px) / -2); }

/* The middle spot. */
.dp-drop {
  display: grid; place-items: center; min-width: 0; padding: 6px;
  border: 2.5px dashed rgba(255,255,255,.22); border-radius: 14px;
  text-align: center; transition: border-color .15s ease, background .15s ease;
}
.dp-drop-text { font-size: 13px; line-height: 1.35; font-weight: 600; opacity: .7; }
.dp-drop-text b { font-weight: 900; }
.dp-drop.has-guess { border-style: solid; border-color: rgba(255,255,255,.1); }
.dp-drop.is-over { border-style: dashed; border-color: #3b7dd8; background: rgba(59,125,216,.12); }
.dp-drop.is-over .dp-drop-text { visibility: hidden; }
.dp-drop.is-over .dp-drop-row { opacity: .3; }
.dp-drop .dp-row { gap: 3px; }
.dp-drop .dp-tile { width: clamp(24px, 6.8vw, 32px); height: clamp(28px, 7.8vw, 36px); border-radius: 6px; }
#dailyPickScreen .dp-drop .dp-tile { font-size: clamp(14px, 4.2vw, 18px) !important; }
.dp-drop .dp-plain-word { font-size: clamp(14px, 4.2vw, 18px); margin-right: 4px; }
.dp-drop .dp-count-tile { width: 24px; height: 24px; }
#dailyPickScreen.dp-light .dp-drop { border-color: #cfc4ae; }
#dailyPickScreen.dp-light .dp-drop.has-guess { border-color: #e6dfd0; background: #fffdf8; }
#dailyPickScreen.dp-light .dp-drop.is-over { border-color: #3b7dd8; background: rgba(59,125,216,.08); }
#dailyPickScreen.dp-light .dp-drop-text { color: #6d665a; opacity: 1; }

/* Dragging: the card lifts and follows the finger; its spot fades. */
.dp-word.is-dragging { opacity: .3; }
.dp-ghost {
  position: fixed; z-index: 50; pointer-events: none; margin: 0;
  transform: translate(-50%, -50%) scale(1.08) rotate(-3deg);
  box-shadow: 0 14px 30px rgba(0,0,0,.3) !important;
}
body.dp-dragging { -webkit-user-select: none; user-select: none; cursor: grabbing; }
.dp-center:not(:has(.dp-hint)) { padding-top: 10px; padding-bottom: 10px; }

/* The middle spot's feedback, as big as the spot allows (the spot itself
   keeps its size). Grids 1-2: five tiles across its width. Grid 3: the
   word and its two counts, bigger. */
.dp-drop .dp-drop-row { width: 100%; gap: 4px; justify-content: center; }
.dp-drop .dp-drop-row .dp-tile:not(.dp-count-tile) {
  flex: 1 1 0; width: auto; min-width: 0; max-width: 48px;
  height: min(52px, calc(var(--card-h) - 22px)); border-radius: 8px;
}
#dailyPickScreen .dp-drop .dp-drop-row .dp-tile { font-size: clamp(19px, 6vw, 28px) !important; }
.dp-drop .dp-drop-row .dp-plain-word { font-size: clamp(20px, 6.2vw, 30px); letter-spacing: .06em; margin-right: 6px; }
.dp-drop .dp-drop-row .dp-count-tile { flex: none; width: clamp(30px, 8.6vw, 38px); height: clamp(30px, 8.6vw, 38px); margin-left: 2px; }
#dailyPickScreen .dp-drop .dp-drop-row .dp-count-tile { font-size: clamp(16px, 4.8vw, 20px) !important; }
/* Grid 3 in the middle: the word and both counts fit inside the spot. */
.dp-drop .dp-drop-row:has(.dp-count-tile) { gap: 5px; flex-wrap: nowrap; }
.dp-drop .dp-drop-row .dp-plain-word { font-size: clamp(17px, 5.3vw, 25px); letter-spacing: .03em; margin-right: 3px; }
.dp-drop .dp-drop-row .dp-count-tile { width: clamp(26px, 7.6vw, 34px); height: clamp(26px, 7.6vw, 34px); margin-left: 0; }
.dp-drop .dp-drop-row:has(.dp-count-tile) { width: 100%; overflow: hidden; }
.dp-card-word { text-transform: uppercase; letter-spacing: .02em; }

/* The full-width middle spot (16 words): the guess as square letter tiles,
   like the classic feedback row, sized to the spot's height. */
.dp-drop.is-wide .dp-drop-row { width: auto; gap: 6px; }
.dp-drop.is-wide .dp-drop-row .dp-tile:not(.dp-count-tile) {
  flex: none; width: min(48px, calc(var(--card-h) - 20px)); height: min(48px, calc(var(--card-h) - 20px));
  max-width: none; aspect-ratio: 1; border-radius: 6px;
}
#dailyPickScreen .dp-drop.is-wide .dp-drop-row .dp-tile { font-size: min(26px, calc(var(--card-h) * .34)) !important; }
.dp-drop.is-wide .dp-drop-row .dp-plain-word { font-size: min(30px, calc(var(--card-h) * .4)); letter-spacing: .14em; margin-right: 12px; }
.dp-drop.is-wide .dp-drop-row .dp-count-tile { width: min(42px, calc(var(--card-h) - 26px)); height: min(42px, calc(var(--card-h) - 26px)); border-radius: 50%; margin-left: 2px; }
#dailyPickScreen .dp-drop.is-wide .dp-drop-row .dp-count-tile { font-size: min(22px, calc(var(--card-h) * .3)) !important; }
.dp-drop.is-wide .dp-drop-text { font-size: 15px; }

/* ---------- Settings ---------- */
.dp-gear-btn { display: grid; place-items: center; }
.dp-gear-btn svg { display: block; }
.dp-settings-panel h3 { margin: 4px 0 12px; text-align: center; }
.dp-setting-group { margin-top: 16px; }
.dp-setting-label { font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; opacity: .6; margin-bottom: 8px; }
.dp-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.06); }
.dp-seg label { position: relative; cursor: pointer; }
.dp-seg input { position: absolute; opacity: 0; pointer-events: none; }
.dp-seg span { display: block; padding: 10px 6px; border-radius: 9px; text-align: center; font-weight: 800; opacity: .6; transition: background .15s ease, opacity .15s ease; }
.dp-seg input:checked + span { background: #3b7dd8; color: #fff; opacity: 1; }
.dp-seg input:focus-visible + span { outline: 2px solid #8ec5ff; outline-offset: 1px; }
.dp-setting-note { font-size: 13px; line-height: 1.45; opacity: .7; margin: 8px 2px 0; }
.dp-settings-panel > .dp-next { display: block; width: 100%; margin-top: 20px; }
#dailyPickScreen.dp-light .dp-seg { background: #ebe4d5; }

/* ---------- The guessing spot: at the bottom, and the Guess button (tap mode) ---------- */
.dp-drop.is-bottom { margin-top: 6px; }
.dp-drop.has-button { border-style: solid; padding: 8px; }
.dp-drop .dp-drop-guess {
  width: 100%; height: 100%; margin: 0; padding: 0 10px; border-radius: 10px;
  background: linear-gradient(180deg, #4a8be6, #3170cc); color: #fff; border: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px; letter-spacing: .04em;
}
#dailyPickScreen .dp-drop .dp-drop-guess { font-size: clamp(17px, 5vw, 22px) !important; }

/* The gear, while Settings is open: a red ✕ like the ? (the shared
   .dp-help-btn.is-open style). */
#dailyPickScreen .dp-gear-btn.is-open { font-size: 16px !important; font-weight: 800; }
/* The tutorial's crossed-out demo card: the line through the middle of the word. */
.dp-demo-card.is-struck::after { top: 50%; }
.dp-settings-panel .dp-setting-group:first-of-type { margin-top: 4px; }
#dailyPickScreen .dp-demo-card .dp-card-face { padding: 6px 2px; }
#dailyPickScreen .dp-help-btn.is-open { background: #d64545; border-color: #d64545; color: #fff; }
#dailyPickScreen .dp-word.dp-demo-card:not(.is-guessed) .dp-card-face { padding: 6px 2px; }
#dpTitle.is-long { font-size: clamp(16px, 4.6vw, 21px) !important; letter-spacing: .03em; }
#dpTitle.is-long .dp-title-grid { margin-left: 8px; padding-left: 8px; }
/* Header: the title takes the space between the clock and the two buttons. */
.dp-head { grid-template-columns: auto minmax(0, 1fr) auto; }
#dpTitle { min-width: 0; text-align: center; white-space: nowrap; }
#dpTitle.is-long { font-size: clamp(14px, 4.1vw, 20px) !important; }
/* The clock only takes room when it's shown (Speed); otherwise the title gets it. */
.dp-clock[hidden] { display: none !important; }
.dp-head { grid-template-columns: minmax(0, 1fr) auto; }
.dp-head:has(.dp-clock:not([hidden])) { grid-template-columns: auto minmax(0, 1fr) auto; }
#dpTitle { overflow: hidden; }
/* While a word is being dragged: the spot lights up blue (and its text or
   last guess fades back); right over it, it gets stronger. */
.dp-drop.is-target, #dailyPickScreen.dp-light .dp-drop.is-target {
  border-style: dashed; border-color: #3b7dd8; background: rgba(59,125,216,.12);
  animation: dp-target-pulse 1.2s ease-in-out infinite;
}
.dp-drop.is-target .dp-drop-text { visibility: hidden; }
.dp-drop.is-target .dp-drop-row { opacity: .3; }
.dp-drop.is-target.is-over, #dailyPickScreen.dp-light .dp-drop.is-target.is-over {
  background: rgba(59,125,216,.26); border-color: #6fb1ff; animation: none;
  box-shadow: 0 0 0 3px rgba(59,125,216,.25);
}
@keyframes dp-target-pulse { 50% { background: rgba(59,125,216,.2); } }
@media (prefers-reduced-motion: reduce) { .dp-drop.is-target { animation: none; } }

/* Three choices in a row (How to guess). */
.dp-seg { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }

/* Hold mode: a ring above the word that fills; full = guessed. */
.dp-hold-ring {
  position: fixed; z-index: 50; width: 44px; height: 44px; pointer-events: none;
  transform: translate(-50%, -62%); border-radius: 50%;
  background: #16202e; box-shadow: 0 4px 14px rgba(0,0,0,.4);
  animation: dp-ring-in .15s ease-out;
}
.dp-hold-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.dp-hold-ring circle { fill: none; stroke-width: 4; }
.dp-hold-track { stroke: rgba(255,255,255,.18); }
.dp-hold-fill {
  stroke: #3b7dd8; stroke-linecap: round;
  stroke-dasharray: 94.25; stroke-dashoffset: 94.25;
  animation: dp-ring-fill var(--fill, 700ms) linear forwards;
}
@keyframes dp-ring-fill { to { stroke-dashoffset: 0; } }
@keyframes dp-ring-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.6); } }
.dp-word.is-holding { transform: scale(.96); border-color: #3b7dd8; transition: transform .7s ease, border-color .15s ease; }
#dailyPickScreen.dp-light .dp-hold-ring { background: #fffdf8; box-shadow: 0 4px 14px rgba(80,60,20,.2); }
#dailyPickScreen.dp-light .dp-hold-track { stroke: #e2d9c6; }

/* One letter: on every card, the letter the next guess will show. */
.dp-next-letter {
  font-weight: inherit; color: #8ec5ff;
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px;
}
#dailyPickScreen.dp-light .dp-next-letter { color: #2f6fc6; }
.dp-word.is-struck .dp-next-letter { color: inherit; text-decoration: none; }
/* ...and under the grid: which of the five it is. */
.dp-pos-hint { display: inline-flex; align-items: center; gap: 10px; }
.dp-pos { display: inline-flex; gap: 3px; }
.dp-pos i { width: 14px; height: 18px; border-radius: 3px; border: 1.5px solid rgba(255,255,255,.3); }
.dp-pos i.is-on { background: #3b7dd8; border-color: #3b7dd8; }
#dailyPickScreen.dp-light .dp-pos i { border-color: #cfc4ae; }
#dailyPickScreen.dp-light .dp-pos i.is-on { background: #3b7dd8; border-color: #3b7dd8; }
.dp-pos-hint { white-space: nowrap; gap: 8px; } .dp-pos-hint b { margin-left: 4px; }

/* Tap mode: the legend (stacked) on the left, the Guess button on the right,
   always there, so nothing shifts when a word is picked. */
.dp-key-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 12px; width: 100%; }
.dp-key.is-stacked { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 5px; padding: 6px 4px; border: 0 !important; background: none !important; text-align: left; }
.dp-key.is-stacked span { white-space: nowrap; }
.dp-side-guess {
  height: 56px; margin: 0; padding: 0 10px; border-radius: 14px; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; overflow: hidden;
}
.dp-side-guess:not(:disabled) { background: linear-gradient(180deg, #4a8be6, #3170cc); color: #fff; border-color: transparent; }
#dailyPickScreen .dp-side-guess { font-size: 17px !important; }
.dp-side-guess b { letter-spacing: .04em; }
/* The fade above the rule card's button: only while there's more to scroll. */
.dp-rule-foot, #dailyPickScreen.dp-light .dp-rule-foot { box-shadow: none; transition: box-shadow .2s ease; }
#dpRuleCard.has-more .dp-rule-foot { box-shadow: 0 -18px 16px -2px #16202e; }
#dailyPickScreen.dp-light #dpRuleCard.has-more .dp-rule-foot { box-shadow: 0 -18px 16px -2px #fffdf8; }
/* The stacked legend wraps inside its own column, never under the button. */
.dp-key.is-stacked { min-width: 0; }
.dp-key.is-stacked span { white-space: normal; align-items: flex-start; line-height: 1.25; }
.dp-key.is-stacked i { flex: none; margin-top: 2px; }
/* Tap mode's Guess button: a plain, smaller "Guess". */
.dp-key-row { grid-template-columns: minmax(0, 1fr) auto; }
.dp-side-guess { width: auto; min-width: 116px; height: 48px; padding: 0 26px; }
#dailyPickScreen .dp-side-guess { font-size: 17px !important; }
/* A picked word is solid blue in both looks. */
#dailyPickScreen.dp-light .dp-word.is-selected {
  background: #3b7dd8; border-color: #2f6fc6; color: #fff;
  box-shadow: 0 0 0 2px rgba(59,125,216,.25), 0 6px 14px rgba(59,125,216,.25);
}
/* Guess button: aims for 200px wide; gives way to the legend on narrow
   phones, but never below 110px. */
.dp-key-row { grid-template-columns: fit-content(58%) minmax(110px, 1fr); }
.dp-side-guess { width: 100%; max-width: 200px; min-width: 0; justify-self: end; padding: 0 12px; }
/* One steady width per phone (same on every grid): up to 200px, half the
   row at most, never under 110px. The legend wraps beside it. */
.dp-key-row { grid-template-columns: minmax(0, 1fr) clamp(110px, 50%, 200px); }
.dp-side-guess { width: 100%; max-width: none; }

/* Hold: a bubble above the finger with the word and the filling ring,
   over a dimmed screen. */
.dp-hold-dim { position: fixed; inset: 0; z-index: 48; background: rgba(5,8,14,.55); pointer-events: none; animation: dp-dim-in .15s ease-out; }
@keyframes dp-dim-in { from { opacity: 0; } }
.dp-hold-ring {
  width: auto; height: auto; border-radius: 999px; z-index: 50;
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 18px;
  transform: translate(-50%, -100%); white-space: nowrap;
  background: #1c2738; border: 1.5px solid #3b7dd8; box-shadow: 0 10px 28px rgba(0,0,0,.5);
}
.dp-hold-ring svg { width: 44px; height: 44px; flex: none; }
.dp-hold-word { font-weight: 900; font-size: 24px; letter-spacing: .04em; color: #fff; }
@keyframes dp-ring-in { from { opacity: 0; transform: translate(-50%, -85%) scale(.8); } }
/* The held card stays bright above the dim. */
.dp-word.is-holding { position: relative; z-index: 49; }
#dailyPickScreen.dp-light .dp-hold-ring { background: #fffdf8; border-color: #3b7dd8; }
#dailyPickScreen.dp-light .dp-hold-word { color: #2b2925; }
#dailyPickScreen.dp-light .dp-hold-dim { background: rgba(40,32,20,.35); }

/* ---------- Guided first game ---------- */
.dp-coach-dim { position: fixed; inset: 0; z-index: 60; background: rgba(5,8,14,.62); }
.dp-coach-dim[hidden], .dp-coach-say[hidden], .dp-coach-hand[hidden] { display: none; }
.dp-coach-splash {
  position: fixed; inset: 0; z-index: 61; display: grid; place-content: center; text-align: center; gap: 14px;
  pointer-events: auto; animation: dp-splash 2.6s ease both;
}
.dp-coach-splash b { font-size: clamp(30px, 9vw, 44px); font-weight: 900; color: #fff; letter-spacing: .02em; text-shadow: 0 4px 20px rgba(0,0,0,.5); }
.dp-coach-splash small { font-size: 14px; color: rgba(255,255,255,.6); }
@keyframes dp-splash { 0% { opacity: 0; transform: scale(.92); } 15%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.dp-coach-focus { position: relative; z-index: 61; box-shadow: 0 0 0 3px #3b7dd8, 0 0 30px rgba(59,125,216,.5) !important; }
/* The words: a bubble at the top of the screen, or at the bottom when the
   target is up high, so it never covers what you have to tap. */
.dp-coach-say {
  position: fixed; z-index: 63; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(360px, calc(100vw - 32px)); padding: 14px 16px 10px; border-radius: 16px;
  background: #fffdf8; color: #1b1f27; box-shadow: 0 12px 34px rgba(0,0,0,.45);
  font-size: 16px; line-height: 1.4; text-align: center; pointer-events: auto;
  animation: dp-say-in .25s ease-out;
}
.dp-coach-say:not(.is-low) { bottom: auto; top: max(14px, env(safe-area-inset-top)); }
.dp-coach-say small { display: block; margin-top: 6px; font-size: 12.5px; color: #6d665a; }
.dp-coach-say .c-hit { color: #2f9449; } .dp-coach-say .c-near { color: #b8860b; }
.dp-coach-skip { display: block; margin: 6px auto 0; padding: 2px 8px; border: 0; background: none; color: #8a8276; font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
@keyframes dp-say-in { from { opacity: 0; transform: translate(-50%, 6px); } }
/* The hand: its fingertip on the target, gliding from one target to the next, tapping. */
.dp-coach-hand {
  position: fixed; z-index: 62; width: 54px; height: 54px; pointer-events: none;
  margin: -6px 0 0 -18px; transition: left .6s cubic-bezier(.3,.7,.2,1), top .6s cubic-bezier(.3,.7,.2,1);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.45));
}
.dp-coach-hand svg { width: 100%; height: 100%; display: block; animation: dp-hand-tap 1.1s ease-in-out .6s infinite; transform-origin: 40% 10%; }
.dp-coach-hand.is-double svg { animation: dp-hand-double 1.4s ease-in-out .6s infinite; }
.dp-coach-hand.is-nudge svg { animation: dp-hand-nudge .4s ease; }
@keyframes dp-hand-tap { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(6px) scale(.9); } }
@keyframes dp-hand-double { 0%, 52%, 100% { transform: none; } 14%, 38% { transform: translateY(6px) scale(.9); } 26% { transform: none; } }
@keyframes dp-hand-nudge { 25%, 75% { transform: translateX(-6px); } 50% { transform: translateX(6px); } }
/* While coaching: no settings or help buttons to wander off to. */
#dailyPickScreen.is-coaching .dp-head-buttons { visibility: hidden; }
#dailyPickScreen.dp-light .dp-coach-dim { background: rgba(40,32,20,.5); }
@media (prefers-reduced-motion: reduce) { .dp-coach-hand svg, .dp-coach-splash { animation: none !important; } .dp-coach-hand { transition: none; } }
.dp-coach-dim.is-dark { background: rgba(5,8,14,.86); } .dp-coach-done .dp-share { padding-left: 26px; padding-right: 26px; }

/* ======================================================================
   Main buttons (Share, Play, Guess) in the theme's own button colors:
   light on dark, dark on light. Share stays the biggest.
   ====================================================================== */
#dailyPickScreen .dp-share,
#dailyPickScreen .dp-side-guess:not(:disabled),
#dailyPickScreen .dp-drop-guess,
#dailyPickScreen .dp-start-play,
#dailyPickScreen .dp-center #dpGuess:not(:disabled) {
  background: #eef0f3; color: #141a24; border-color: transparent; box-shadow: none;
}
#dailyPickScreen.dp-light .dp-share,
#dailyPickScreen.dp-light .dp-side-guess:not(:disabled),
#dailyPickScreen.dp-light .dp-drop-guess,
#dailyPickScreen.dp-light .dp-start-play,
#dailyPickScreen.dp-light .dp-center #dpGuess:not(:disabled) {
  background: #2b2925; color: #fffdf8;
}
#dailyPickScreen .dp-summary .dp-share { box-shadow: 0 4px 14px rgba(0,0,0,.25); font-weight: 800; }
#dailyPickScreen.dp-light .dp-summary .dp-share { box-shadow: 0 4px 14px rgba(43,41,37,.2); }
/* Share and Settings on one row: Share wide, Settings a compact button. */
.dp-share-row:has(.dp-sum-settings):not(:has(#dpExperimental)) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: stretch; }
.dp-share-row:has(.dp-sum-settings) .dp-share { width: 100%; min-width: 0; }
.dp-summary .dp-share-row .dp-sum-settings {
  height: auto; padding: 0 16px; display: flex; align-items: center; gap: 6px;
  border-radius: 999px; background: transparent; color: inherit; border: 1.5px solid rgba(255,255,255,.28);
}
#dailyPickScreen .dp-summary .dp-sum-settings { font-size: 15px !important; }
.dp-sum-settings svg { display: block; flex: none; }
#dailyPickScreen.dp-light .dp-summary .dp-sum-settings { border-color: #cfc4ae; color: #2b2925; background: transparent; }
#dailyPickScreen .dp-summary #dpSumSettings { height: auto; min-height: 50px; align-self: stretch; background: transparent; color: inherit; border: 1.5px solid rgba(255,255,255,.28); }
#dailyPickScreen.dp-light .dp-summary #dpSumSettings { background: transparent !important; color: #2b2925 !important; border-color: #cfc4ae; }

/* Results: the settings gear stays up top (the ? hides). */
#dailyPickScreen.is-results .dp-gear-btn { visibility: visible; }

/* The coach's hand: bigger, with a ripple where the fingertip taps. */
.dp-coach-hand { width: 66px; height: 74px; margin: -4px 0 0 -22px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
.dp-coach-hand svg { animation-name: dp-hand-tap2; transform-origin: 38% 6%; }
.dp-coach-hand.is-double svg { animation-name: dp-hand-double2; }
@keyframes dp-hand-tap2 { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(7px) scale(.92) rotate(-4deg); } }
@keyframes dp-hand-double2 { 0%, 52%, 100% { transform: none; } 14%, 38% { transform: translateY(7px) scale(.92) rotate(-4deg); } 26% { transform: none; } }
.dp-hand-ripple {
  position: absolute; left: 22px; top: 4px; width: 0; height: 0; border-radius: 50%;
  border: 3px solid rgba(142,197,255,.9); transform: translate(-50%, -50%);
  animation: dp-ripple 1.1s ease-out .9s infinite;
}
.dp-coach-hand.is-double .dp-hand-ripple { animation: dp-ripple-2 1.4s ease-out .8s infinite; }
@keyframes dp-ripple { 0% { width: 0; height: 0; opacity: 1; } 45% { width: 46px; height: 46px; opacity: 0; } 100% { opacity: 0; } }
@keyframes dp-ripple-2 { 0%, 34% { width: 0; height: 0; opacity: 1; } 22% { width: 40px; height: 40px; opacity: 0; } 34.1% { width: 0; height: 0; opacity: 1; } 60% { width: 46px; height: 46px; opacity: 0; } 100% { opacity: 0; } }
#dpTourHand.dp-coach-hand { z-index: 64; }

/* The guided game's finish screen. */
.dp-coach-done { align-items: center; text-align: center; gap: 10px; padding: 18px 8px 8px; }
.dp-done-badge {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--dp-hit); color: #fff; font-size: 34px; font-weight: 900; margin-bottom: 4px;
  box-shadow: 0 8px 22px rgba(63,157,79,.35); animation: dp-pop .5s cubic-bezier(.3,1.6,.5,1) both;
}
.dp-coach-done .dp-verdict { font-size: 28px; margin: 0; }
.dp-done-lead { margin: 0; font-size: 16px; opacity: .8; }
.dp-done-steps { margin: 6px 0 2px; padding: 12px 16px 12px 36px; text-align: left; border-radius: 14px; background: rgba(255,255,255,.06); line-height: 1.8; width: min(100%, 300px); box-sizing: border-box; }
.dp-done-note { margin: 4px 0 8px; font-size: 14px; opacity: .7; max-width: 300px; line-height: 1.45; }
.dp-coach-done .dp-done-play { width: min(100%, 300px); padding: 14px 0; }
#dailyPickScreen.dp-light .dp-done-steps { background: #f4efe4; }
.dp-setting-group.dp-coach-focus { padding: 10px; margin-left: -10px; margin-right: -10px; border-radius: 14px; background: #16202e; } #dailyPickScreen.dp-light .dp-setting-group.dp-coach-focus { background: #fffdf8; }
/* Settings > Colors: each choice shows its two feedback colors. */
.dp-seg span:has(.dp-sw) { display: flex; align-items: center; justify-content: center; gap: 3px; }
.dp-sw { width: 14px; height: 14px; border-radius: 3px; display: inline-block; flex: none; box-shadow: 0 0 0 1.5px rgba(255,255,255,.35); }
.dp-sw + .dp-sw { margin-right: 5px; }
#dailyPickScreen.dp-light .dp-sw { box-shadow: 0 0 0 1.5px rgba(0,0,0,.12); }
.dp-seg input:not(:checked) + span:has(.dp-sw) { opacity: 1; color: rgba(255,255,255,.6); }
#dailyPickScreen.dp-light .dp-seg input:not(:checked) + span:has(.dp-sw) { color: rgba(43,41,37,.6); }
