/* Never have I ever for two. Tokens only (dark mode in tools.css). */
.tool.nh { gap: 14px; }
.tool .nh-center { text-align: center; display: flex; justify-content: center; }
.tool .nh-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 2px 24px; scroll-padding: 24px; }
.tool .nh-cats::-webkit-scrollbar { display: none; }
.tool .nh-cats button { flex: none; }
.tool .u14-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 20px; background: var(--surface-2); }
.tool .u14-seg button { min-height: 44px; padding: 6px 10px; border-radius: 16px; font-size: 14px; line-height: 18px; font-weight: 800; color: rgb(var(--ink) / .65); transition: background-color .2s ease, color .2s ease; }
.tool .u14-seg button[aria-checked="true"] { background: rgb(var(--ink)); color: var(--bg); }

.tool .nh-top { display: flex; align-items: center; gap: 4px; min-height: 40px; }
.tool .nh-spacer { flex: 1; }
.tool .nh-count { font-size: 14px; font-weight: 850; color: rgb(var(--ink) / .6); font-variant-numeric: tabular-nums; }
.tool .nh-icon { width: 40px; height: 40px; }

.tool .nh-card { min-height: 220px; align-content: center; gap: 6px; padding: 26px 22px; touch-action: pan-y; }
.tool .nh-card:focus { outline: none; }
.tool .nh-cat { font-size: 12px; line-height: 16px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; color: rgb(var(--ink) / .45); min-height: 16px; }
.tool .nh-pre { font-size: 15px; line-height: 20px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; color: var(--link); }
.tool .nh-q { font-size: 25px; line-height: 33px; font-weight: 850; letter-spacing: -.01em; color: rgb(var(--ink)); text-wrap: balance; margin-top: 4px; }
.tool .nh-turn { text-align: center; font-size: 15px; line-height: 22px; font-weight: 650; color: rgb(var(--ink) / .72); }
.tool .nh-turn b { font-weight: 900; color: rgb(var(--ink)); }

.tool .nh-players { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tool .nh-player { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 12px 12px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); transition: opacity .3s ease; }
.tool .nh-player.is-new { animation: nh-bump .35s var(--ease-out); }
@keyframes nh-bump { 50% { transform: scale(1.03); } }
.tool .nh-name { font-size: 16px; line-height: 22px; font-weight: 900; color: rgb(var(--ink)); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool .nh-hand { display: flex; align-items: flex-end; gap: 4px; height: 28px; }
.tool .nh-hand i { display: block; width: 8px; height: 28px; border-radius: 4px; background: var(--ramp); transform-origin: bottom; transition: transform .3s var(--ease-out), background-color .3s ease; }
.tool .nh-hand i.is-down { transform: scaleY(.36); background: rgb(var(--ink) / .14); }
.tool.nh-points .nh-hand { display: none; }
.tool .nh-pts { font-size: 13px; line-height: 18px; font-weight: 800; color: rgb(var(--ink) / .6); font-variant-numeric: tabular-nums; }
.tool .nh-have {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 52px; border-radius: 18px;
  font-size: 16px; font-weight: 900; background: var(--surface-2); color: rgb(var(--ink)); box-shadow: inset 0 0 0 2px rgb(var(--ink) / .08);
  transition: background-color .15s ease, color .15s ease, transform .2s var(--ease-out);
}
.tool .nh-have .tool-icon { width: 18px; height: 18px; opacity: 0; transform: scale(.25); transition: opacity .2s cubic-bezier(.2, 0, 0, 1), transform .2s cubic-bezier(.2, 0, 0, 1); margin-left: -24px; }
.tool .nh-have[aria-pressed="true"] { background: rgb(var(--ink)); color: var(--bg); box-shadow: none; }
.tool .nh-have[aria-pressed="true"] .tool-icon { opacity: 1; transform: none; margin-left: 0; }
.tool .nh-have:active { transform: scale(.96); }
.tool .nh-player.is-out { opacity: .55; }
.tool .nh-story { min-height: 22px; text-align: center; font-size: 15px; line-height: 22px; font-weight: 800; color: var(--link); }
.tool .nh-joined { padding: 10px 14px; border-radius: 14px; background: var(--surface); }
.tool .nh-finish { background: none; box-shadow: none; color: rgb(var(--ink) / .6); text-decoration: underline; text-underline-offset: 3px; }

.tool .nh-result { align-items: stretch; text-align: center; }
.tool .nh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tool .nh-favs { display: grid; gap: 6px; padding: 4px 12px 14px !important; }
.tool .nh-favs li { padding: 10px 14px; border-radius: 14px; background: var(--surface-2); font-size: 15px; line-height: 21px; }

@media (max-width: 599px) {
  .tool .nh-cats { margin: 0 -16px; padding: 2px 16px; }
  .tool .nh-q { font-size: 23px; line-height: 31px; }
  .tool .nh-card { min-height: 200px; }
}
@media (prefers-reduced-motion: reduce) { .tool .nh-hand i, .tool .nh-player { transition: none; animation: none; } }
@media (prefers-color-scheme: dark) { .tool .nh-card, .tool .nh-player { background: var(--surface-2); box-shadow: inset 0 0 0 1px rgb(var(--ink) / .1); } .tool .nh-have { background: var(--surface); } }
/* Round 1 */
.tool input.nh-name { width: 100%; min-height: 36px !important; padding: 4px 8px !important; border-radius: 12px !important; text-align: center; font-size: 16px !important; font-weight: 900 !important; background: transparent !important; box-shadow: none !important; color: rgb(var(--ink)); }
.tool input.nh-name::placeholder { color: rgb(var(--ink) / .85); }
.tool input.nh-name:focus-visible { box-shadow: inset 0 0 0 2px rgb(var(--accent)) !important; background: var(--surface-2) !important; }
.tool .nh-have[aria-pressed="true"] { background: rgb(var(--accent)); color: #fff; }
.tool .nh-story { min-height: 44px; display: flex; align-items: center; justify-content: center; text-wrap: balance; }
.tool .nh-card { min-height: 190px; }
.tool .nh-cat { color: rgb(var(--ink) / .6); }
.tool .nh-pts, .tool .nh-count, .tool .nh-turn { color: rgb(var(--ink) / .75); }
.tool .nh-trophy { text-align: center; font-size: 13px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--link); }
.tool .nh-result .tool-title { font-size: 22px; line-height: 30px; text-wrap: balance; }
.tool .nh-stats { grid-template-columns: 1fr 1fr; }
.tool .nh-res-p { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border-radius: 20px; background: var(--surface); }
.tool .nh-res-p b { font-size: 16px; font-weight: 900; }
.tool .nh-res-p span { font-size: 14px; font-weight: 800; color: rgb(var(--ink) / .7); }
.tool .nh-favs li { display: flex; gap: 10px; align-items: center; }
.tool .nh-favs li span { flex: 1; }
.tool .nh-favs li em { font-style: normal; font-size: 12px; font-weight: 850; padding: 3px 8px; border-radius: 10px; background: var(--surface); }
.tool .nh-result .nh-res-p, .tool .nh-result .nh-trophy { animation: u14-fade .4s var(--ease-out) both; }
.tool .nh-result .nh-res-p + .nh-res-p { animation-delay: .08s; }
@media (prefers-reduced-motion: reduce) { .tool .nh-result .nh-res-p, .tool .nh-result .nh-trophy { animation: none; } }
/* Round 2: two little hands instead of a bar meter. Fingers fold down from the top; the thumb sits lower. */
.tool .nh-hand { display: flex; align-items: flex-end; gap: 10px; height: 40px; }
.tool .nh-palm { position: relative; display: flex; align-items: flex-end; gap: 3px; padding: 0 3px 8px; }
.tool .nh-palm::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; border-radius: 6px 6px 9px 9px; background: rgb(var(--accent) / .35); }
.tool .nh-palm i { position: relative; z-index: 1; width: 7px; height: 22px; border-radius: 4px 4px 2px 2px; background: var(--ramp); transform-origin: bottom; transition: transform .3s var(--ease-out), background-color .3s ease; }
.tool .nh-palm i:nth-child(1) { height: 18px; }
.tool .nh-palm i:nth-child(2) { height: 25px; }
.tool .nh-palm i:nth-child(3) { height: 28px; }
.tool .nh-palm i:nth-child(4) { height: 24px; }
.tool .nh-palm i:nth-child(5) { height: 15px; margin-left: 2px; transform: rotate(18deg); transform-origin: bottom left; }
.tool .nh-palm.is-r { flex-direction: row-reverse; }
.tool .nh-palm.is-r i:nth-child(5) { margin: 0 2px 0 0; transform: rotate(-18deg); transform-origin: bottom right; }
.tool .nh-palm i.is-down { transform: scaleY(.3); background: rgb(var(--ink) / .2); }
.tool .nh-palm i:nth-child(5).is-down { transform: rotate(18deg) scaleY(.3); }
.tool .nh-palm.is-r i:nth-child(5).is-down { transform: rotate(-18deg) scaleY(.3); }
.tool.nh-points .nh-player .nh-hand { display: flex; visibility: hidden; height: 0; }
.tool .nh-res-p .nh-hand { height: 40px; }
.tool input.nh-name { text-decoration: underline dashed rgb(var(--ink) / .3); text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.tool input.nh-name:focus { text-decoration: none; }
.tool .nh-have[aria-pressed="true"] { background: var(--ramp); color: #fff; }
.tool .nh-easy { display: inline-flex; align-items: center; gap: 6px; box-shadow: inset 0 0 0 1.5px rgb(var(--accent) / .55) !important; }
.tool .nh-easy .tool-icon { width: 16px; height: 16px; color: var(--link); }
.tool .nh-easy[aria-pressed="true"] .tool-icon { color: inherit; }
.tool .nh-easynote { padding: 8px 12px; border-radius: 12px; background: var(--surface); }
.tool .nh-cat { color: rgb(var(--ink) / .7); }
.tool .nh-result .tool-title { font-size: 34px; line-height: 40px; font-weight: 950; letter-spacing: -.02em; }
.tool .nh-result .tool-sub { margin: 0; }
.tool .nh-result .tool-actions { flex-direction: row; }
.tool .nh-result .tool-actions .btn { flex: 1; width: auto; }
@media (min-width: 600px) { .tool .nh-card { min-height: 160px; padding: 20px; } .tool .nh-player { padding: 10px; gap: 6px; } .tool.nh { gap: 12px; } }
@media (max-width: 599px) { .tool .nh-result .tool-actions .btn { padding: 0 12px; } }
.tool .nh-result .nh-favs li { text-align: left; }
/* Round 3 */
.tool .nh-palm i { width: 8px; }
.tool .nh-palm i.is-down { transform: scaleY(.42); background: rgb(var(--ink) / .32); border-radius: 4px; }
.tool .nh-palm i:nth-child(5).is-down { transform: rotate(18deg) scaleY(.42); }
.tool .nh-palm.is-r i:nth-child(5).is-down { transform: rotate(-18deg) scaleY(.42); }
.tool.nh-points .nh-player .nh-hand { height: 40px; }
.tool .nh-result .tool-title { color: rgb(var(--ink)); animation: nh-win .6s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes nh-win { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tool .nh-result .tool-title { animation: none; } }
.tool.nh-over > .nh-cats, .tool.nh-over > .nh-easynote { display: none; }
.tool .nh-copyrow { padding: 0 12px 14px; }
.tool .nh-namewrap { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; }
.tool .nh-pencil { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); color: rgb(var(--ink) / .45); pointer-events: none; }
.tool .nh-pencil .tool-icon { width: 14px; height: 14px; }
.tool input.nh-name { padding: 4px 20px !important; }
.tool .nh-play .u14-keys { color: rgb(var(--ink) / .75); font-size: 14px; }
.tool .nh-pts, .tool .nh-count { font-size: 14px; }
/* Round 4: bigger hands, the hero of the game */
.tool .nh-hand { height: 52px; gap: 8px; }
.tool .nh-palm { gap: 3px; padding: 0 4px 10px; }
.tool .nh-palm::after { height: 15px; border-radius: 8px 8px 12px 12px; }
.tool .nh-palm i { width: 10px; border-radius: 5px 5px 2px 2px; }
.tool .nh-palm i:nth-child(1) { height: 24px; }
.tool .nh-palm i:nth-child(2) { height: 33px; }
.tool .nh-palm i:nth-child(3) { height: 37px; }
.tool .nh-palm i:nth-child(4) { height: 32px; }
.tool .nh-palm i:nth-child(5) { height: 20px; }
.tool .nh-palm i.is-down { border-radius: 5px; }
.tool.nh-points .nh-player .nh-hand { display: none; }
.tool .nh-big { display: none; height: 52px; font-size: 44px; line-height: 52px; font-weight: 950; letter-spacing: -.03em; font-variant-numeric: tabular-nums; background: var(--ramp); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tool.nh-points .nh-player .nh-big { display: block; }
.tool .nh-pencil .tool-icon { width: 18px; height: 18px; }
.tool .nh-pencil { color: rgb(var(--ink) / .6); }
.tool input.nh-name::placeholder { color: var(--link); }
.tool .nh-top { gap: 6px; }
.tool .nh-count { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.tool .nh-scorebtn { flex: none; min-height: 36px; padding: 0 12px; font-size: 13px; }
/* One scrolling row of categories on every width (no chip wall on desktop). */
@media (min-width: 600px) { .tool .nh-cats.u14-scroll { flex-wrap: nowrap !important; overflow-x: auto !important; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 40px !important; } }
/* The story nudge reads as a speech bubble. */
.tool .nh-story:not(:empty) { padding: 10px 14px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); color: rgb(var(--ink)); font-weight: 800; }
.tool .nh-cat, .tool .nh-pts, .tool .nh-count { color: rgb(var(--ink) / .78); }
@media (max-width: 599px) { .tool .nh-top .u14-ibtn-show .u14-ibtn-l { display: none; } }
.tool .nh-players { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 599px) {
  .tool .nh-hand { gap: 6px; }
  .tool .nh-palm { gap: 2px; padding: 0 3px 9px; }
  .tool .nh-palm i { width: 8px; }
  .tool .nh-player { padding: 12px 8px 10px; }
}
/* After round 5 (not re-scored) */
.tool .nh-story.is-hint { background: none; box-shadow: none; color: rgb(var(--ink) / .6); font-weight: 700; }
.tool .nh-palm i:nth-child(5), .tool .nh-palm.is-r i:nth-child(5) { transform: none; margin: 0; }
.tool .nh-palm i:nth-child(5).is-down, .tool .nh-palm.is-r i:nth-child(5).is-down { transform: scaleY(.42); }
.tool .nh-count { white-space: normal; overflow: visible; }
@media (prefers-color-scheme: dark) { .tool .nh-have:not([aria-pressed="true"]) { box-shadow: inset 0 0 0 2px rgb(var(--ink) / .28); } }
