/* Production menu: the deck editor's parchment and wax over the Cyrodiil war map.
   --menu-cyrodiil and --menu-paper come from the menu archive. */
.menu-study {
  --ink: #3b2914; --soft: #6e5434; --red: #7c2418; --line: #8b6b40; --light: #f3e2b7; --slip: #f7ebcd80;
  --draft-gold: var(--red); --draft-ink: var(--ink); --draft-soft: var(--soft); --draft-line: var(--line);
  --menu-gold: var(--light); --menu-ink: var(--light); --menu-muted: #dcc9a0; --menu-line: #f3e2b744;
  --parchment: linear-gradient(#f1dfb4e8, #d6b985ea), var(--menu-paper, none) center / cover;
  min-height: 100dvh; color: var(--light);
  background: radial-gradient(ellipse at center, #1c120818 30%, #1c1208b0), var(--menu-cyrodiil, none) center / cover no-repeat, #2b1d0f;
}
.menu-shell { text-shadow: 0 1px 3px #000c; }
.menu-brand, .menu-nav button:hover, .menu-nav button.menu-nav-current { color: var(--light); }
.menu-nav button { font-family: 'Menu inscription', Georgia, serif; color: #dcc9a0; }
.menu-profile small, .menu-footer { color: #dcc9a0; }
.menu-profile-mark { border: 1px solid #4f120b; color: #f8e7c4; text-shadow: none; background: radial-gradient(circle at 35% 30%, #b0402f, #6e140d 75%); }
.menu-icon-button { color: var(--light); }

/* Parchment panels, as in the deck editor. */
:is(.menu-mode-section, .menu-deck-section, .menu-quests, .menu-dialog) {
  padding: 18px; color: var(--ink); text-shadow: none; border: 1px solid #6d4e2a; border-radius: 0; background: var(--parchment);
  box-shadow: 0 0 0 4px #2b1d0f99, 0 14px 40px #000a, inset 0 0 40px #7a542a55;
}
.menu-dialog .menu-icon-button { color: var(--ink); }
.menu-dialog::backdrop { background: #1c1208d0; }
:is(.menu-section-heading, .menu-quests-heading, .menu-dialog-header) h2 { color: #4a2610; font-family: 'Menu inscription', Georgia, serif; font-size: 19px; }
.menu-section-heading h2 > span, .menu-eyebrow { color: var(--red); }
:is(.menu-small, .menu-mode-category, .menu-mode-summary, .menu-mode-note, .menu-quest-progress, .menu-quest-reward small,
  .menu-dialog-copy, .menu-quest-objective, .menu-notes) { color: var(--soft); }
.menu-mode-note > span, .menu-mode-icon, .menu-text-button, .menu-quest-reward { color: var(--red); }
.menu-text-button:hover { color: #4f120b; }

/* Slips on the parchment: modes, quests and friends; deck tiles are framed pictures. */
:is(.menu-mode, .menu-mode:nth-child(n), .menu-quest) {
  border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: var(--slip);
}
:is(.menu-mode, .menu-quest):hover:not(:disabled) { border-color: var(--red); background: #ead39f; }
.menu-mode[aria-pressed='true'] { border-color: var(--red); background: #ead39f; box-shadow: inset 0 0 0 1px var(--red); }
.menu-mode[aria-pressed='true']::after { color: var(--red); }
.menu-mode-name, .menu-notes strong { color: var(--ink); }
.menu-mode-name { text-transform: uppercase; letter-spacing: 0.08em; font-size: 18px; }
.menu-quest progress, .menu-quest progress::-webkit-progress-bar { background: #b89a6866; }
.menu-quest { --quest-progress: var(--red); }
.menu-quest[data-complete='true'] { --quest-progress: #3c5a26; }
.menu-deck-tile { border: 1px solid #6d4e2a; border-radius: 0; box-shadow: 0 2px 6px #2b1d0f66; }
.menu-deck-tile:hover:not(:disabled) { border-color: var(--red); box-shadow: inset 0 0 0 2px #e9c46a; }
/* Imperial gilt: frame the selection above its artwork without changing tile geometry. */
.menu-deck-tile[aria-pressed='true'], .menu-deck-tile[aria-pressed='true']:hover:not(:disabled) {
  border: 1px solid #4b2b0e; box-shadow: 0 0 0 1px #4b2b0e, 0 3px 8px #20160880;
}
.menu-deck-tile[aria-pressed='true']::before, .menu-deck-tile[aria-pressed='true']::after {
  content: ''; position: absolute; pointer-events: none; z-index: 2;
}
.menu-deck-tile[aria-pressed='true']::before {
  inset: 1px; border: 4px solid;
  border-image: linear-gradient(135deg, #fff1bb, #dcb960 18%, #8e5b20 45%, #e7bf65 72%, #fff0b0 84%, #8e5b20) 1;
  box-shadow: inset 0 0 0 1px #4b2b0e, 0 0 0 1px #ffe4a0;
}
.menu-deck-tile[aria-pressed='true']::after {
  inset: 0;
  background:
    conic-gradient(from 45deg, #ffedaf, #8c5015, #fff0b5, #a56e22, #ffedaf) left top / 9px 9px,
    conic-gradient(from 45deg, #ffedaf, #8c5015, #fff0b5, #a56e22, #ffedaf) right top / 9px 9px,
    conic-gradient(from 45deg, #ffedaf, #8c5015, #fff0b5, #a56e22, #ffedaf) left bottom / 9px 9px,
    conic-gradient(from 45deg, #ffedaf, #8c5015, #fff0b5, #a56e22, #ffedaf) right bottom / 9px 9px;
  background-repeat: no-repeat; box-shadow: inset 0 0 12px #ffc55b30;
}
.menu-deck-tile[aria-pressed='true'] .menu-deck-label strong::before { content: none; }
.menu-deck-new { border-style: dashed; color: var(--red); background: var(--slip); }
.menu-deck-new:hover:not(:disabled) { background: #ead39f; }
.menu-quest-portrait { background: #b89a68; }

/* Buttons: ink on paper; Play is sealed in green wax like Save. */
.menu-secondary { border-radius: 0; border-color: var(--line); color: var(--ink); background: #f7ebcdb0; }
.menu-secondary:hover:not(:disabled) { border-color: var(--red); background: #ead39f; }
.menu-primary { justify-content: center; min-height: 54px; border: 1px solid #11301a; border-radius: 0; color: #f8e7c4; text-shadow: 0 1px 2px #0008;
  background: radial-gradient(circle at 35% 30%, #3f7d3a, #1b4a1d 75%); box-shadow: 0 2px 4px #4a0c0666, inset 0 0 0 2px #0002, inset 0 0 0 3px #fff1;
  font: 18px 'Menu inscription', Georgia, serif !important; letter-spacing: 0.1em; text-transform: uppercase; }
.menu-primary:hover:not(:disabled) { background: radial-gradient(circle at 35% 30%, #3f7d3a, #1b4a1d 75%); filter: brightness(1.12); }
.menu-primary:disabled { color: #f8e7c4; border-color: #11301a; background: radial-gradient(circle at 35% 30%, #3f7d3a, #1b4a1d 75%); filter: grayscale(1); opacity: 0.5; }
.menu-primary > span { display: none; }
.menu-toast { color: var(--ink); background: #f4e4bdf5; border: 1px solid var(--red); border-radius: 0; font-style: italic; text-shadow: none; }
/* The quests strip stays one slip high. */
.menu-quests { padding: 4px 12px; }
.menu-quests-heading h2 { font-size: 15px; line-height: 1.2; }
.menu-footer .menu-text-button { color: var(--light); }
