/* Mode navigation lives only in the pre-game view, never over the stadium. */
.daily-life{display:block;width:18px;height:18px;flex:0 0 18px;border:2px solid var(--ink,#111);border-radius:50%;background:var(--brand-green,#88b04b)}
.daily-life.lost{background:var(--coral,#ff6f61);position:relative}
.daily-life.lost::after{content:'';position:absolute;left:2px;right:2px;top:6px;height:2px;background:#111;transform:rotate(-45deg)}
#shootout-board.daily-survival-board .shootout-team{grid-template-columns:56px 38px auto}
.daily-survival-board .shootout-team[hidden]{display:none}
.game-mode-tabs{display:flex;flex-wrap:wrap;gap:8px 20px;border-bottom:1px solid var(--border,#41524e);margin-bottom:24px;padding-bottom:10px}
.game-mode-tabs a{padding:6px 0;text-decoration:none;font-weight:650}
.game-mode-tabs a[aria-current]{color:var(--accent,#88b04b);box-shadow:0 3px var(--accent,#88b04b)}
.daily-ranking-link{display:inline-flex;align-items:center;gap:8px;margin-top:16px}
.daily-ranking-link img,.invite-link-row img{width:20px;height:20px}
.invite-link-row{display:flex;gap:8px;margin:8px 0 20px}
.invite-link-row input{flex:1;min-width:0}
.invite-link-row button{width:44px;flex:none;display:grid;place-items:center;padding:0}
.invite-link-row img{filter:invert(1)}
#friend-lobby .actions{flex-wrap:wrap}
#mode-auth h2,#lobby-title{font-size:22px}
[data-mode="friend"] .difficulty-options small{display:none}
[data-mode="friend"] #result-review{display:none}
[data-mode="friend"] #result-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
[data-mode="daily"] #result-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
.ranking-tabs{flex-wrap:wrap}
@media(max-width:600px){.game-mode-tabs{gap:8px 16px;margin-bottom:16px;font-size:14px}}

/* Fixed two-line name lanes keep even long usernames inside the TV score. */
#shootout-board[data-mode="friend"] .shootout-team{grid-template-columns:150px 22px auto}
#shootout-board[data-mode="friend"] .shootout-team>span{font-size:12px;line-height:14px;overflow-wrap:anywhere;min-width:0}
.friend-waiting{grid-column:1/-1;grid-row:1/-1;display:grid;place-items:center;min-height:96px}
.friend-waiting img{width:48px;height:48px;filter:invert(1);opacity:.8;animation:friend-waiting-spin 2.4s linear infinite}
@keyframes friend-waiting-spin{to{transform:rotate(360deg)}}
.friend-motion-off .friend-waiting img{animation:none}
/* Use the existing feedback/unused Next space. Showing both response times
 * must not move the question or answer buttons when the penalty resolves. */
[data-mode="friend"] .feedback-slot{min-height:84px;width:100%}
[data-mode="friend"] #question-panel .clock[hidden]{display:flex!important;visibility:hidden;pointer-events:none}
.friend-round-result{width:100%;min-width:0;font-size:13px;line-height:1.3}
.friend-answer-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.friend-answer{min-width:0;padding-left:8px;border-left:3px solid var(--border)}
.friend-answer.is-winner{border-color:var(--brand-green,#88b04b)}
.friend-answer-name{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.friend-answer-time{font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
#friend-final-result{grid-area:level;margin:8px 0}
body.stadium-playing:not(.stadium-ending) [data-mode="friend"] #question-panel>.actions:not(:has(#retry:not([hidden]))){display:none}
@media(max-width:800px),(max-height:540px) and (max-width:1100px){
  body.stadium-playing:not(.stadium-ending) [data-mode="friend"] #question-panel{grid-template-rows:16px minmax(0,1.2fr) minmax(96px,1fr) 84px}
  body.stadium-playing:not(.stadium-ending) [data-mode="friend"] #question-panel:has(#retry:not([hidden])){grid-template-rows:16px minmax(0,1.2fr) minmax(96px,1fr) 84px 44px}
  body.stadium-playing:not(.stadium-ending) [data-mode="friend"] .feedback-slot{min-height:0;align-items:center}
}
#forfeit-dialog{width:min(440px,calc(100% - 24px))}
#forfeit-description{font-size:14px;line-height:1.5;overflow-wrap:anywhere;margin:16px 0 20px}
#forfeit-dialog .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#forfeit-dialog button{padding:10px 12px;font-size:14px}
#forfeit-dialog #forfeit-confirm{background:var(--coral,#ff6f61);border-color:var(--coral,#ff6f61);color:#222326;font-weight:700}
@media(max-width:800px),(max-height:540px) and (max-width:1100px){
  #shootout-board[data-mode="friend"] .shootout-team{grid-template-columns:minmax(0,120px) 20px auto}
  #shootout-board .shootout-team>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #shootout-board[data-mode="friend"] .shootout-team>span{font-size:10px;line-height:14px}
}
@media(max-width:400px){
  #shootout-hud .shootout-kicks{gap:3px}
  #shootout-hud .shootout-kick{width:12px;height:12px;flex-basis:12px}
}
@media(prefers-reduced-motion:reduce){.friend-waiting img{animation:none}}
/* Narrow landscape camera lanes stack each name above its kicks. */
@media(max-height:540px) and (min-width:480px) and (max-width:1100px){
  body.stadium-playing:not(.stadium-ending) #shootout-hud{max-width:calc(100% - var(--stadium-panel-width) - 20px);gap:6px}
  body.stadium-playing:not(.stadium-ending) #shootout-board{padding:4px;flex:1;min-width:0}
  #shootout-hud #leave{padding:8px;font-size:11px}
  #shootout-hud #shootout-board .shootout-team{grid-template-columns:16px minmax(0,1fr);grid-template-rows:18px 16px;gap:0 3px}
  #shootout-hud .shootout-team>span{grid-column:1/-1}
  #shootout-hud .shootout-kicks{gap:2px}
  #shootout-hud .shootout-kick{width:9px;height:9px;flex-basis:9px}
  body.stadium-playing:not(.stadium-ending):has(#shootout-board) #stadium-framing{top:calc(var(--play-header-height) + 112px);height:auto}
}
