/* Word of the Day (home page), guess only. Letter colors: green = right spot, gold = in the word but another spot, gray = not in it.
   Our own look: guesses stack inside the site's card, the word length changes by day, one input row. */
.wd { max-width: 520px; margin: 0 auto; }
.wd[hidden] { display: none; }
.wd-card { background: #fff; border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 24px; padding: 18px 18px 20px; animation: rise .35s ease; }
.wd-card.same { animation: none; }
.wd .bn-lbl { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.wd-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.wd-dots { display: none; }
.wd-dots i { width: 12px; height: 12px; border-radius: 50%; background: #ECE6D9; }
.wd-dots i.miss { background: #B7AF9F; }
.wd-dots i.win { background: var(--green); }
.wd-ask { text-align: center; font-size: 1.05rem; color: var(--ink); margin-bottom: 14px; }

/* Guesses: one rounded row per guess */
.wd-rows { display: grid; gap: 6px; margin-bottom: 14px; }
.wd-rows:empty { display: none; }
.wd-row { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 58px)); justify-content: center; gap: 6px; }
.wd-rows.long .wd-row { gap: 4px; grid-template-columns: repeat(var(--n), minmax(0, 44px)); }
.wd-t { display: grid; place-items: center; aspect-ratio: 1; border-radius: 9px; font-size: 1.7rem; font-weight: 700; color: #fff; }
.wd-rows.long .wd-t { font-size: 1.2rem; border-radius: 7px; }
.wd-t.empty { background: var(--paper); border: 2px solid #E4DCCB; color: var(--ink); }
.wd-row.cur .wd-t.empty { border-color: #CFC5B1; }
.wd-t.empty.typed { border-color: var(--blue); animation: trypop .18s ease; }
.wd-t.yes { background: var(--green); box-shadow: inset 0 -3px 0 var(--green-deep); }
.wd-t.near { background: var(--gold); box-shadow: inset 0 -3px 0 #A8853F; color: var(--blue-deep); }
.wd-t.no { background: #B7AF9F; box-shadow: inset 0 -3px 0 #9C9484; }
.wd-t.flip { animation: wd-in .5s ease both; }
@keyframes wd-in { 0% { transform: rotateX(90deg); filter: brightness(1.3); } 100% { transform: rotateX(0); } }

/* How to play (compact: demo beside the rules on wider screens, one line per color) */
.wd-intro-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.wd-intro-h h3 { font-size: 1.35rem; color: var(--ink); }
.wd-intro-grid { display: grid; gap: 14px; align-items: center; }
.wd-rules { text-align: left; }
.wd-rules > p { color: var(--ink); line-height: 1.5; font-size: .98rem; }
.wd-legend { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 6px; }
.wd-legend li { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 600; color: var(--ink); }
.wd-legend .wd-t { flex: none; width: 30px; height: 30px; aspect-ratio: auto; font-size: .95rem; border-radius: 6px; }
.wd-intro-end { font-size: .86rem !important; color: var(--muted) !important; }
.wd-intro .wd-play { display: flex; justify-content: center; width: 100%; margin-top: 14px; min-height: 52px; }
@media (min-width: 520px) { .wd-intro-grid { grid-template-columns: auto 1fr; gap: 18px; } }
.wd-help { flex: none; width: 34px; height: 34px; border: 2px solid var(--line); border-radius: 50%; background: #fff; font-family: inherit; font-size: 1rem; font-weight: 800; color: var(--muted); cursor: pointer; }
.wd-help:hover { color: var(--blue); border-color: var(--blue); }
.wd-row.wd-shake { animation: shake .3s ease; }

/* Tap keyboard (phones and touch screens). Keys take the best color found for that letter. */
/* Every key is one tenth of the row, so all three rows share the same left and right edges (Ethan 2026-11-07: iPad looked uneven).
   Row 2 sits half a key in, row 3 has Enter and Delete filling the sides. Scales up on iPads instead of staying phone sized. */
.wd-kb { display: none; gap: 7px; width: 100%; max-width: 760px; margin: 14px auto 0; -webkit-user-select: none; user-select: none; }
.wd-kr { display: flex; justify-content: center; gap: 5px; }
.wd-k { flex: 0 0 calc((100% - 45px) / 10); min-width: 0; height: clamp(50px, 6dvh, 62px); padding: 0; border: 0; border-radius: 8px; background: #E9E3D6; box-shadow: inset 0 -3px 0 #D3CBBB; font-family: inherit; font-size: clamp(1.05rem, 2.6vw, 1.4rem); font-weight: 700; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.wd-k.wide { flex: 1 1 0; font-size: clamp(.8rem, 1.8vw, 1rem); }
.wd-k.del { flex: 1 1 0; font-size: clamp(1.2rem, 2.6vw, 1.5rem); }
.wd-k:active { transform: translateY(2px); box-shadow: none; }
.wd-k.yes { background: var(--green); box-shadow: inset 0 -3px 0 var(--green-deep); color: #fff; }
.wd-k.near { background: var(--gold); box-shadow: inset 0 -3px 0 #A8853F; color: var(--blue-deep); }
.wd-k.no { background: #B7AF9F; box-shadow: inset 0 -3px 0 #9C9484; color: #fff; }
.wd-type { text-align: center; font-size: .88rem; color: var(--muted); }
/* Where to start: the current row glows gold and the next tile blinks a cursor. A nudge sits above an empty board. */
.wd-row.cur .wd-t.empty { border-color: var(--gold); background: #FFFCF3; }
.wd-row.cur { border-radius: 12px; animation: wd-glow 1.8s ease-in-out infinite; }
.wd-rows.played .wd-row.cur { animation: none; }
@keyframes wd-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(201,164,92,0); } 50% { box-shadow: 0 0 0 5px rgba(201,164,92,.28); } }
.wd-t.caret { position: relative; }
.wd-t.caret::after { content: ""; position: absolute; left: 50%; top: 22%; bottom: 22%; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--blue); animation: wd-blink 1s steps(1) infinite; }
@keyframes wd-blink { 50% { opacity: 0; } }
.wd-board { position: relative; }
.wd-nudge { position: absolute; left: 0; right: 0; top: 34%; z-index: 2; margin: 0 auto; width: fit-content; max-width: 92%; padding: 9px 16px; border-radius: 999px; background: var(--blue); color: var(--paper); font-size: .9rem; font-weight: 700; text-align: center; box-shadow: 0 3px 0 var(--blue-lip), 0 10px 24px rgba(20,42,70,.18); animation: wd-bob 1.6s ease-in-out infinite; transition: opacity .25s; pointer-events: none; }
.wd-nudge.gone { opacity: 0; animation: none; }
@keyframes wd-bob { 50% { transform: translateY(3px); } }
.wd-nudge .kb-m { display: none; }

/* Hints: gold button, the hints so far listed under the board */
.wd-topbtns { display: flex; align-items: center; gap: 8px; }
.wd-hintbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 2px solid var(--gold); border-bottom-width: 4px; border-radius: 12px; background: #FFF8E6; font-family: inherit; font-size: .9rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.wd-hintbtn small { font-size: .74rem; font-weight: 700; color: #8A6A12; }
.wd-hintbtn:active { transform: translateY(2px); border-bottom-width: 2px; margin-bottom: 2px; }
.wd-hintbtn:disabled { opacity: .45; cursor: default; }
/* Hint bubble and short messages float over the board, so showing or hiding them never moves the keyboard.
   Hidden until they tap Hint. Sits low on the board early, moves to the top once guesses reach the bottom rows. */
.wd-hintbtn.on { background: var(--gold); }
.wd-hintbtn.on small { color: var(--ink); }
.wd-strip { position: absolute; left: 0; right: 0; bottom: 4px; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 58px; padding: 6px; border-radius: 14px; text-align: center; font-size: .92rem; line-height: 1.3; box-shadow: 0 10px 28px rgba(20,42,70,.22); transition: opacity .2s, transform .2s; }
.wd-strip.up { bottom: auto; top: 4px; }
.wd-strip.off { opacity: 0; transform: translateY(6px); pointer-events: none; }
.wd-strip.msg { background: var(--mist); color: var(--blue); font-weight: 700; }
.wd-strip.msg.bad { background: var(--red-bg); color: var(--red-deep); }
.wd-strip.hint { background: #FFF8E6; border: 2px solid var(--gold); justify-content: space-between; }
.wd-strip.fresh { animation: wd-pop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes wd-pop { 40% { transform: scale(1.03); } }
.wd-hnext { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 42px; padding: 4px 10px; border: 0; border-bottom: 3px solid #A8853F; border-radius: 10px; background: var(--gold); font-family: inherit; font-size: .82rem; font-weight: 800; line-height: 1.1; color: var(--ink); cursor: pointer; white-space: nowrap; animation: wd-hglow 1.3s ease-in-out infinite; }
.wd-hnext small { font-size: .66rem; font-weight: 700; color: rgba(20,42,70,.7); }
.wd-hnext:active { transform: translateY(2px); border-bottom-width: 1px; }
@keyframes wd-hglow { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(201,164,92,.6); } 50% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(201,164,92,0); } }
.wd-hx { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(201,164,92,.2); font-family: inherit; font-size: 1.3rem; line-height: 1; color: #8A6A12; cursor: pointer; }
.wd-hvtxt { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--ink); }
.wd-hvtxt small { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8A6A12; }
.wd-hvtxt span { font-weight: 600; }
.wd-hv { flex: none; width: 32px; height: 40px; border: 0; border-radius: 10px; background: none; font-family: inherit; font-size: 1.6rem; line-height: 1; color: #8A6A12; cursor: pointer; }
.wd-hv:disabled { opacity: .25; cursor: default; }
.wd-hv:not(:disabled):hover { background: rgba(201,164,92,.15); }
.wd-usedh { margin: -4px 0 10px; font-weight: 700; color: #8A6A12; }

/* How to play: the live demo board */
.wd-demo { position: relative; margin: 8px auto 0; padding: 14px 10px 10px; width: fit-content; background: var(--paper); border: 2px solid var(--line); border-radius: 18px; }
.wd-demo .wd-rows { margin: 0; gap: 4px; }
.wd-demo .wd-row { grid-template-columns: repeat(5, 32px); gap: 4px; }
.wd-demo .wd-t { font-size: .95rem; border-radius: 6px; }
.wd-demo .wd-t.empty { background: #fff; color: var(--ink); }
.wd-demo .wd-t.typed { border-color: var(--blue); }
.wd-demo-tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); padding: 2px 10px; border-radius: 999px; background: var(--blue); color: var(--paper); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.wd-demo.solved { border-color: var(--green); }
.wd-demo.solved .wd-demo-tag { background: var(--green); }

@media (max-width: 759px), (pointer: coarse) {
  .wd-kb { display: grid; }
  .wd-type { display: none; }
  .wd-nudge .kb-d { display: none; }
  .wd-nudge .kb-m { display: inline; }
}
.wd-msg { min-height: 1.4em; margin-top: 8px; text-align: center; font-weight: 700; color: var(--muted); font-size: .92rem; }
.wd-msg.bad { color: var(--red-deep); }

/* End */
.wd-end { text-align: center; }
.wd-end.won { border-color: rgba(47,143,78,.5); }
.wd-reveal { animation: rise .4s ease both; }
.wd-head { font-size: 1.45rem; margin: 4px 0 10px; color: var(--ink); }
.wd-end.won .wd-head { color: var(--green-deep); }
.wd-verse { font-size: 1.05rem; line-height: 1.6; font-style: italic; color: var(--ink); margin-bottom: 10px; }
.wd-verse mark { background: var(--green-bg); color: var(--green-deep); font-weight: 700; font-style: normal; padding: 0 3px; border-radius: 4px; }
.wd-verse strong { font-style: normal; white-space: nowrap; }
.wd-why { color: var(--muted); line-height: 1.55; margin-bottom: 16px; }
.wd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 8px; margin-bottom: 14px; border: 2px solid var(--line); border-radius: 18px; }
.wd-stats b { display: block; font-size: 1.4rem; color: var(--ink); }
.wd-stats span { font-size: .76rem; font-weight: 600; color: var(--muted); }
.wd-share { width: 100%; }
.wd-next { margin-top: 12px; font-size: .9rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .wd *, .wd-card { animation: none !important; transition: none !important; }
}

/* No text highlighting on the game itself (Ethan 2026-11-03: dragging highlighted the tiles). The end card stays selectable so the verse can be copied. */
.wd-card:not(.wd-end) { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }

/* Hint locked until the next guess (2026-11-23) */
.wd-hnext.locked { animation: none; background: #EFE7D4; border-bottom-color: #D6C9AA; color: var(--muted); cursor: default; }
.wd-hnext.locked small { color: inherit; opacity: .85; }
.wd-hnext.locked:active { transform: none; border-bottom-width: 3px; }

/* End screen progress: streak, numbers, Bible words collected (Ethan approved the mockup 2026-11-23) */
.wd-sec { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); text-align: left; }
.wd-pin { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .65rem; font-weight: 700; letter-spacing: 0; }
.wd-sk { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(180deg, #FFF6E2, #FFF0D2); border: 2px solid var(--gold-light); text-align: left; }
.wd-sk.off { background: var(--cream); border-color: var(--line); }
.wd-sk-flame { font-size: 2.6rem; line-height: 1; filter: drop-shadow(0 2px 6px rgba(201,120,40,.35)); }
.wd-sk.off .wd-sk-flame { filter: grayscale(1); opacity: .45; }
.wd-sk-flame.go { animation: wd-flame 1.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes wd-flame { 50% { transform: scale(1.08) rotate(-3deg); } }
.wd-sk-txt b { display: block; font-size: 1.15rem; color: var(--ink); margin-bottom: 4px; }
.wd-sk-num { font-size: 2.1rem; font-weight: 700; line-height: 1; color: var(--ink); margin-right: 2px; }
.wd-sk-txt > span { display: block; font-size: .85rem; line-height: 1.4; color: var(--muted); }
.wd-sk-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 10px; }
.wd-sk-day { display: grid; justify-items: center; gap: 4px; font-size: .7rem; font-weight: 600; color: var(--muted); }
.wd-sk-day i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-style: normal; font-size: .85rem; font-weight: 700; color: #fff; background: #E9E2D3; }
.wd-sk-day i.ok { background: var(--green); box-shadow: inset 0 -2px 0 var(--green-deep); }
.wd-sk-day i.miss { background: var(--red-bg); color: var(--red); }
.wd-sk-day i.today { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--green); }
.wd-sk-day i.today:not(.ok) { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--line-dark); }
.wd-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.wd-nums div { padding: 10px 4px; border: 2px solid var(--line); border-radius: 14px; background: #fff; }
.wd-nums b { display: block; font-size: 1.25rem; color: var(--ink); }
.wd-nums span { display: block; font-size: .7rem; font-weight: 600; color: var(--muted); line-height: 1.25; }
.wd-shelf { display: flex; flex-wrap: wrap; gap: 6px; }
.wd-chip { border: 0; font-family: inherit; cursor: pointer; padding: 7px 10px; border-radius: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: #fff; background: var(--green); box-shadow: inset 0 -3px 0 var(--green-deep); }
.wd-chip.miss { background: #fff; color: var(--muted); box-shadow: none; border: 2px dashed var(--line-dark); padding: 5px 8px; }
.wd-chip.new { position: relative; animation: wd-chip-pop .6s cubic-bezier(.3,1.6,.5,1) .4s both; }
.wd-chip.new::after { content: "NEW"; position: absolute; top: -8px; right: -6px; padding: 1px 5px; border-radius: 6px; background: var(--gold); color: var(--blue-deep); font-size: .58rem; box-shadow: 0 2px 0 #A8853F; }
.wd-chip.on { outline: 3px solid var(--gold); outline-offset: 2px; }
@keyframes wd-chip-pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: none; opacity: 1; } }
.wd-shelf-v { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--cream); border: 2px solid var(--line); font-size: .88rem; line-height: 1.5; color: var(--ink); text-align: left; }
.wd-shelf-v[hidden], .wd-shelf-cap[hidden] { display: none; }
.wd-shelf-v mark { background: #FFF0C2; padding: 0 2px; border-radius: 3px; }
.wd-shelf-v em { color: var(--muted); }
.wd-shelf-cap { margin: 6px 0 0; font-size: .82rem; color: var(--muted); text-align: left; }
.wd-end .wd-share { margin-top: 18px; }
.wd-next b { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .wd-sk-flame.go, .wd-chip.new { animation: none; } }
