/* Not Herd Mentality on the phones: the answer pad on the pasture. Night (dark) rules first,
   then the sunny day (light, the default). */
.nhp { --gold: #ffbf1f; display: flex; flex-direction: column; gap: 12px; padding-bottom: 16px; color: var(--nh-panel-t, var(--text)); }
.nhp .avatar.sm { width: 24px; height: 24px; font-size: 12px; }
.nhp-center { flex: 1; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 18px 8px; }
.nhp-center.grow { flex: 1; display: flex; flex-direction: column; }
.nhp-h { font-family: var(--nh-font); font-size: 32px; font-weight: 900; line-height: 1.05; letter-spacing: -.01em; padding: 8px 16px; border-radius: 16px; background: var(--nh-panel); color: var(--nh-panel-t); }
.nhp-p { font-size: 16px; line-height: 1.4; padding: 10px 14px; border-radius: 14px; background: var(--nh-panel); color: var(--nh-panel-2); max-width: 360px; }
.nhp-p b { color: var(--nh-panel-t); }
.nhp-p.center { text-align: center; max-width: none; }
.nhp-note { font-size: 14px; line-height: 1.35; text-align: center; padding: 8px 12px; border-radius: 12px; background: var(--nh-panel); color: var(--nh-panel-2); }
.nhp-label { font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--nh-panel-2); }
.nhp-bigcow { position: relative; width: 150px; }
.nhp-bigcow .nh-face { width: 100%; height: auto; filter: drop-shadow(0 8px 14px rgba(0,0,0,.3)); }
.nhp-bigcow.win { width: 180px; }
.nhp-rosette { position: absolute; right: -12px; top: -6px; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gold); box-shadow: 0 0 0 3px var(--nh-ink), 0 6px 12px rgba(0,0,0,.3); font-family: var(--nh-font); font-weight: 900; color: var(--nh-ink); transform: rotate(12deg); }

/* ---- the strip: question, your cows, Blossom ---- */
.nhp-strip { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 999px; background: var(--nh-panel); color: var(--nh-panel-t); box-shadow: 0 4px 12px rgba(0,0,0,.15); min-height: 44px; }
.nhp-qn { font-family: var(--nh-font); font-weight: 900; font-size: 15px; padding: 5px 10px; border-radius: 999px; background: var(--nh-ink); color: #fff; }
.nhp-mine { display: inline-flex; align-items: center; gap: 5px; }
.nhp-mine .nh-token { width: 26px; height: 26px; }
.nhp-mine b { font-family: var(--nh-font); font-size: 22px; }
.nhp-mine small { font-size: 13px; font-weight: 700; color: var(--nh-panel-2); }
.nhp-pips { flex: 1; display: flex; gap: 3px; flex-wrap: wrap; justify-content: flex-end; }
.nhp-pips i { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.8px var(--nh-panel-2); }
.nhp-pips i.on { background: var(--nh-panel-t); box-shadow: none; }
.nhp-pinkme { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 3px; border-radius: 999px; background: var(--nh-pink); color: #fff; font-family: var(--nh-font); font-weight: 900; font-size: 13px; }
.nhp-pinkme .nh-token { width: 22px; height: 22px; }

/* ---- the bar on top: yours (gold) or calm ---- */
.nhp-bar { display: flex; align-items: center; gap: 12px; border-radius: 18px; padding: 10px 10px 10px 16px; min-height: 64px; }
.nhp-bar-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nhp-bar b { font-family: var(--nh-font); font-size: 24px; font-weight: 900; letter-spacing: -.01em; line-height: 1.05; }
.nhp-bar span { font-size: 14px; font-weight: 700; line-height: 1.25; }
.nhp-bar.me { background: linear-gradient(120deg, #ffd60a, #ffb000); color: #1b1b1b; box-shadow: 0 0 0 3px var(--nh-ink), 0 10px 26px rgba(255,190,0,.4); animation: nhp-pop .35s cubic-bezier(.2,1.4,.4,1) both; }
.nhp-bar.me.still { animation: none; }
.nhp-bar.idle { background: var(--nh-panel); color: var(--nh-panel-t); }
.nhp-bar.idle span { color: var(--nh-panel-2); }
.nhp-bclock:empty { display: none; }
.nhp-bar .tclock { width: 56px; height: 56px; }
.nhp-bar .tclock b { font-size: 23px; }
.nhp-bar .tclock small { display: none; }
.nhp-bar.me .tclock .fg { stroke: #1b1b1b; }
.nhp-bar.idle .tclock .fg { stroke: var(--gold); }
.nhp-bar.idle .tclock .bg { stroke: rgba(127,127,127,.25); }
.nhp-bar.me:has(.tclock.urgent) { background: linear-gradient(120deg, #ff7a3d, #ff3b30); color: #fff; }
.nhp-bar.me:has(.tclock.urgent) .tclock .fg { stroke: #fff; }
@keyframes nhp-pop { from { transform: scale(.9); opacity: 0; } }
body.nhp-myturn::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 15; box-shadow: inset 0 0 0 5px #ffc400, inset 0 0 40px rgba(255,196,0,.35); animation: nhp-frame 1.6s ease-in-out infinite; }
@keyframes nhp-frame { 50% { box-shadow: inset 0 0 0 7px #ffc400, inset 0 0 70px rgba(255,196,0,.5); } }

/* ---- the question and your answer ---- */
.nhp-card { border-radius: 20px; }
.nhp-card .nh-card-band { height: 26px; background-position: -40px -52px; }
.nhp-card .nh-card-body { padding: 12px 18px 18px; }
.nhp-card .nh-kicker { font-size: 12px; }
.nhp-card .nh-qtext { margin-top: 4px; }
.nhp-form { display: flex; flex-direction: column; gap: 10px; }
.nhp-form input { width: 100%; min-height: 64px; border-radius: 18px; border: none; padding: 12px 18px; font-family: var(--nh-font); font-size: 26px; font-weight: 800; background: var(--nh-paper); color: var(--nh-ink); box-shadow: 0 0 0 3px var(--nh-ink), 0 5px 0 rgba(0,0,0,.18); outline: none; }
.nhp-form input:focus { box-shadow: 0 0 0 3px var(--nh-ink), 0 0 0 7px var(--gold), 0 5px 0 rgba(0,0,0,.18); }
.nhp-form input::placeholder { color: rgba(29,27,32,.35); }
.nhp-lock { width: 100%; min-height: 62px; border: none; border-radius: 18px; background: var(--nh-paper); color: var(--nh-ink); font-family: var(--nh-font); font-size: 22px; font-weight: 900; letter-spacing: .08em; cursor: pointer; box-shadow: 0 6px 0 rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; gap: 10px; }
.nhp-lock:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(0,0,0,.3); }
.nhp-lock .nh-token { width: 32px; height: 32px; }
.nhp-mineans { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 14px 18px; border-radius: 18px; background: var(--nh-paper); color: var(--nh-ink); box-shadow: 0 0 0 3px var(--nh-ink), 0 0 0 7px #2fb35a, 0 6px 0 rgba(0,0,0,.18); animation: nhp-pop .35s cubic-bezier(.2,1.4,.4,1) both; }
.nhp-mineans small { font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: rgba(29,27,32,.5); }
.nhp-mineans b { font-family: var(--nh-font); font-size: 30px; font-weight: 900; line-height: 1.1; padding-right: 92px; overflow-wrap: anywhere; }
.nhp-mineans.solo { box-shadow: 0 0 0 3px var(--nh-ink), 0 6px 0 rgba(0,0,0,.18); min-width: 220px; }
.nhp-mineans.solo b { padding-right: 0; }
.nhp-change { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); min-height: 44px; padding: 0 16px; border: none; border-radius: 12px; background: rgba(29,27,32,.08); color: var(--nh-ink); font-weight: 800; font-size: 15px; cursor: pointer; }
.nhp-slow { display: flex; flex-direction: column; gap: 10px; }
.nhp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nhp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--nh-panel); color: var(--nh-panel-t); font-weight: 700; font-size: 15px; }
.nhp-moo { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 8px 16px 8px 10px; border: none; border-radius: 20px; background: #ffd0e0; color: #6d0f37; text-align: left; cursor: pointer; box-shadow: 0 0 0 3px var(--nh-ink), 0 6px 0 rgba(0,0,0,.2); }
.nhp-moo:active { transform: translateY(3px); box-shadow: 0 0 0 3px var(--nh-ink), 0 3px 0 rgba(0,0,0,.2); }
.nhp-moo .nh-face { width: 60px; height: auto; flex: none; }
.nhp-moo b { display: block; font-family: var(--nh-font); font-size: 22px; font-weight: 900; }
.nhp-moo small { display: block; font-size: 13px; font-weight: 700; opacity: .75; }

/* ---- reveal and waiting ---- */
.nhp-trotter { width: 170px; animation: nhp-trot 3.2s ease-in-out infinite; }
.nhp-trotter .nh-cow { width: 100%; height: auto; }
@keyframes nhp-trot { 0% { transform: translateX(-60px); } 50% { transform: translateX(60px); } 50.01% { transform: translateX(60px) scaleX(-1); } 100% { transform: translateX(-60px) scaleX(-1); } }
.nhp-grp { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 20px; background: var(--nh-paper); color: var(--nh-ink); box-shadow: 0 0 0 3px var(--nh-ink), 0 6px 0 rgba(0,0,0,.18); }
.nhp-grp small { font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: rgba(29,27,32,.5); }
.nhp-grp b { font-family: var(--nh-font); font-size: 32px; font-weight: 900; line-height: 1.05; }
.nhp-grp span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; }
.nhp-grp span i, .nhp-g-t span i { font-style: normal; display: inline-flex; align-items: center; gap: 4px; }
.nhp-grp em { font-style: normal; font-weight: 800; color: #2f8a46; }

/* ---- the leader's check ---- */
.nhp-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; background: var(--nh-panel); color: var(--nh-panel-t); font-size: 15px; font-weight: 700; line-height: 1.3; }
.nhp-tools > span { flex: 1 1 100%; }
.nhp-tools.idle > span { color: var(--nh-panel-2); }
.nhp-tool { flex: 1; min-height: 48px; border: none; border-radius: 12px; background: var(--nh-pink); color: #fff; font-weight: 900; font-size: 16px; cursor: pointer; box-shadow: 0 0 0 2.5px var(--nh-ink); }
.nhp-tool.ghost { background: transparent; color: var(--nh-panel-t); box-shadow: inset 0 0 0 2px var(--nh-panel-2); }
.nhp-glist { display: flex; flex-direction: column; gap: 10px; }
.nhp-g { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 12px 10px 16px; border: none; border-radius: 18px; background: var(--nh-paper); color: var(--nh-ink); text-align: left; cursor: pointer; box-shadow: 0 0 0 3px var(--nh-ink), 0 5px 0 rgba(0,0,0,.18); transition: transform .15s, box-shadow .15s; }
.nhp-g:active { transform: scale(.98); }
.nhp-g.sel { box-shadow: 0 0 0 3px var(--nh-ink), 0 0 0 8px var(--gold), 0 5px 0 rgba(0,0,0,.18); transform: translateY(-2px); }
.nhp-g.target { box-shadow: 0 0 0 3px var(--nh-ink), 0 0 0 6px rgba(47,179,90,.55), 0 5px 0 rgba(0,0,0,.18); }
.nhp-g-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nhp-g-t b { font-family: var(--nh-font); font-size: 22px; font-weight: 900; line-height: 1.1; overflow-wrap: anywhere; }
.nhp-g-t span { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; font-weight: 700; color: rgba(29,27,32,.7); }
.nhp-g-t small { font-size: 12px; font-weight: 700; color: rgba(29,27,32,.5); }
.nhp-g-n { flex: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--nh-ink); color: #fff; font-family: var(--nh-font); font-size: 20px; font-weight: 900; }
.nhp-g-m { position: absolute; right: 60px; top: -10px; padding: 2px 9px; border-radius: 8px; background: #2fb35a; color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .1em; box-shadow: 0 0 0 2px var(--nh-ink); }
.nhp-count { position: sticky; bottom: calc(var(--safe-bottom, 0px) + 10px); z-index: 5; background: #2f8a46; color: #fff; box-shadow: 0 0 0 3px var(--nh-ink), 0 6px 0 rgba(0,0,0,.3); }

/* ---- the result ---- */
.nhp-result { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 18px 22px; border-radius: 24px; background: var(--nh-paper); color: var(--nh-ink); box-shadow: 0 0 0 3px var(--nh-ink), 0 7px 0 rgba(0,0,0,.2); animation: nhp-pop .4s cubic-bezier(.2,1.4,.4,1) both; }
.nhp-result.good { box-shadow: 0 0 0 3px var(--nh-ink), 0 0 0 9px var(--gold), 0 7px 0 rgba(0,0,0,.2); background: linear-gradient(180deg, #fffbe6, #ffeeb0); }
.nhp-res-art { width: 130px; }
.nhp-res-art svg { width: 100%; height: auto; }
.nhp-result > b { font-family: var(--nh-font); font-size: 40px; font-weight: 900; line-height: 1; }
.nhp-result.good > b { color: #1f8f45; }
.nhp-result > span { font-size: 17px; line-height: 1.35; font-weight: 600; }
.nhp-result > em { font-style: normal; font-size: 14px; font-weight: 800; color: rgba(29,27,32,.55); }
.nhp-raise { text-align: center; font-family: var(--nh-font); font-size: 20px; font-weight: 900; padding: 12px; border-radius: 16px; background: var(--gold); color: var(--nh-ink); box-shadow: 0 0 0 3px var(--nh-ink); }
.nhp-raise.win { font-size: 28px; }
.nhp-pinkcard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: #ffe1ec; color: #6d0f37; box-shadow: 0 0 0 3px var(--nh-ink), 0 0 0 7px var(--nh-pink); }
.nhp-pinkcard.free { box-shadow: 0 0 0 3px var(--nh-ink); background: #f3fff5; color: #1d5a2c; }
.nhp-pinkcard .nh-cow { width: 96px; height: auto; flex: none; }
.nhp-pinkcard.free .nh-cow { opacity: .6; transform: scaleX(-1); }
.nhp-pinkcard b { display: block; font-family: var(--nh-font); font-size: 20px; font-weight: 900; }
.nhp-pinkcard span { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }

/* ---- the big moments, full screen ---- */
.nhp-moment { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(10,14,20,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: nhp-fade .2s ease both; }
.nhp-moment.out { opacity: 0; transition: opacity .25s; }
@keyframes nhp-fade { from { opacity: 0; } }
.nhp-m-in { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; width: 100%; max-width: 380px; padding: 22px 20px 26px; border-radius: 28px; background: var(--nh-paper); color: var(--nh-ink); box-shadow: 0 0 0 4px var(--nh-ink), 0 10px 0 rgba(0,0,0,.25), 0 30px 80px rgba(0,0,0,.5); animation: nhp-in .45s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes nhp-in { from { transform: scale(.5) rotate(-6deg); opacity: 0; } }
.nhp-m-art { width: 150px; }
.nhp-m-art svg { width: 100%; height: auto; }
.nhp-m-in small { font-size: 13px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: rgba(29,27,32,.55); }
.nhp-m-in b { font-family: var(--nh-font); font-size: 40px; font-weight: 900; line-height: 1.02; letter-spacing: -.01em; overflow-wrap: anywhere; }
.nhp-m-in span { font-size: 17px; font-weight: 700; color: rgba(29,27,32,.7); }
.nhp-moment.k-herd .nhp-m-in { box-shadow: 0 0 0 4px var(--nh-ink), 0 0 0 12px var(--gold), 0 30px 80px rgba(0,0,0,.5); }
.nhp-moment.k-herd .nhp-m-in span { color: #1f8f45; font-size: 22px; font-weight: 900; }
.nhp-moment.k-pink .nhp-m-in { background: #fff0f6; box-shadow: 0 0 0 4px var(--nh-ink), 0 0 0 12px var(--nh-pink), 0 30px 80px rgba(0,0,0,.5); }
.nhp-moment.k-pink .nhp-m-in b { color: #b0124e; font-size: 32px; }
.nhp-moment.k-moo .nhp-m-in { background: #ffd0e0; animation: nhp-in .45s cubic-bezier(.2,1.5,.4,1) both, nhp-wobble .5s .45s ease-in-out 2; }
.nhp-moment.k-moo .nhp-m-in b { font-size: 64px; }
@keyframes nhp-wobble { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
.nhp-moment.k-raise .nhp-m-in { background: var(--gold); }

/* ---- the sunny day (light) ---- */
[data-theme="light"] .nhp-lock:not(.nhp-count) { background: var(--nh-ink); color: #fff; }
[data-theme="light"] .nhp-strip, [data-theme="light"] .nhp-bar.idle, [data-theme="light"] .nhp-tools, [data-theme="light"] .nhp-note, [data-theme="light"] .nhp-p, [data-theme="light"] .nhp-h, [data-theme="light"] .nhp-chip { box-shadow: 0 0 0 2.5px var(--nh-ink); }
[data-theme="light"] .nhp-moment { background: rgba(60,80,60,.35); }
