/* Production shell, separate from the game board. */
main:has(#board[data-page='menu']) { padding: 0; }
#board[data-page='menu'] { display: block; padding: 0; min-height: 0; border-radius: 0; }
#lobby { width: 100%; }
#lobby [hidden] { display: none !important; }
.menu-header .menu-profile { gap: 14px; padding-right: 54px; }
#menu-feedback { margin-bottom: 12px; color: #8a1d13; font-size: 12px; overflow-wrap: anywhere; }
#menu-feedback:empty { display: none; }
#menu-play.menu-cancel { border-color: #3d0c08; background: radial-gradient(circle at 35% 30%, #b0372c, #6a1810 75%); }
#menu-play.menu-cancel:hover:not(:disabled) { background: radial-gradient(circle at 35% 30%, #c4443a, #7a1d14 75%); }
/* The settings cog sits at the shell's right padding (menu-shell.css). */
main:has(#board[data-page='menu']) #sound { right: 40px; }
/* Reporting lives on the menu, never mid-match. */
main:not(:has(#board[data-page='menu'])) .sound-links { display: none; }
@media (max-width: 850px) { main:has(#board[data-page='menu']) #sound { right: 24px; } }
@media (max-width: 640px) {
  main:has(#board[data-page='menu']) #sound { right: 20px; }
  .menu-header .menu-profile { min-height: 30px; padding-right: 36px; }
}
/* The profile: its portrait opens the cosmetic picker. */
.menu-header .menu-profile-mark { width: 60px; height: 60px; padding: 0; overflow: hidden; border: 2px solid #c9a55c; box-shadow: 0 0 0 1px #2a1a0b, 0 3px 10px #0008;
  transition: border-color 0.15s, box-shadow 0.15s; }
.menu-header .menu-profile-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.menu-header button.menu-profile-mark:hover:not(:disabled) { border-color: #f1d696; box-shadow: 0 0 0 1px #2a1a0b, 0 0 14px #f1d69680; }
.menu-header .menu-profile-mark:disabled { cursor: default; }
#menu-profile-name { font: 15px 'Menu inscription', Georgia, serif; color: #f3e6c4; }
.menu-profile-dialog { width: min(760px, calc(100vw - 32px)); }
.menu-picker-heading { margin: 4px 0 10px !important; color: #4a2610; font: 15px 'Menu inscription', Georgia, serif; }
.menu-portraits { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; margin-bottom: 22px; }
.menu-portrait { aspect-ratio: 1; padding: 0; overflow: hidden; border: 2px solid #8a6a3c; border-radius: 50%; background: #2b1d0f; }
.menu-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.menu-portrait:hover { border-color: #c9a55c; }
.menu-portrait[aria-pressed='true'], .menu-cardback[aria-pressed='true'] { border-color: #8a1d13; box-shadow: 0 0 0 3px #8a1d13; }
.menu-cardbacks { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 12px; margin-bottom: 22px; }
.menu-cardback { aspect-ratio: .64; padding: 0; overflow: hidden; border: 2px solid #8a6a3c; border-radius: 5px; background: #2b1d0f; color: #ead8b7; font-size: 10px; overflow-wrap: anywhere; }
.menu-cardback img { display: block; width: 100%; height: 100%; object-fit: fill; }
.menu-cardback:hover { border-color: #c9a55c; }
.menu-titles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px; max-height: 260px; overflow-y: auto; padding-right: 4px; }
.menu-title-choice { padding: 6px 10px; border: 1px solid #b89a6a; border-radius: 0; background: #f4e4bd80; color: #3b2914; text-align: left; font-size: 13px; }
.menu-title-choice.rare { color: #1f4f8a; }
.menu-title-choice.epic, .menu-title-choice.legendary { color: #6a2a8a; }
.menu-title-choice:hover { border-color: #6d4e2a; background: #f4e4bd; }
.menu-title-choice[aria-pressed='true'] { border-color: #8a1d13; background: #f4e4bd; box-shadow: inset 3px 0 0 #8a1d13; }
@media (max-width: 850px) { .menu-header .menu-profile-mark { width: 48px; height: 48px; } }
