/* Daily Hand. Phone first: the 13-tile hand fits two rows (7 + 6) at 360 px, one row from 700 px.
   Signature moments: the hand on the felt with five neon hearts, guesses lighting jade or red, and the reveal. */
.d-h1 { font-size:clamp(28px,7.4vw,46px); }
.d-sub { margin:0 0 10px; color:var(--dim); }
.d-sub .han { font-size:1.15em; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

.d-app { scroll-margin-top:70px; }
.d-bar { display:flex; align-items:center; gap:8px; margin:4px 0 10px; }
.d-tag { margin-right:auto; font-family:var(--f-display); font-weight:700; font-size:19px; letter-spacing:.08em; text-transform:uppercase;
  color:#ffe3e8; text-shadow:0 0 4px rgb(var(--c-red)), 0 0 14px rgb(var(--c-red) / .7); }
.d-help-btn { min-width:44px; padding:0; font-size:18px; }
.d-controls { margin-bottom:12px; flex-wrap:nowrap; gap:6px; }
.d-controls .seg button { padding:6px 10px; font-size:13px; }
.d-controls .btn { padding:8px 12px; font-size:14px; white-space:nowrap; }
.d-helpcard { margin-top:14px; }
.d-note { font-size:14px; color:var(--dim); margin:0 0 10px; }

.d-helpcard p { margin:0 0 8px; }
.d-mini { --tile-w:22px; display:inline-flex; gap:2px; vertical-align:middle; margin:2px 0; }
.d-mini .tile { box-shadow:0 2px 0 #23a274, 0 3px 4px rgba(0,0,0,.5); }

/* The hand, dealt on felt */
.d-felt { padding:16px 10px 18px; }
.d-hand { --tile-w:min(46px,calc((min(100vw,780px) - 72px) / 7.7)); display:flex; flex-wrap:wrap; justify-content:center;
  gap:calc(var(--tile-w) * .18) calc(var(--tile-w) * .1); max-width:calc(var(--tile-w) * 7.62); margin:0 auto; padding-bottom:calc(var(--tile-w) * .12); }
@media (min-width:700px) {
  .d-hand { --tile-w:min(50px,calc((min(100vw,780px) - 72px) / 14.5)); max-width:calc(var(--tile-w) * 14.22); }
}

/* Lives as five neon hearts, waits found as slots */
.d-status { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin:14px 2px 8px; }
.d-hearts { display:inline-flex; gap:5px; white-space:nowrap; line-height:0; }
.d-heart { width:26px; height:24px; overflow:visible; }
.d-heart path { fill:none; stroke:rgb(var(--c-red) / .35); stroke-width:1.6; }
.d-heart.on path { fill:rgb(var(--c-red) / .28); stroke:#ffd3dc; stroke-width:2; }
.d-heart.on { filter:drop-shadow(0 0 2px rgb(var(--c-red))) drop-shadow(0 0 6px rgb(var(--c-red) / .85)); }
.d-slots { --tile-w:30px; display:flex; align-items:center; gap:5px; flex-wrap:wrap; }
.d-count { margin-right:4px; font-family:var(--f-display); font-weight:700; font-size:15px; letter-spacing:.08em; text-transform:uppercase; color:var(--dim); }
.d-count b { font-size:19px; color:#d4ffee; text-shadow:0 0 8px rgb(var(--c-jade) / .8); }
.d-slot { width:var(--tile-w); aspect-ratio:3/4; border:1.5px dashed rgb(var(--c-jade) / .5); border-radius:5px; display:inline-grid; place-items:center; color:rgb(var(--c-jade)); font-weight:700;
  background:rgb(var(--c-jade) / .05); }
.tile.hit { outline:2.5px solid rgb(var(--c-jade)); outline-offset:2px; box-shadow:inset 0 1px 0 #fff, 0 calc(var(--tile-w) * .07) 0 #23a274, 0 0 16px rgb(var(--c-jade) / .85); }
.tile.missed { outline:2.5px solid rgb(var(--c-red)); outline-offset:2px; box-shadow:inset 0 1px 0 #fff, 0 calc(var(--tile-w) * .07) 0 #23a274, 0 0 14px rgb(var(--c-red) / .75); }
.d-say { min-height:52px; display:flex; align-items:center; gap:10px; margin:0 2px 12px; font-size:16px; }
.d-say .d-mini { --tile-w:30px; }
.d-say-han { font-size:24px; color:#fff; text-shadow:0 0 12px rgb(var(--c-red) / .55); }
.d-roman { color:#ffcf87; font-weight:650; }
.d-say .ok, .d-say .no { font-family:var(--f-display); font-size:19px; letter-spacing:.02em; }
.d-say .ok { color:#d4ffee; text-shadow:0 0 10px rgb(var(--c-jade)); }
.d-say .no { color:#ffe0e6; text-shadow:0 0 10px rgb(var(--c-red)); }

/* The 34-tile picker on a dark wooden tray, rows of 9 (honours row of 7) */
.d-picker { --tile-w:min(54px,calc((min(100vw,780px) - 50px) / 9.9)); display:grid; gap:calc(var(--tile-w) * .22); padding:12px 8px 14px; border-radius:10px;
  background:linear-gradient(180deg, #2a160b, #1a0d06); box-shadow:inset 0 2px 8px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,200,140,.08); }
.d-prow { display:flex; justify-content:center; gap:calc(var(--tile-w) * .1); }
.d-picker .tile.miss { opacity:.32; }
.d-picker .tile.miss::after { content:"✕"; position:absolute; inset:0; display:grid; place-items:center; color:rgb(var(--c-red)); font-weight:900; font-size:calc(var(--tile-w) * .7); }

.d-more { margin:16px 0 4px; }
.d-more .btn { font-size:15px; }

/* After the hand: the reveal */
.d-end > .card { animation:d-in .5s both; }
.d-end > .card:nth-child(2) { animation-delay:.15s; } .d-end > .card:nth-child(3) { animation-delay:.3s; } .d-end > .card:nth-child(4) { animation-delay:.45s; }
@keyframes d-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
.d-result { --frame:var(--c-red); text-align:center; }
.d-result h2 { margin-bottom:4px; font-size:clamp(30px,9vw,44px); }
.d-result h2.ok { color:#e6fff4; text-shadow:0 0 4px rgb(var(--c-jade)), 0 0 16px rgb(var(--c-jade) / .85), 0 0 40px rgb(var(--c-jade) / .45); animation:t-flicker 1.4s .2s both; }
.d-result p { margin:0 0 8px; }
.d-result .row { justify-content:center; }
.d-squares { font:inherit; font-size:22px; line-height:1.5; margin:6px 0 12px; white-space:pre-wrap; }
.d-copied { color:var(--jade); font-size:14px; }
.d-answer { --frame:var(--c-jade); }
.d-wait { display:flex; gap:14px; align-items:flex-start; padding:12px 0; border-top:1px solid rgba(255,255,255,.08); --tile-w:46px; }
.d-wait-info { min-width:0; flex:1; }
.d-wait-han { font-size:22px; color:#fff; }
.d-sets { display:flex; flex-wrap:wrap; gap:7px 10px; margin-top:8px; }
.d-set { --tile-w:24px; }
.d-set .tile.win { outline:2px solid rgb(var(--c-amber)); }
.d-small { font-size:13px; margin:8px 0 0; }
.d-word { --frame:var(--c-magenta); }
.d-word-main { margin:4px 0 6px; }
.d-word-han { font-family:var(--f-brush); font-size:58px; color:#fff2fb; text-shadow:0 0 4px rgb(var(--c-magenta)), 0 0 16px rgb(var(--c-magenta) / .85), 0 0 36px rgb(var(--c-magenta) / .45); }
.d-word-lines { display:flex; flex-wrap:wrap; gap:4px 18px; margin:0; }
.d-stats { --frame:var(--c-amber); }
.d-nums { display:grid; grid-template-columns:repeat(4,1fr); text-align:center; gap:6px; }
.d-nums b { display:block; font-family:var(--f-display); font-size:34px; color:#fff1d8; text-shadow:0 0 4px rgb(var(--c-amber)), 0 0 14px rgb(var(--c-amber) / .7); }
.d-nums span { font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--dim); }
.d-next { margin:14px 0 0; text-align:center; }

.d-static { margin-top:36px; }
.d-static h2 { margin-top:30px; }
.d-static ol { padding-left:22px; line-height:1.55; }
.d-static ol li { margin:6px 0; }
.d-static ol li::marker { color:rgb(var(--c-red)); font-family:var(--f-display); font-weight:800; }

@media (prefers-reduced-motion:reduce) { .d-end > .card, .d-result h2.ok { animation:none; } }
