/* Number Rush only. Shared navigation, setup, lobby and footer keep their existing styles. */
.nr-surface{display:flex;flex-direction:column;gap:8px;flex:1;min-height:0;min-width:0;text-align:center}
.nr-heading h2{font-size:clamp(18px,4.5vw,26px);line-height:1.15;margin:0 0 5px}.nr-heading p,.nr-instruction{font-size:13px!important;line-height:1.3!important;margin:0!important}
.nr-chart{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr));gap:5px;flex:1;min-height:240px}
.nr-chart button{min-height:0!important;min-width:0!important;height:100%;padding:3px!important;margin:0!important;border-radius:8px;background:#247545;color:#fff;border:1px solid #247545;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:18px!important;line-height:1.1;gap:1px}
.nr-chart .nr-used{background:#e7e7e2;border-color:#d1d7cf;color:#647065;opacity:1}.nr-chart .nr-selected{background:#eaf3d7;color:#174d34;outline:2px solid #247545;outline-offset:-3px}.nr-chart small{font-size:9px}
.nr-note{font-size:11px!important;color:#647065;margin:0!important;line-height:1.2!important}.nr-actions{flex:none;gap:8px}.nr-actions:empty{display:none}.nr-actions button{width:100%}
.nr-countdown{font-size:clamp(80px,18vh,160px);line-height:1;flex:1;display:grid;place-items:center;color:#247545}
.nr-question{background:#f2eef8;border-radius:12px;padding:10px;flex:0 1 auto;min-height:0}.nr-question small{font-size:11px;color:#6c557c;font-weight:700}.nr-question h2{font-size:clamp(17px,4.5vw,26px);line-height:1.25;margin:4px 0;overflow-wrap:anywhere}
.nr-diagram{height:clamp(55px,10vh,90px);width:100%;display:block}.nr-diagram path,.nr-diagram rect,.nr-diagram polygon{fill:#e8f0d4;stroke:#234438;stroke-width:2}.nr-diagram text{fill:#234438;text-anchor:middle;dominant-baseline:middle;font-size:13px;font-weight:700}
.nr-teams{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;flex:none;text-align:left}.nr-teams[data-count="1"]{grid-template-columns:1fr}
.nr-team{padding:7px;border-radius:10px;border:2px solid transparent;background:#eef4df;min-width:0}.nr-team[data-team-index="1"]{background:#f0e8f8}.nr-team[data-team-index="2"]{background:#fff1cd}.nr-team[data-team-index="3"]{background:#e0f0fa}.nr-team.nr-active{border-color:#247545}
.nr-team-heading{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:4px}.nr-team-heading>label{display:block;font-size:13px;font-weight:750;overflow-wrap:anywhere}.nr-answer-row{display:flex;gap:4px}.nr-answer-row input{width:0;flex:1;min-width:0;height:40px;min-height:40px;border:1px solid #bccbbe;border-radius:7px;background:white;padding:5px 7px;font-size:19px;color:#233e30}.nr-answer-row button{padding:5px!important;min-height:40px!important;font-size:12px!important;border-radius:7px;flex:none}.nr-team small{display:block;flex:0 0 auto;max-width:72px;font-size:10px;line-height:1.2;min-height:12px;text-align:right}
.nr-keyboard{display:flex;flex-direction:column;flex:1;min-height:150px;max-height:260px;gap:4px}.nr-keyboard>p{font-size:11px!important;line-height:1.2;margin:0!important;color:#647065}.nr-keypad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:5px;flex:1;min-height:0}.nr-keypad button{min-height:0!important;padding:0!important;font-size:20px!important;margin:0!important;border-radius:9px;background:#fff;border:1px solid #bccbbe;color:#233e30}.nr-keypad button[data-nr-key="Clear"]{font-size:14px!important}
.nr-reveal{display:flex;flex-direction:column;justify-content:center;gap:10px;flex:1}.nr-reveal>small{font-size:13px}.nr-reveal>strong{background:#247545;color:#fff;padding:18px;border-radius:12px;font-size:clamp(38px,10vw,64px);line-height:1.1}.nr-reveal p{font-size:16px!important;line-height:1.4!important;margin:0!important}.nr-final-scores{display:grid;gap:10px;flex:1;align-content:center}.nr-final-scores>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;border-radius:12px;background:#eef4df}.nr-final-scores>div:nth-child(even){background:#f0e8f8}.nr-final-scores strong{font-size:32px}
.on-kind-numberrush .on-game-body{display:flex;flex-direction:column;min-height:0;overflow:visible}.on-kind-numberrush .on-actions:empty{display:none}.on-kind-numberrush .on-actions{flex:none}
#app[data-game="numberrush"] .gh-game-body>.nr-surface{flex:1;min-height:0}
@media(max-height:700px){.nr-surface{gap:5px}.nr-heading h2{font-size:19px}.nr-chart{min-height:200px;gap:4px}.nr-question{padding:6px}.nr-question h2{font-size:17px}.nr-diagram{height:55px}.nr-keyboard{min-height:140px}.nr-team{padding:5px}.nr-answer-row input,.nr-answer-row button{height:34px;min-height:34px!important}.nr-team small{font-size:9px}.nr-reveal p{font-size:14px!important}}
@media(max-height:500px) and (orientation:landscape){.nr-chart{grid-template-columns:repeat(10,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));min-height:120px}.nr-surface[data-nr-phase="playing"]{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto 1fr}.nr-question{grid-column:1}.nr-instruction{display:none}.nr-teams{grid-column:1;grid-row:2;align-content:start}.nr-keyboard{grid-column:2;grid-row:1/3;min-height:150px}.nr-diagram{height:40px}}

@media(max-height:700px){.nr-keyboard{min-height:112px}.nr-keypad{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr))}.nr-keypad [data-nr-key="Clear"]{grid-column:4;grid-row:1}.nr-keypad [data-nr-key="⌫"]{grid-column:4;grid-row:2}.nr-keypad [data-nr-key="0"]{grid-column:4;grid-row:3}.nr-team-heading>label{font-size:12px}.nr-team small{max-width:60px}}
