/* Navigation is always visible above the page, with no drawer on mobile.
 * Keep gameplay's existing display:none rule on .points-header authoritative. */
.public-header { flex-wrap:wrap; gap:16px 28px; }
.public-header .top-navigation { display:flex; flex:1; justify-content:flex-end; gap:4px 16px; margin:0; }
.public-header .top-navigation a { display:flex; align-items:center; justify-content:center; min-height:44px; padding:8px 0; border-bottom:2px solid transparent; line-height:1.25; text-align:center; }
.public-header .top-navigation a[aria-current] { border-color:var(--accent); color:var(--text); }
/* Shared navigation never occupies the fixed in-game or final-result grid. */
.page-return { max-width:1120px; margin:12px auto 0; padding:0 24px; display:flex; align-items:center; gap:12px; }
.page-return button { min-height:44px; display:inline-flex; align-items:center; justify-content:center; gap:8px; background:transparent; color:var(--text); border:0; font:inherit; cursor:pointer; }
.page-return a { color:var(--muted); padding:12px 0; }
.page-return [data-share-game] { margin-left:auto; }
.page-return img { width:18px; height:18px; filter:invert(1); }
.back-arrow { transform:rotate(180deg); }
.shell-dialog { width:min(560px,calc(100% - 24px)); max-height:calc(100svh - 24px); padding:20px; border:1px solid var(--border); border-radius:8px; background:var(--surface); color:var(--text); }
.shell-dialog::backdrop { background:#191a1ecc; backdrop-filter:blur(4px); }
body:is(.stadium-playing,.stadium-ending):has(.solo-penalties) .page-return,body:has(.shootout-finished) .page-return { display:none; }
.game-share-preview { width:100%; height:auto; border-radius:6px; }
#game-share-link { width:100%; margin:12px 0; min-height:44px; background:var(--bg); color:var(--text); border:1px solid var(--border); padding:8px; }
#game-share-copy { min-height:44px; padding:8px 16px; }
#own-profile { display:block; }
.profile-tabs { display:flex; gap:16px; border-bottom:1px solid var(--border); margin:20px 0; }
.profile-tabs button { border:0; border-radius:0; padding:12px 0; background:transparent; color:var(--muted); min-height:44px; }
.profile-tabs [aria-pressed=true] { color:var(--text); border-bottom:3px solid var(--accent); }
[data-profile-panel] { max-width:640px; }
[data-profile-panel] details { border-bottom:1px solid var(--border); padding:12px 0; }
[data-profile-panel] summary,.profile-record summary { cursor:pointer; min-height:44px; padding:12px 0; }
#own-profile details .account-form { padding:12px 0 20px; border:0; }
#own-profile details .account-form h2 { display:none; }
.profile-record { margin:12px 0; }
#profile .profile-title { margin:12px 0; }
#profile-bio:empty,#public-friend-status:empty { display:none; }
#profile-stats .metrics { grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:12px 0; padding:16px 0; }
#profile-stats .metric strong { font-size:24px; }
#profile-stats .metric span { font-size:12px; }
#profile-stats .level-progress { margin:12px 0 24px; }
.friend-add { display:grid; gap:8px; }
.friend-add > div { display:flex; gap:8px; }
.friend-add input { flex:1; min-width:0; }
.friend-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 0; border-bottom:1px solid var(--border); }
.friend-row > a { overflow-wrap:anywhere; }
.friend-row .actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.friend-row .actions > * { min-height:44px; padding:10px; font-size:13px; }
.mode-intro-scenes { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:16px 0; }
.mode-intro-scenes img { width:100%; height:108px; object-fit:cover; border-radius:4px; }
#mode-intro ul { padding-left:20px; font-size:14px; line-height:1.5; }
#mode-intro li { margin:10px 0; }
#mode-intro .actions { display:flex; justify-content:flex-end; gap:8px; }
#mode-intro .actions button { padding:10px 16px; }
#mode-intro button.primary { background:var(--brand-green); color:var(--on-accent); }
#summary .result-actions { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
#share-card-link { display:block; min-width:0; }
#share-card-link img { width:100%; height:auto; }
.public-result { max-width:960px; margin:40px auto; padding:0 24px; text-align:center; }
.public-score { display:grid; grid-template-columns:1fr auto 1fr; gap:20px; align-items:center; margin:24px 0; }
.public-score span { overflow-wrap:anywhere; }
.public-score strong { font-size:44px; }
.public-result > img { display:block; width:100%; height:auto; margin:24px 0; border-radius:8px; }
.public-result .primary-link { display:inline-flex; justify-content:center; padding:12px 24px; }
@media(max-width:1100px) {
  .public-header { flex-wrap:wrap; }
  .public-header .top-navigation { display:grid; flex-basis:100%; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0 12px; }
  .public-header .top-navigation a { min-width:0; padding:8px 2px; }
}
@media(max-width:800px), (max-height:540px) and (max-width:1100px) {
  #summary .result-actions { grid-template-columns:repeat(3,minmax(0,1fr)); }
  #summary .result-actions > * { font-size:12px; padding:8px 4px; }
  .page-return { padding:0 16px; margin-top:4px; font-size:13px; }
}
@media(max-width:480px) {
  .public-header .top-navigation { grid-template-columns:repeat(auto-fit,minmax(80px,1fr)); gap:0 8px; }
  .public-header .top-navigation a { font-size:12px; }
  .friend-row { align-items:flex-start; flex-direction:column; gap:8px; }
  .friend-row .actions { justify-content:flex-start; }
  .mode-intro-scenes img { height:80px; }
  #mode-intro { padding:16px; }
  #mode-intro ul { font-size:13px; }
}
@media(max-height:500px) {
  .mode-intro-scenes { display:none; }
  #mode-intro li { margin:6px 0; }
  #mode-intro ul { font-size:12px; }
  #share-card-link { grid-row:1 / span 3; }
}
