/* Identidade comum ao portal, às ferramentas e ao cliente. Ver docs/art-direction.md. */
@font-face { font-family: 'Cinzel'; src: url('/assets/fonts/cinzel-600.woff2') format('woff2'); font-weight: 600 800; font-display: swap; }
@font-face { font-family: 'Crimson Pro'; src: url('/assets/fonts/crimson-pro-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
:root {
  color-scheme: dark;
  --mz-bg: #101517;
  --mz-panel: #1a2021;
  --mz-ink: #e8e0ce;
  --mz-muted: #b1b3ab;
  --mz-gold: #c8aa72;
  --mz-border: #66583e;
  --mz-red: #783c32;
  --mz-title: 'Cinzel', 'Palatino Linotype', Georgia, serif;
  --mz-body: 'Crimson Pro', Georgia, serif;
  --mz-metal: linear-gradient(#111719ec, #111719e8), url('/assets/remaster/iron.webp');
}
* { scrollbar-width: thin; scrollbar-color: #79684c #171c1e; }
::selection { color: #fff4d7; background: #735a35; }
:focus-visible { outline: 2px solid #e4c98f; outline-offset: 4px; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
button:disabled { cursor: not-allowed; opacity: .58; }
button, a { touch-action: manipulation; }
input, select, textarea { accent-color: #bd9b61; }
input::placeholder, textarea::placeholder { color: #a0a59f; opacity: 1; }
.mz-eyebrow { font: 600 11px/1.5 var(--mz-title); letter-spacing: .24em; text-transform: uppercase; color: #c8aa72; }
.mz-divider { width: 64px; height: 1px; background: #b7985f; border: 0; margin: 24px 0; }
.character-delete-dialog {
  width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow: auto;
  margin: auto; padding: 28px; color: var(--mz-ink); background: var(--mz-metal);
  border: 1px solid var(--mz-border); border-top: 3px solid #b79762; border-radius: 2px;
  box-shadow: 0 24px 90px #0009; font-family: var(--mz-body);
}
.character-delete-dialog::backdrop { background: #05090cd9; }
.character-delete-dialog h3 { font: 600 23px/1.3 var(--mz-title); color: #dec895; margin: 0 0 16px; }
.character-delete-dialog p { margin: 12px 0; }
.character-delete-dialog input { width: 100%; padding: 12px; color: var(--mz-ink); background: #0c1214; border: 1px solid #6c614c; }
.character-delete-dialog button { padding: 10px 16px; min-height: 44px; border: 1px solid #8b7550; color: var(--mz-ink); background: #30332d; cursor: pointer; }
.character-delete-dialog .delete-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.catalog-loading { padding: 36px; border: 1px solid #514a3b; color: #c4b798; text-align: center; }
.catalog-loading::before { content: ''; display: block; width: 24px; height: 24px; margin: 0 auto 16px; border: 1px solid #5a5649; border-top-color: #dbc28b; border-radius: 50%; animation: mz-turn 1.4s linear infinite; }
@keyframes mz-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Seletor de idioma (public/i18n.js, docs/i18n.md): mesmo metal e ouro das outras escolhas. */
.lang-select { display: inline-flex; align-items: center; gap: 8px; color: var(--mz-ink); font: 600 12px/1.2 var(--mz-title); letter-spacing: .08em; }
.lang-select select { min-height: 32px; padding: 4px 26px 4px 10px; color: var(--mz-ink); background: #0c1214 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23c8aa72'/%3E%3C/svg%3E") no-repeat right 9px center; border: 1px solid var(--mz-border); border-radius: 2px; font: 600 13px/1.2 var(--mz-body); letter-spacing: 0; appearance: none; -webkit-appearance: none; cursor: pointer; }
.lang-select select:hover, .lang-select select:focus-visible { border-color: var(--mz-gold); outline: none; box-shadow: 0 0 0 1px #c8aa7255; }
.lang-select-compact .lang-select-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang-slot { display: flex; align-items: center; }
.site-header .lang-slot { margin-left: auto; }
.site-header .lang-slot + .btn-play { margin-left: 0; }
/* menu do jogo: uma coluna só na linha (a grade padrão tem 3) e o rótulo + escolha como "Gráficos" */
.game-menu-row.lang-row { grid-template-columns: 1fr; }
.game-menu-row.lang-row .lang-select { display: grid; grid-template-columns: 4.5rem 1fr; gap: .5rem; width: 100%; color: inherit; font: inherit; letter-spacing: 0; }
.game-menu-row.lang-row .lang-select select { width: 100%; min-height: 44px; padding: 8px 28px 8px 10px; background-color: #0b1418; color: #ebe2cc; border-color: #64634d; border-radius: 1px; font: inherit; font-weight: normal; }
.game-menu-row.lang-row .lang-select select:focus-visible { outline: 2px solid #d0b27a; outline-offset: 1px; box-shadow: none; }
.reset-page .lang-slot { justify-content: flex-end; margin-bottom: 12px; }
