/* Newlywed game (newlywed-game-questions.js). The question "stage" is dark in both color schemes, like a TV set. */
.tool.nw .nw-h { font-size: 24px; line-height: 30px; text-wrap: balance; }
.tool.nw .tool-chips button { min-height: 44px; }
.tool.nw .nw-play, .tool.nw .nw-host { gap: 14px; }
.tool.nw .nw-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; margin: -4px -8px; }
.tool.nw .nw-head .qz-count { font-size: 14px; font-weight: 800; color: rgb(var(--ink) / .5); font-variant-numeric: tabular-nums; }
.tool.nw .nw-head .g-pill { margin-right: 8px; }
.tool.nw .nw-head-r { display: flex; align-items: center; }
.tool.nw .nw-bonus { background: linear-gradient(90deg, #FFB547, #FF6FA8); color: #2A0A3D; }
.tool.nw .nw-stage {
  position: relative; display: flex; flex-direction: column; gap: 8px; justify-content: center; min-height: 168px; padding: 24px; border-radius: 24px; text-align: center; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #6A22B0 0%, #3A0E63 55%, #24083F 100%); color: #FBF7FF; box-shadow: 0 12px 32px rgb(58 14 99 / .28);
}
.tool.nw .nw-stage::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 40% at 50% 0%, rgb(255 255 255 / .18), transparent 70%); pointer-events: none; }
.tool.nw .nw-stage.is-small { min-height: 0; padding: 16px 20px; }
.tool.nw .nw-stage.is-small .nw-q { font-size: 18px; line-height: 26px; }
.tool.nw .nw-about { position: relative; font-size: 13px; line-height: 18px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; color: #E2C2FF; }
.tool.nw .nw-q { position: relative; font-size: 24px; line-height: 32px; font-weight: 900; letter-spacing: -.01em; text-wrap: balance; color: #FBF7FF; outline: none; }
.tool.nw .nw-stage.is-host { min-height: 200px; }
.tool.nw .nw-stage.is-host .nw-q { font-size: 30px; line-height: 38px; }
.tool.nw .nw-step { font-size: 16px; line-height: 24px; font-weight: 750; color: rgb(var(--ink) / .75); text-align: center; text-wrap: balance; }
.tool.nw .nw-reveal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tool.nw .nw-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); min-width: 0; animation: nw-flip .45s var(--ease-out) both; }
.tool.nw .nw-card + .nw-card { animation-delay: .12s; }
.tool.nw .nw-card span { font-size: 13px; font-weight: 800; color: rgb(var(--ink) / .74); }
.tool.nw .nw-card b { font-size: 20px; line-height: 26px; font-weight: 900; color: rgb(var(--ink)); overflow-wrap: anywhere; }
.tool.nw .nw-card.is-same { box-shadow: inset 0 0 0 2px #1F9D62, var(--shadow); }
@keyframes nw-flip { from { opacity: 0; transform: perspective(600px) rotateX(-40deg) translateY(8px); } to { opacity: 1; transform: none; } }
.tool.nw .g-names { grid-template-columns: 1fr 1fr; }
@media (min-width: 600px) { .tool.nw .nw-judge .btn { flex: 1 1 0; } }
.tool.nw .nw-center { text-align: center; }
.tool.nw .nw-win { font-size: 28px; line-height: 34px; }
.tool.nw .nw-final { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tool.nw .nw-final .is-win { box-shadow: inset 0 0 0 2px rgb(var(--accent)); }
.tool.nw .nw-miss-a { display: block; font-size: 14px; color: rgb(var(--ink) / .6); }
.tool.nw .nw-misses li b { display: block; font-weight: 800; }
.tool.nw .nw-couples { display: grid; gap: 8px; }
.tool.nw .nw-couple-row { display: flex; gap: 4px; align-items: center; }
.tool.nw .nw-add, .tool.nw .nw-undo { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px 0 10px; border-radius: 22px; font-size: 15px; font-weight: 800; color: var(--link); background: transparent; }
.tool.nw .nw-add:hover, .tool.nw .nw-undo:hover { background: rgb(var(--accent) / .1); }
.tool.nw .nw-undo { align-self: center; padding: 0 14px; color: rgb(var(--ink) / .6); }
.tool.nw .nw-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.tool.nw .nw-team {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 2px 10px; padding: 12px 14px; min-height: 64px; border-radius: 18px; text-align: left;
  background: var(--surface); color: rgb(var(--ink)); box-shadow: inset 0 0 0 1px rgb(var(--ink) / .08); transition: box-shadow .15s ease, transform .2s var(--ease-out);
}
.tool.nw .nw-team:hover { box-shadow: inset 0 0 0 2px rgb(var(--accent) / .5); }
.tool.nw .nw-team:active { transform: scale(.96); }
.tool.nw .nw-team:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 2px; }
.tool.nw .nw-team.is-lead { box-shadow: inset 0 0 0 2px rgb(var(--accent)); }
.tool.nw .nw-team-k { grid-row: span 2; width: 26px; height: 26px; border-radius: 13px; display: grid; place-items: center; font-size: 12px; font-weight: 900; background: var(--surface-2); color: rgb(var(--ink) / .55); }
.tool.nw .nw-team-n { font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tool.nw .nw-team-p { grid-row: span 2; font-size: 26px; font-weight: 950; font-variant-numeric: tabular-nums; }
.tool.nw .nw-team-plus { font-size: 13px; font-weight: 800; color: var(--link); }
.tool.nw .nw-keys { text-align: center; }
.tool.nw .nw-podium { display: grid; gap: 8px; }
.tool.nw .nw-podium li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--surface); }
.tool.nw .nw-podium li.is-win { box-shadow: inset 0 0 0 2px rgb(var(--accent)); }
.tool.nw .nw-podium .nw-team-n { flex: 1; }
.tool.nw .nw-podium b { font-size: 22px; font-weight: 950; font-variant-numeric: tabular-nums; }
.tool.nw .nw-rank { width: 28px; height: 28px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; font-size: 14px; background: var(--surface-2); }
.tool.nw .nw-howto summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 15px; font-weight: 800; color: var(--link); }
.tool.nw .nw-howto ol { margin-top: 8px; }
.tool.nw .nw-howto li { font-size: 15px; line-height: 22px; }
.tool.nw.is-full .nw-stage.is-host { min-height: 40vh; }
.tool.nw.is-full .nw-stage.is-host .nw-q { font-size: clamp(32px, 5vw, 64px); line-height: 1.15; }
.tool.nw.is-full .nw-team-n { font-size: 20px; }
.tool.nw.is-full .nw-team-p { font-size: 36px; }
@media (min-width: 600px) { .tool.nw .nw-q { font-size: 28px; line-height: 36px; } .tool.nw .nw-stage { min-height: 200px; } }
@media (prefers-color-scheme: dark) { .tool.nw .nw-stage { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); } }
@media (prefers-reduced-motion: reduce) { .tool.nw .nw-card { animation: none; } }
.tool.nw .tool-sub b, .tool.lm .tool-sub b { color: rgb(var(--ink)); font-weight: 850; }
.tool.nw .nw-answer { display: flex; flex-direction: column; gap: 12px; }
.tool.nw .nw-who { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tool.nw .nw-who-b { min-height: 64px; padding: 12px; border-radius: 18px; font-size: 18px; font-weight: 850; background: var(--surface); color: rgb(var(--ink)); box-shadow: inset 0 0 0 1px rgb(var(--ink) / .1); transition: box-shadow .15s ease, transform .2s var(--ease-out); overflow-wrap: anywhere; }
.tool.nw .nw-who-b:last-child { grid-column: 1 / -1; min-height: 52px; font-size: 16px; }
.tool.nw .nw-who-b:hover { box-shadow: inset 0 0 0 2px rgb(var(--accent) / .5); }
.tool.nw .nw-who-b:active { transform: scale(.96); }
.tool.nw .nw-who-b:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 2px; }
.tool.nw .nw-match { text-align: center; font-size: 22px; line-height: 28px; font-weight: 950; color: #1A8754; animation: nw-pop .5s var(--ease-out) both; animation-delay: .25s; }
@keyframes nw-pop { 0% { opacity: 0; transform: scale(.9); } 60% { opacity: 1; transform: scale(1.06); } 100% { transform: scale(1); } }
.tool.nw .nw-card-big { text-align: center; padding: 24px; }
.tool.nw .nw-card-big b { font-size: 30px; line-height: 38px; }
.tool.nw .nw-shower-reveal { display: flex; flex-direction: column; gap: 14px; }
.tool.nw .nw-saved { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.tool.nw .nw-saved .tool-sub { margin: 0; }
.tool.nw .nw-keep li b { display: block; font-weight: 800; }
.tool.nw .nw-undo { font-size: 14px; }
@media (prefers-color-scheme: dark) { .tool.nw .nw-match { color: #5BD69A; } }
@media (prefers-reduced-motion: reduce) { .tool.nw .nw-match { animation: none; } }

.tool.nw .nw-round-line { align-self: center; text-align: center; padding: 8px 16px; border-radius: 16px; background: rgb(var(--accent) / .14); color: rgb(var(--ink)); font-size: 16px; line-height: 22px; font-weight: 850; }
.tool.nw .nw-stat-sub { display: block; font-size: 13px; color: rgb(var(--ink) / .7); }
.tool.nw .nw-final .tool-stat span:not(.nw-stat-sub) { display: block; font-size: 15px; font-weight: 850; color: rgb(var(--ink)); }
.tool.nw .nw-head-r .g-icon-btn, .tool.nw .nw-head > .g-icon-btn:last-child { flex: none; }
.tool.nw.is-full .nw-round-line { font-size: 22px; line-height: 30px; }
.tool.nw .nw-count { text-align: center; font-size: 56px; line-height: 64px; font-weight: 950; color: var(--link); min-height: 64px; font-variant-numeric: tabular-nums; }
.tool.nw .nw-count:empty { display: none; }
.tool.nw .nw-team.is-given { background: rgb(46 204 125 / .16); box-shadow: inset 0 0 0 2px #1F9D62; }
.tool.nw .nw-team.is-given .nw-team-k { background: #1F9D62; color: #fff; }
.tool.nw .nw-team.is-given .nw-team-k .tool-icon { width: 16px; height: 16px; }
.tool.nw .nw-team.is-given .nw-team-plus { color: #1A8754; }
.tool.nw .nw-form { display: grid; gap: 12px; }
.tool.nw .nw-form label { display: flex; flex-direction: column; gap: 6px; }
.tool.nw .nw-form-q { font-size: 15px; line-height: 22px; font-weight: 800; color: rgb(var(--ink)); }
.tool.nw.is-full .nw-keys { display: none; }
@media (prefers-color-scheme: dark) { .tool.nw .nw-team.is-given .nw-team-plus { color: #5BD69A; } }

/* Phone: decks in one row that scrolls sideways, so Start stays near the top. */
@media (max-width: 599px) {
  .tool.nw .nw-setup .tool-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .tool.nw .nw-setup .tool-chips::-webkit-scrollbar { display: none; }
  .tool.nw .nw-setup .tool-chips button { flex: none; }
}
.tool.nw .nw-end .nw-win { animation: nw-pop .6s var(--ease-out) both; }
.tool.nw .nw-podium li, .tool.nw .nw-final > * { animation: g-in .4s var(--ease-out) both; }
.tool.nw .nw-podium li:nth-child(2), .tool.nw .nw-final > :nth-child(2) { animation-delay: .08s; }
.tool.nw .nw-podium li:nth-child(3) { animation-delay: .16s; }
.tool.nw .nw-podium li:nth-child(n+4) { animation-delay: .24s; }
.tool.nw .nw-podium li.is-win { padding: 16px; background: linear-gradient(90deg, rgb(var(--accent) / .18), var(--surface)); }
.tool.nw .nw-podium li.is-win b { font-size: 28px; }
@media (prefers-reduced-motion: reduce) { .tool.nw .nw-end .nw-win, .tool.nw .nw-podium li, .tool.nw .nw-final > * { animation: none; } }
/* Round 6: decks wrap on phones, equal judge buttons, one meaning for the score highlight, stronger labels */
@media (max-width: 599px) {
  .tool.nw .nw-setup .tool-chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
}
.tool.nw .nw-judge { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.tool.nw .nw-judge .btn { width: 100%; margin: 0; border-radius: 999px; }
@media (min-width: 600px) { .tool.nw .nw-judge { display: grid; grid-template-columns: 1fr 1fr; } .tool.nw .nw-judge .nw-decides { grid-column: 1 / -1; } }
.tool.nw .nw-decides { margin: 0; }
/* The highlight always marks the one guessing (the one who can score now); the stage line names them. */
.tool.nw .g-score.is-active { box-shadow: inset 0 0 0 1.5px rgb(var(--accent) / .45); }
.tool.nw .nw-head .qz-count, .tool.nw .tool-note { color: rgb(var(--ink) / .72); }
.tool.nw .nw-step { color: rgb(var(--ink) / .85); }
.tool.nw .nw-about { color: #F0DDFF; }
.tool.nw .nw-round-line { font-size: 18px; line-height: 25px; font-weight: 900; padding: 12px 16px; background: rgb(var(--accent) / .16); }
@media (min-width: 600px) { .tool.nw .nw-round-line { font-size: 22px; line-height: 30px; padding: 12px 18px; } }
.tool.nw.is-full .nw-round-line { font-size: 30px; line-height: 38px; }
.tool.nw .nw-paper { margin: 0; padding: 12px 14px; border-radius: 16px; background: rgb(var(--accent) / .1); font-size: 15px; line-height: 22px; font-weight: 800; color: rgb(var(--ink)); }
.tool.nw .nw-run { align-self: center; margin: 0; font-size: 20px; line-height: 26px; font-weight: 950; color: rgb(var(--ink)); font-variant-numeric: tabular-nums; }
.tool.nw.is-full .nw-run { font-size: 28px; line-height: 34px; }
.tool.nw .nw-pod-m { display: block; font-size: 13px; font-weight: 750; color: rgb(var(--ink) / .7); }
.tool.nw .nw-podium .nw-team-n { white-space: normal; }
.tool.nw .nw-split { font-size: 12px; line-height: 16px; margin-top: 2px; }
.tool.nw .nw-skip { align-self: center; }
.tool.nw .nw-call { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding: 14px; border-radius: 18px; background: rgb(var(--accent) / .1); }
.tool.nw .nw-call[hidden] { display: none; }
.tool.nw .nw-call-t { margin: 0; font-size: 15px; line-height: 22px; font-weight: 700; color: rgb(var(--ink) / .85); }
.tool.nw .nw-call-t b { color: rgb(var(--ink)); }
.tool.nw .nw-call-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; width: 100%; text-decoration: none; }
/* No focus ring on the first couple until a key is pressed; the board starts neutral. */
.tool.nw .nw-team:focus:not(:focus-visible) { outline: none; }
@media (max-width: 599px) { .tool.nw .nw-board { grid-template-columns: 1fr; } .tool.nw .nw-team { min-height: 60px; } }
.tool.nw .nw-team-plus { white-space: nowrap; }
