.menu-row { flex-wrap: wrap; gap: 8px; }
.menu-row > button { flex: 1; white-space: nowrap; }
.save-progress { max-width:48ch; color:#6b624e; font-size:14px; line-height:1.6; margin:18px 0 4px; }
.menu-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:20px; }
.menu-actions .settings-btn { min-height:64px; margin:0; padding:16px; font-size:17px; text-align:center; }
.guest-identity { font-size:12px; color:#756b56; margin:16px 0 0; }
.player-card { position:absolute; bottom:24px; right:24px; max-width:calc(100vw - 32px); padding:12px; background:var(--parchment); border:2px solid var(--ink); border-radius:16px; box-shadow:0 4px 0 var(--ink),0 10px 30px #0003; }
.quick-profile { display:flex; align-items:center; gap:12px; padding:4px; background:none; border:0; color:var(--ink); text-align:left; }
.quick-profile small { display:block; font-size:12px; color:#70654e; margin-top:4px; }
.profile-avatar { display:grid; place-items:center; width:52px; height:52px; background:#e2e8ce; border:2px solid #c0cba2; border-radius:50%; font-size:30px; flex-shrink:0; }
.player-card > button:last-child { display:block; margin:8px 0 0 auto; font-size:11px; padding:3px 8px; }
.match-colors { margin:24px 0 8px; padding:14px 16px 18px; border:1px solid #d9cbaa; border-radius:12px; }
.match-colors legend { font-weight:900; font-size:13px; padding:0 6px; }
.auth-tabs { display:flex; gap:8px; }
.auth-tabs button { flex:1; }
.auth-tabs [aria-pressed="true"] { background:#e2e8ce; border-color:#668445; }
.avatar-picker { display:flex; flex-wrap:wrap; gap:10px; padding:8px 0; }
.avatar-choice { width:52px; height:52px; font-size:28px; border:2px solid #d9cbaa; background:#fffaf0; border-radius:50%; }
.avatar-choice[aria-pressed="true"] { border-color:#668445; box-shadow:0 0 0 3px #d1deb9; }
.guest-profile { max-width:520px; margin:20px auto; text-align:center; line-height:1.7; }
.guest-profile .profile-avatar { margin:auto; }
.guest-profile .ghost { margin-top:16px; }
.guest-shop-note { padding:14px; background:#e7eadb; border-radius:10px; line-height:1.6; }
#social-login { display:flex; flex-wrap:wrap; gap:8px; }
#wallet { color:#6e4a00; background:#ffdf77; padding:5px 12px; border:2px solid #b79535; border-radius:20px; }
summary { cursor:pointer; font-weight:900; padding:10px 0; }
.account-form { display:grid; grid-template-columns:1fr; gap:12px; padding:10px 0; max-width:440px; }
.account-form label { display:grid; gap:5px; font-size:13px; }
.account-form input, select { width:100%; padding:10px; background:white; color:var(--ink); font:inherit; border:2px solid #b5a990; border-radius:8px; }
.account-form details { grid-column:1 / -1; }
.account-form details label { margin-bottom:8px; }
.panel-header small { font-size:10px; font-weight:900; letter-spacing:.12em; color:#716a56; }
progress { display:block; width:100%; height:12px; accent-color:#70934a; margin:8px 0; }
.controls-help { margin-top:12px; }
dialog { background:var(--parchment); color:var(--ink); border:3px solid var(--ink); border-radius:18px; padding:26px; width:min(940px,94vw); max-height:90dvh; overflow:auto; box-shadow:0 8px 0 #26252e,0 30px 90px #0007; }
dialog::backdrop { background:#182332b5; backdrop-filter:blur(5px); }
.panel-header { display:flex; align-items:center; gap:20px; border-bottom:2px solid var(--parchment-edge); padding-bottom:16px; }
.panel-header > div { flex:1; }
.panel-header h2 { font:34px var(--display); margin:4px 0 0; }
.panel-notice { color:#8b3f29; min-height:1.2em; font-weight:800; }
.cosmetic-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.cosmetic-card,.pass-tier { padding:16px; border:2px solid #d9cbaa; border-radius:12px; background:#fffaf0; }
.cosmetic-card h3 { margin:6px 0; }
.cosmetic-card small { text-transform:uppercase; letter-spacing:.1em; }
.item-art { height:84px; display:grid; place-items:center; font-size:60px; color:var(--item-color); background:linear-gradient(135deg,#f3ead3,#e2d6b7); border-radius:8px; margin-bottom:12px; }
.muted { color:#736d5b; font-size:13px; }
.filter-row { display:flex; gap:14px; margin:18px 0; }
.filter-row label { flex:1; display:grid; gap:6px; font-size:13px; font-weight:900; }
.stat-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:10px; }
.stat-grid div { text-align:center; border-radius:10px; padding:14px; background:#e7eadb; }
.stat-grid strong { display:block; font:28px var(--display); }
.stat-grid small { display:block; }
.pass-grid { display:grid; grid-template-columns:repeat(5,minmax(135px,1fr)); gap:10px; overflow-x:auto; padding:12px 0; }
.pass-tier > small { display:block; font-size:11px; margin:6px 0; }
.pass-reward { border-top:1px solid #d9cbaa; padding-top:12px; margin-top:12px; }
.pass-reward p { min-height:40px; font-size:13px; }
.pass-reward.premium { color:#7f5b0d; }
.pass-reward small { text-transform:uppercase; font-size:10px; font-weight:900; }
button:disabled { opacity:.55; cursor:default; }
@media(max-width:800px) {
  #menu { padding:16px; place-items:center; overflow-y:auto; }
  #menu:has(.player-card:not([hidden])) { padding-bottom:140px; }
  .menu-card { width:min(660px,100%); max-height:calc(100dvh - 32px); padding:20px; }
  #menu:has(.player-card:not([hidden])) .menu-card { max-height:calc(100dvh - 156px); }
  .player-card { bottom:16px; right:16px; }
  .cosmetic-grid { grid-template-columns:repeat(2,1fr); }
  .filter-row { flex-wrap:wrap; }
  .stat-grid { grid-template-columns:repeat(3,1fr); }
}
@media(max-width:480px) {
  .home-season,.account-form { grid-template-columns:1fr; }
  dialog { padding:16px; }
}

/* four menu buttons in a compact 2 x 2 grid on the narrow menu card */
.menu-actions .settings-btn { min-height: 0; padding: 7px 10px; font-size: inherit; margin: 0; white-space: nowrap; }
.menu-actions { gap: 8px; margin-top: 10px; }
.name-hint { display:block; font-size:12px; color:#756b56; margin:4px 0 0; min-height:0; }
.name-hint:empty { display:none; }
