/* Vigília: a tela inteira é o 3D (canvas #view); o resto é HTML por cima.
   Direção visual: desktop-first, atmosfera sombria e limpa, aproveitando toda a tela larga. Papel carbono escuro, texto em osso com alto contraste, estêncil nos títulos,
   vermelho como destaque principal. Tipografia: Black Ops One (títulos e números), Special Elite (rótulos e acentos), Inter (texto corrido e controles). Tema ESCURO apenas. */

@font-face { font-family: 'Black Ops One'; src: url('/vendor/vigilia/black-ops-one.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Special Elite'; src: url('/vendor/vigilia/special-elite.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vigilia Inter'; src: url('/vendor/fontes/inter-latin-wght.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
	--night: #07090c;
	--coal: #0f1317;
	--coal-2: #171d22;
	--line: #2e363d;
	--line-hot: #4b565f;
	--bone: #e9e4d6;
	--bone-dim: #a8a395;
	--blood: #b3201f;
	--blood-deep: #861615;
	--blood-hot: #ec5a50;
	--focus: #f4efe2;
	--shadow: 0 18px 42px rgba(0, 0, 0, .55);
	--shadow-sm: 0 6px 18px rgba(0, 0, 0, .4);
	--radius: 8px;
	--radius-sm: 5px;
	--display: 'Black Ops One', Impact, 'Arial Narrow Bold', 'Arial Narrow', sans-serif;
	--type: 'Special Elite', 'Courier New', ui-monospace, monospace;
	--body: 'Vigilia Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--pad: clamp(18px, 2.2vw, 34px);
	color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--night); overscroll-behavior: none; }
body { font: 400 .97rem/1.5 var(--body); color: var(--bone); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -64px; z-index: 120; background: var(--blood); color: var(--bone); padding: 10px 14px; border-radius: var(--radius-sm); font: 600 .9rem var(--body); }
.skip:focus { top: 12px; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--bone); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blood-hot); }

.ico { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.18em; }
.ico--line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico--solid { fill: currentColor; stroke: none; }
[data-icon] { display: inline-grid; place-items: center; flex: none; }
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; padding: 3px 9px; border-radius: var(--radius-sm); font: 600 .8rem/1.2 var(--body); letter-spacing: .04em; background: var(--coal-2); color: var(--bone); border: 1px solid var(--line-hot); border-bottom: 3px solid var(--line-hot); white-space: nowrap; }

/* ───── cena 3D e fundo ───── */
.view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; background: var(--night); outline: none; touch-action: none; }
body[data-screen='play'] .view { cursor: none; }
.scrim { position: fixed; inset: 0; pointer-events: none; background: linear-gradient(100deg, rgba(7, 9, 12, .86) 0%, rgba(7, 9, 12, .56) 46%, rgba(7, 9, 12, .25) 100%); transition: opacity .35s ease; }
body[data-screen='boot'] .scrim { background: var(--night); }
body[data-screen='setup'] .scrim,
body[data-screen='settings'] .scrim,
body[data-screen='help'] .scrim,
body[data-screen='over'] .scrim { background: rgba(7, 9, 12, .72); }
body[data-screen='armory'] .scrim { background: rgba(7, 9, 12, .38); }
body[data-screen='play'] .scrim { opacity: 0; }
.fps { position: fixed; top: 14px; left: 14px; z-index: 30; font: 600 .8rem/1 var(--body); background: rgba(7, 9, 12, .85); color: var(--bone); border: 1px solid var(--line-hot); border-radius: var(--radius-sm); padding: 6px 9px; font-variant-numeric: tabular-nums; }

/* ───── barra utilitária (conta, idioma, tela cheia) ───── */
.tools { position: fixed; top: 16px; right: var(--pad); z-index: 95; display: flex; gap: 8px; align-items: center; }
body[data-screen='play'] .tools { display: none; }
body[data-mobile='1'] .tools #btnAccount,
body[data-mobile='1'] .tools #btnFullscreen { display: none; }
.lang { display: flex; border: 1px solid var(--line-hot); border-radius: var(--radius-sm); background: rgba(15, 19, 23, .9); overflow: hidden; backdrop-filter: blur(8px); }
.lang__btn { min-width: 40px; min-height: 40px; padding: 0 10px; background: transparent; border: 0; border-right: 1px solid var(--line); font: 600 .8rem var(--body); letter-spacing: .06em; color: var(--bone-dim); transition: background .15s ease, color .15s ease; }
.lang__btn:last-child { border-right: 0; }
.lang__btn:hover { background: var(--coal-2); color: var(--bone); }
.lang__btn[aria-pressed='true'] { background: var(--bone); color: var(--night); }
.tool { width: 40px; height: 40px; display: grid; place-items: center; background: rgba(15, 19, 23, .9); color: var(--bone); border: 1px solid var(--line-hot); border-radius: var(--radius-sm); padding: 0; backdrop-filter: blur(8px); transition: background .15s ease, border-color .15s ease; }
.tool:hover { background: var(--coal-2); border-color: var(--bone-dim); }
.tool[aria-pressed='true'] { background: var(--bone); color: var(--night); border-color: var(--bone); }

/* ───── aviso dedicado para celular (desktop-only) ───── */
body[data-mobile='1'] main { visibility: hidden; pointer-events: none; }
.mobile-gate { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at 50% 25%, rgba(179, 32, 31, .16), rgba(7, 9, 12, .96) 65%); backdrop-filter: blur(12px); }
.mobile-gate__card { width: min(420px, 100%); display: grid; gap: 16px; justify-items: center; text-align: center; padding: 32px 24px; background: var(--coal); border: 1px solid var(--line-hot); border-radius: var(--radius); box-shadow: var(--shadow); }
.mobile-gate__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(179, 32, 31, .2); border: 1px solid var(--blood-hot); color: var(--bone); font: 600 .78rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; }
.mobile-gate__logo { font: 400 2.6rem/1 var(--display); text-transform: uppercase; color: var(--bone); text-shadow: 3px 3px 0 var(--blood-deep); }
.mobile-gate__title { font: 700 1.3rem/1.25 var(--body); color: var(--bone); }
.mobile-gate__desc { font: 400 .95rem/1.55 var(--body); color: var(--bone-dim); max-width: 34ch; }
.mobile-gate__actions { width: 100%; display: grid; gap: 10px; margin-top: 6px; }
.mobile-gate__status { font: 500 .88rem/1.4 var(--body); color: var(--bone); padding: 8px 12px; border-radius: var(--radius-sm); background: var(--coal-2); border: 1px solid var(--line-hot); width: 100%; }

/* ───── telas base ───── */
.screen { position: fixed; inset: 0; z-index: 10; padding: 70px var(--pad) var(--pad); overflow: auto; overscroll-behavior: contain; }
.screen:not([hidden]) { display: grid; }
@keyframes screen-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.screen:not([hidden]) > * { animation: screen-in .26s ease both; }

/* ───── painéis / folhas ───── */
.sheet { position: relative; margin: auto; width: min(720px, 100%); background: rgba(15, 19, 23, .95); border: 1px solid var(--line-hot); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 20px; backdrop-filter: blur(12px); }
.sheet--wide { width: min(1160px, 100%); }
.sheet--narrow { width: min(440px, 100%); }
.sheet--scroll { margin: 0 auto 24px; align-content: start; }
.sheet__head { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sheet__title { font: 400 clamp(1.5rem, 2.4vw, 2.1rem)/1 var(--display); letter-spacing: .03em; text-transform: uppercase; color: var(--bone); }
.back { display: inline-flex; align-items: center; gap: 8px; width: max-content; min-height: 40px; padding: 0 14px 0 10px; background: var(--coal-2); border: 1px solid var(--line-hot); border-radius: var(--radius-sm); font: 600 .84rem var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--bone-dim); transition: background .15s ease, color .15s ease, border-color .15s ease; }
.back:hover { color: var(--bone); border-color: var(--bone-dim); background: #1f272e; }
.group { display: grid; gap: 14px; align-content: start; }
.group__title { font: 600 .82rem var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--blood-hot); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.hint { font: 400 .85rem/1.45 var(--body); color: var(--bone-dim); }
.stack { display: grid; gap: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions--end { justify-content: flex-end; }
.actions--danger { padding-top: 14px; border-top: 1px solid var(--line); }
.msg { font: 500 .88rem var(--body); border-left: 3px solid var(--bone); padding: 8px 12px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--coal-2); }
.msg--bad { border-color: var(--blood-hot); }

/* ───── botões ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-hot); border-radius: var(--radius-sm); background: var(--coal-2); color: var(--bone); font: 600 .9rem var(--body); letter-spacing: .03em; text-decoration: none; transition: transform .08s ease, background .15s ease, border-color .15s ease; }
.btn:hover { background: #212931; border-color: var(--bone-dim); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blood); border-color: var(--blood-hot); box-shadow: 0 4px 16px rgba(179, 32, 31, .35); color: var(--bone); font-family: var(--display); font-weight: 400; letter-spacing: .05em; text-transform: uppercase; }
.btn--primary:hover { background: #c52c2b; border-color: var(--bone); }
.btn--primary:active { transform: translateY(1px); }
.btn--coop { background: rgba(23, 29, 34, .92); border: 1px solid var(--line-hot); color: var(--bone); font-family: var(--display); font-weight: 400; letter-spacing: .05em; text-transform: uppercase; }
.btn--coop:hover { background: #202830; border-color: var(--bone); }
.btn--quiet { background: var(--coal-2); border-color: var(--line-hot); }
.btn--compact { min-height: 40px; padding: 0 12px; font-size: .84rem; }
.btn--ghost { background: transparent; border-color: transparent; color: var(--bone-dim); }
.btn--ghost:hover { color: var(--bone); background: rgba(255, 255, 255, .05); border-color: transparent; }
.btn--danger { background: var(--blood-deep); border-color: var(--blood-hot); color: var(--bone); }
.btn--danger:hover { background: var(--blood); }
.btn--xl { min-height: 54px; font-size: 1.15rem; padding: 0 24px; }
.btn--block { width: 100%; }
.btn:disabled, .btn[aria-disabled='true'] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn.is-busy { opacity: .7; pointer-events: none; }

/* ───── carregando ───── */
.screen--boot { place-content: center; justify-items: center; gap: 18px; text-align: center; background: var(--night); }
.boot__name { font: 400 clamp(3.2rem, 8vw, 6.2rem)/1 var(--display); text-transform: uppercase; color: var(--bone); text-shadow: 5px 5px 0 var(--blood-deep); }
.boot__title { font: 500 1.05rem var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--bone-dim); }
.boot__text { font: 400 .9rem var(--body); color: var(--bone-dim); }
.meter { width: min(400px, 70vw); height: 10px; border: 1px solid var(--line-hot); border-radius: 999px; background: var(--coal); overflow: hidden; }
.meter > i { display: block; width: 0; height: 100%; background: var(--blood-hot); border-radius: 999px; transition: width .25s ease; }
.meter--ruler { width: 100%; height: 6px; border-color: var(--line); background: rgba(255, 255, 255, .06); }
.meter--ruler > i { background: var(--blood-hot); }
.boot__error { max-width: 34rem; display: grid; gap: 12px; justify-items: center; border: 1px solid var(--blood-hot); border-radius: var(--radius); background: var(--coal); padding: 20px; }
.boot__error-title { font: 400 1.1rem var(--display); display: flex; gap: 8px; align-items: center; color: var(--blood-hot); text-transform: uppercase; }

/* ───── menu principal: hub desktop amplo à esquerda, 3D vivo à direita ───── */
.screen--title { grid-template-columns: minmax(460px, 560px) 1fr; grid-template-rows: auto 1fr auto; grid-template-areas: 'file .' 'hub .' 'foot foot'; gap: 18px var(--pad); padding-top: 22px; overflow: hidden; }
.file { grid-area: file; justify-self: start; width: 100%; background: rgba(15, 19, 23, .82); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; display: grid; gap: 8px; backdrop-filter: blur(10px); }
.file__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.file__title { font: 600 .74rem var(--body); text-transform: uppercase; letter-spacing: .14em; color: var(--blood-hot); }
.file__badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; background: var(--blood-deep); border: 1px solid var(--blood-hot); color: var(--bone); font: 600 .72rem var(--body); text-transform: uppercase; letter-spacing: .06em; }
.file__nums { display: flex; gap: 28px; align-items: baseline; }
.file__nums > div { display: flex; align-items: baseline; gap: 8px; }
.file__nums dt { font: 600 .72rem var(--body); letter-spacing: .1em; color: var(--bone-dim); }
.file__nums dd { font: 400 1.55rem/1 var(--display); color: var(--bone); font-variant-numeric: tabular-nums; }
.file__meta { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.file__line { font: 400 .8rem/1.35 var(--body); color: var(--bone-dim); }
.file__line--dim { color: var(--bone-dim); }

.title__hub { grid-area: hub; align-self: center; display: grid; gap: 26px; width: 100%; }
.brand { display: grid; gap: 6px; justify-items: start; }
.brand__kicker { font: 600 .78rem var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--blood-hot); }
.brand__logo { font: 400 clamp(3.8rem, 6.2vw, 6.2rem)/.92 var(--display); text-transform: uppercase; color: var(--bone); text-shadow: 5px 5px 0 var(--blood-deep); }
.brand__tagline { font: 400 1.05rem var(--body); color: var(--bone-dim); }
.brand__tally { width: 92px; height: 28px; fill: none; stroke: var(--blood-hot); stroke-width: 4; stroke-linecap: round; margin-top: 2px; }

.index { display: grid; gap: 12px; width: 100%; }
.index__hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; }
.index__hero .btn--xl { min-height: 58px; font-size: 1.2rem; }
.index__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nav-tile { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 16px; background: rgba(15, 19, 23, .84); border: 1px solid var(--line); border-radius: var(--radius); color: var(--bone); font: 600 .94rem var(--body); text-align: left; backdrop-filter: blur(8px); transition: background .15s ease, border-color .15s ease, transform .12s ease; }
.nav-tile [data-icon] { color: var(--blood-hot); font-size: 1.1rem; }
.nav-tile:hover { background: var(--coal-2); border-color: var(--bone-dim); transform: translateY(-1px); }
.index__util { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.util-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 12px; background: rgba(15, 19, 23, .72); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--bone-dim); font: 500 .84rem var(--body); transition: background .15s ease, color .15s ease, border-color .15s ease; }
.util-btn:hover { color: var(--bone); background: var(--coal-2); border-color: var(--line-hot); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px dashed var(--line-hot); border-radius: var(--radius-sm); background: rgba(15, 19, 23, .7); font: 400 .86rem/1.45 var(--body); color: var(--bone); }
.pause__mouse { margin-top: 0; }
.pause__mouse.is-bad { border-style: solid; border-color: var(--blood-hot); }
.pause__mouse.is-bad [data-icon] { color: var(--blood-hot); }
.foot { grid-area: foot; font: 400 .82rem var(--body); color: var(--bone-dim); }
.foot p { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }
.foot a { display: inline-flex; align-items: center; min-height: 32px; color: var(--bone-dim); }
.foot a:hover { color: var(--bone); }
.foot .donate { color: var(--bone-dim); }

/* ───── nova partida: workspace desktop em 2 colunas, aproveitando toda a janela ───── */
.screen--setup { padding-top: 66px; overflow: hidden; }
.sheet--setup { width: min(1440px, 100%); height: calc(100vh - 94px); max-height: 880px; margin: 0 auto; grid-template-columns: minmax(0, 1.75fr) minmax(340px, 410px); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: 'head head' 'left right'; gap: 18px 26px; align-items: stretch; overflow: hidden; }
.setup__head { grid-area: head; flex-wrap: wrap; }
.modetabs { margin-left: auto; border-bottom: 0; background: var(--night); padding: 4px; border-radius: var(--radius-sm); border: 1px solid var(--line); gap: 4px; }
.modetabs .maptab { min-height: 36px; margin-bottom: 0; padding: 0 16px; border: 0; border-radius: 4px; font: 600 .86rem var(--body); letter-spacing: .04em; text-transform: uppercase; }
.modetabs .maptab[aria-selected='true'] { background: var(--blood); color: var(--bone); box-shadow: none; }
.modetabs .maptab[aria-selected='true']::after { display: none; }
.dmsetup { grid-column: 1 / -1; grid-row: 2; min-height: 0; }
.screen--setup[data-mode='deathmatch'] .setup__col { display: none; }

.setup__col { display: flex; flex-direction: column; gap: 16px; min-width: 0; min-height: 0; }
.setup__col--left { grid-area: left; }
.setup__col--right { grid-area: right; background: rgba(7, 9, 12, .5); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; overflow-y: auto; }
.setup__maps { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.setup__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.setup__start { margin-top: auto; }

.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field__label { font: 600 .78rem var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--blood-hot); padding: 0; }
.diffs { display: grid; gap: 8px; }
.diff { position: relative; display: grid; gap: 4px; padding: 11px 14px 11px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--coal-2); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.diff:hover { border-color: var(--bone-dim); }
.diff input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.diff__head { display: flex; align-items: center; gap: 10px; }
.diff__mark { width: 18px; height: 18px; border: 2px solid var(--line-hot); border-radius: 50%; display: grid; place-items: center; flex: none; }
.diff__mark .ico { width: 12px; height: 12px; opacity: 0; }
.diff__name { font: 400 1.15rem/1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.diff__bars { margin-left: auto; display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.diff__bars i { width: 4px; border-radius: 1px; background: var(--line); }
.diff__bars i:nth-child(1) { height: 6px; }
.diff__bars i:nth-child(2) { height: 10px; }
.diff__bars i:nth-child(3) { height: 14px; }
.diff__bars i.is-on { background: var(--blood-hot); }
.diff__desc { font: 400 .84rem/1.4 var(--body); color: var(--bone-dim); padding-left: 28px; }
.diff.is-selected, .diff:has(input:checked) { border-color: var(--bone); background: var(--coal); }
.diff.is-selected::before, .diff:has(input:checked)::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--blood-hot); }
.diff.is-selected .diff__mark, .diff:has(input:checked) .diff__mark { background: var(--bone); border-color: var(--bone); color: var(--night); }
.diff.is-selected .diff__mark .ico, .diff:has(input:checked) .diff__mark .ico { opacity: 1; }
.diff:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

/* seletor de mapas em grade limpa e espaçosa */
.maptabs { display: inline-flex; align-items: center; gap: 4px; border-bottom: 0; }
.maptab { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--bone-dim); font: 600 .84rem var(--body); cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.maptab .ico { width: 16px; height: 16px; }
.maptab:hover { color: var(--bone); background: rgba(255, 255, 255, .04); }
.maptab[aria-selected='true'] { color: var(--bone); background: var(--coal-2); border-color: var(--line-hot); }
.maptab__n { font: 600 .74rem/1 var(--body); padding: 2px 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--bone-dim); }
.maptab__n:empty { display: none; }
.mappanel { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-gutter: stable; scrollbar-color: var(--line-hot) transparent; }
.maps { display: grid; gap: 12px; }
.maps--grid { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); align-items: stretch; }
.maps--random { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.mapcard { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; align-content: start; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--coal-2); cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .12s ease; }
.mapcard:hover { border-color: var(--bone-dim); transform: translateY(-1px); }
.mapcard input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.mapcard__plan { position: relative; aspect-ratio: 16 / 9; width: 100%; display: grid; place-items: center; background: var(--night); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.mapcard__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; display: block; }
.mapcard__skeleton { display: block; width: 100%; height: 100%; background: linear-gradient(100deg, var(--coal-2) 30%, var(--line-hot) 50%, var(--coal-2) 70%) 0 0 / 220% 100%; animation: skeleton 1.4s linear infinite; }
@keyframes skeleton { from { background-position: 120% 0; } to { background-position: -100% 0; } }
.mapcard__plan[data-state='error'] { color: var(--bone-dim); }
.mapcard__plan[data-state='error'] .ico { width: 28px; height: 28px; }
.mapcard__body { display: grid; gap: 4px; align-content: start; min-width: 0; padding: 0 2px; }
.mapcard .diff__mark { position: absolute; top: 16px; right: 16px; z-index: 2; background: rgba(7, 9, 12, .85); }
.mapcard__name { font: 400 1.05rem/1.15 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--bone); }
.mapcard__desc { font: 400 .82rem/1.4 var(--body); color: var(--bone-dim); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.mapcard__chips { display: flex; flex-wrap: wrap; gap: 5px; }
.mapcard__chips:empty { display: none; }
.mapcard__err { font: 400 .8rem var(--body); color: var(--bone-dim); }
.chip { font: 600 .7rem/1.2 var(--body); border: 1px solid var(--line-hot); border-radius: 999px; padding: 2px 8px; color: var(--bone); }
.chip--tag { background: rgba(233, 228, 214, .12); border-color: var(--bone-dim); color: var(--bone); }
.mapcard.is-selected, .mapcard:has(input:checked) { border-color: var(--bone); background: #1c242b; box-shadow: inset 0 0 0 1px var(--bone); }
.mapcard.is-selected::before, .mapcard:has(input:checked)::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; border-radius: var(--radius) var(--radius) 0 0; background: var(--blood-hot); z-index: 2; }
.mapcard.is-selected .diff__mark, .mapcard:has(input:checked) .diff__mark { background: var(--bone); border-color: var(--bone); color: var(--night); }
.mapcard.is-selected .diff__mark .ico, .mapcard:has(input:checked) .diff__mark .ico { opacity: 1; }
.mapcard:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.mapcard--community { grid-template-columns: 160px minmax(0, 1fr); gap: 18px; padding: 18px; align-items: center; }
.mapcard--random .mapcard__plan, .mapcard--community .mapcard__plan { display: grid; place-items: center; color: var(--bone-dim); min-height: 110px; }
.mapcard--random .mapcard__plan .ico, .mapcard--community .mapcard__plan .ico { width: 42px; height: 42px; }
.mapcard__plan--random[data-size='small'] .ico { width: 32px; height: 32px; }
.mapcard__plan--random[data-size='large'] .ico { width: 54px; height: 54px; }
.mapcard__open { position: relative; z-index: 1; justify-self: start; margin-top: 6px; }
.mapcard__note { font: 400 .84rem/1.4 var(--body); color: var(--bone-dim); }
.chip--map { max-width: 100%; overflow-wrap: anywhere; }

.code { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; align-items: stretch; }
.code__input { min-width: 0; min-height: 38px; padding: 0 10px; background: var(--night); border: 1px solid var(--line-hot); border-radius: var(--radius-sm); font: 600 .9rem var(--type); letter-spacing: .08em; text-transform: uppercase; color: var(--bone); }
.code .btn--compact { min-height: 38px; padding: 0 10px; gap: 5px; font-size: .8rem; white-space: nowrap; }
.code__input:focus-visible, .code__area:focus-visible { border-color: var(--bone); }
.code__input[aria-invalid='true'], .code__area[aria-invalid='true'] { border-color: var(--blood-hot); }
.code__area { width: 100%; padding: 10px 12px; background: var(--night); border: 1px solid var(--line-hot); border-radius: var(--radius-sm); font: 400 .88rem/1.4 var(--type); resize: vertical; min-height: 80px; word-break: break-all; }
.error { display: flex; gap: 8px; align-items: flex-start; font: 500 .86rem var(--body); color: var(--blood-hot); }

/* ───── Armeiro ───── */
.tabs { display: flex; gap: 0; width: 100%; border-bottom: 1px solid var(--line-hot); }
.tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; background: transparent; border: 1px solid transparent; border-bottom: 0; font: 600 .88rem var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--bone-dim); margin-bottom: -1px; transition: background .15s ease, color .15s ease; }
.tab:hover { color: var(--bone); }
.tab[aria-selected='true'] { background: var(--coal-2); color: var(--bone); border-color: var(--line-hot); }
.screen--armory { grid-template-rows: auto minmax(0, 1fr); gap: 14px; overflow: hidden; padding-top: 66px; }
.armory__head { display: flex; align-items: center; gap: 16px; background: rgba(15, 19, 23, .92); border: 1px solid var(--line-hot); border-radius: var(--radius); padding: 10px 16px; backdrop-filter: blur(10px); }
.armory__title { font: 400 1.65rem/1 var(--display); text-transform: uppercase; }
.armory__tabs { width: max-content; flex: none; border-bottom: 0; margin-left: 12px; gap: 4px; background: var(--night); padding: 4px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.armory__tabs .tab { min-height: 36px; margin-bottom: 0; padding: 0 16px; border: 0; border-radius: 4px; font: 600 .84rem var(--body); letter-spacing: .04em; }
.armory__tabs .tab[aria-selected='true'] { background: var(--blood); color: var(--bone); }
.wallet { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 5px 14px; border-radius: 999px; background: var(--night); border: 1px solid var(--line); font: 400 1.35rem/1 var(--display); font-variant-numeric: tabular-nums; }
.wallet [data-icon] { color: var(--blood-hot); }

.armory__body { min-height: 0; display: grid; }
.armory__weapons { display: grid; grid-template-columns: minmax(260px, 310px) minmax(0, 1fr) minmax(380px, 460px); gap: 16px; min-height: 0; }
.wlist { display: grid; gap: 4px; align-content: start; overflow: auto; background: rgba(15, 19, 23, .9); border: 1px solid var(--line-hot); border-radius: var(--radius); padding: 8px; min-height: 0; backdrop-filter: blur(8px); }
.wrow { width: 100%; display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 2px 12px; align-items: center; min-height: 54px; padding: 8px 10px; background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm); text-align: left; color: var(--bone); transition: background .12s ease, border-color .12s ease; }
.wrow:hover { background: var(--coal-2); }
.wrow[aria-current='true'] { background: var(--coal-2); border-color: var(--bone); }
.wrow__icon { grid-row: span 2; color: var(--bone); }
.wrow__icon .ico { width: 60px; height: 22px; }
.wrow.is-locked .wrow__icon { color: var(--bone-dim); }
.wrow__name { font: 400 1rem/1.15 var(--display); text-transform: uppercase; letter-spacing: .02em; overflow-wrap: anywhere; }
.wrow__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font: 500 .74rem/1.2 var(--body); color: var(--bone-dim); }
.wrow__status { display: inline-flex; align-items: center; gap: 4px; }
.wrow__status .ico { width: 12px; height: 12px; }
.wrow.is-equipped .wrow__status { color: var(--blood-hot); font-weight: 600; }
.armory__stage { min-height: 120px; }
.wsheet { position: relative; background: rgba(15, 19, 23, .94); border: 1px solid var(--line-hot); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; display: grid; gap: 14px; align-content: start; overflow: auto; min-height: 0; backdrop-filter: blur(10px); }
.wsheet--wide { width: min(1140px, 100%); justify-self: center; }
.wsheet__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.wsheet__class { font: 600 .74rem var(--body); text-transform: uppercase; letter-spacing: .16em; color: var(--blood-hot); }
.wsheet__name { font: 400 clamp(1.6rem, 2.6vw, 2.1rem)/1 var(--display); text-transform: uppercase; }
.wsheet__desc { font: 400 .9rem/1.45 var(--body); color: var(--bone-dim); }
.wsheet__skin { display: flex; align-items: center; gap: 8px; margin: 0; font: 500 .86rem/1.3 var(--body); color: var(--bone-dim); }
.lvl { display: grid; gap: 6px; }
.lvl__label { display: flex; justify-content: space-between; gap: 10px; font: 500 .86rem var(--body); }
.lvl__hint { font: 400 .8rem/1.4 var(--body); color: var(--bone-dim); }
.st { display: grid; gap: 6px; padding-top: 4px; }
.st__row { display: grid; grid-template-columns: 118px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 3px 0; font: 500 .84rem var(--body); }
.st__label { color: var(--bone-dim); }
.st__bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.st__bar > i { display: block; height: 100%; border-radius: 999px; background: var(--bone); }
.st__val { font-variant-numeric: tabular-nums; text-align: right; min-width: 54px; color: var(--bone); }
.st__delta { color: var(--blood-hot); font-size: .78rem; }
.sheet-h { font: 600 .78rem var(--body); text-transform: uppercase; letter-spacing: .14em; color: var(--blood-hot); padding-top: 4px; }
.ups { display: grid; gap: 8px; }
.ups--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.up { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--coal-2); }
.up__name { font: 400 .98rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.up__desc { grid-column: 1; font: 400 .82rem/1.4 var(--body); color: var(--bone-dim); }
.up__side { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 10px; }
.pips { display: inline-flex; gap: 4px; }
.pip { width: 10px; height: 10px; border-radius: 2px; border: 1px solid var(--bone-dim); }
.pip--on { background: var(--blood-hot); border-color: var(--blood-hot); }
.up__buy { min-height: 38px; padding: 0 12px; font-size: .84rem; }
.up__note { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; font: 500 .78rem var(--body); color: var(--bone-dim); }
.up__note .ico { width: 14px; height: 14px; }
.up__max { display: inline-flex; gap: 6px; align-items: center; font: 600 .8rem var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--bone); }
.wsheet__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.up.is-flash, .wrow.is-flash { animation: flash .6s ease; }
@keyframes flash { 0% { background: rgba(236, 90, 80, .35); } 100% { background: var(--coal-2); } }

/* ───── opções: painel desktop dividido (barra lateral de categorias + cartões limpos) ───── */
.screen--settings { padding-top: 66px; overflow: hidden; }
.sheet--settings { width: min(1160px, 100%); height: calc(100vh - 94px); max-height: 840px; margin: 0 auto; grid-template-rows: auto minmax(0, 1fr); gap: 18px; overflow: hidden; }
.settings__layout { display: grid; grid-template-columns: 226px minmax(0, 1fr); gap: 22px; min-height: 0; }
.tabs--settings { display: flex; flex-direction: column; gap: 6px; border-bottom: 0; border-right: 1px solid var(--line); padding-right: 16px; align-self: stretch; }
.tabs--settings .tab { width: 100%; justify-content: flex-start; gap: 11px; min-height: 46px; padding: 0 14px; margin-bottom: 0; border: 1px solid transparent; border-radius: var(--radius-sm); font: 600 .9rem var(--body); text-transform: none; letter-spacing: .01em; position: relative; }
.tabs--settings .tab:hover { background: rgba(255, 255, 255, .04); color: var(--bone); }
.tabs--settings .tab[aria-selected='true'] { background: var(--coal-2); color: var(--bone); border-color: var(--line-hot); }
.tabs--settings .tab[aria-selected='true']::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--blood-hot); }
.tabs--settings .tab[aria-selected='true'] [data-icon] { color: var(--blood-hot); }
.settings__content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 8px; scrollbar-gutter: stable; scrollbar-color: var(--line-hot) transparent; }
.settings__pane { gap: 16px; padding-bottom: 12px; }

.opt-card { display: grid; gap: 12px; padding: 18px 20px; background: rgba(23, 29, 34, .72); border: 1px solid var(--line); border-radius: var(--radius); }
.opt-card__title { font: 600 .78rem var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--blood-hot); padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.opt-item { display: grid; gap: 4px; }
.opt-sub { display: grid; gap: 10px; padding-left: 16px; border-left: 2px solid var(--line); transition: opacity .2s ease; }
.opt-sub.is-disabled { opacity: .45; }

/* controles limpos: toggles modernos, selects e sliders */
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 240px) 58px; gap: 12px; align-items: center; min-height: 40px; }
.row > label { font: 500 .94rem/1.35 var(--body); color: var(--bone); }
.row select { grid-column: 2 / span 2; min-height: 40px; padding: 0 12px; background: var(--night); border: 1px solid var(--line-hot); border-radius: var(--radius-sm); color: var(--bone); font: 500 .9rem var(--body); }
.row select:hover { border-color: var(--bone-dim); }
.row--quick { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); grid-template-columns: auto minmax(110px, 1fr) 48px; }
.row output { font: 600 .86rem var(--body); text-align: center; color: var(--bone); background: var(--night); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 6px; font-variant-numeric: tabular-nums; }
.row input[type='range'] { width: 100%; height: 32px; accent-color: var(--blood-hot); background: transparent; cursor: pointer; }
.row--check { grid-template-columns: minmax(0, 1fr) auto; }
.row--check > label { grid-column: 1; grid-row: 1; display: flex; align-items: center; min-height: 36px; cursor: pointer; }
.row--check input[type='checkbox'] { grid-column: 2; grid-row: 1; appearance: none; -webkit-appearance: none; position: relative; width: 46px; height: 26px; border-radius: 999px; background: var(--night); border: 1px solid var(--line-hot); margin: 0; cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.row--check input[type='checkbox']::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--bone-dim); transition: transform .18s ease, background .18s ease; }
.row--check input[type='checkbox']:checked { background: var(--blood); border-color: var(--blood-hot); }
.row--check input[type='checkbox']:checked::after { transform: translateX(20px); background: var(--bone); }
.row--check input[type='checkbox']:disabled { opacity: .45; cursor: not-allowed; }

.seg { display: inline-flex; flex-wrap: nowrap; width: max-content; justify-self: start; border: 1px solid var(--line-hot); border-radius: var(--radius-sm); background: var(--night); overflow: hidden; max-width: 100%; }
.seg--full { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; justify-self: stretch; }
.seg__btn { min-height: 40px; padding: 6px 14px; background: transparent; border: 0; border-right: 1px solid var(--line); font: 600 .84rem/1.2 var(--body); color: var(--bone-dim); transition: background .15s ease, color .15s ease; }
.seg--full .seg__btn { padding: 6px 8px; }
.seg__btn:last-child { border-right: 0; }
.seg__btn:hover { background: var(--coal-2); color: var(--bone); }
.seg__btn[aria-pressed='true'] { background: var(--bone); color: var(--night); }

/* ───── como jogar: 3 abas limpas para desktop ───── */
.screen--help { padding-top: 66px; overflow: hidden; }
.sheet--help { width: min(1220px, 100%); height: calc(100vh - 94px); max-height: 840px; margin: 0 auto; grid-template-rows: auto minmax(0, 1fr); gap: 18px; overflow: hidden; }
.help__head { flex-wrap: wrap; }
.tabs--help { width: auto; margin-left: auto; border-bottom: 0; background: var(--night); padding: 4px; border-radius: var(--radius-sm); border: 1px solid var(--line); gap: 4px; }
.tabs--help .tab { min-height: 36px; margin-bottom: 0; padding: 0 16px; border: 0; border-radius: 4px; font: 600 .84rem var(--body); text-transform: none; letter-spacing: .01em; }
.tabs--help .tab[aria-selected='true'] { background: var(--blood); color: var(--bone); }
.help__body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-gutter: stable; scrollbar-color: var(--line-hot) transparent; }
.help__basics-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .9fr); gap: 16px; align-items: start; }
.help__side { display: grid; gap: 16px; }
.help__privacy-card { gap: 10px; }
.keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 22px; }
.keys > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: var(--radius-sm); background: rgba(7, 9, 12, .5); border: 1px solid var(--line); }
.keys dd { font: 500 .86rem/1.35 var(--body); color: var(--bone); text-align: right; }
.steps { display: grid; gap: 10px; counter-reset: step; }
.steps li { position: relative; padding-left: 36px; font: 400 .92rem/1.5 var(--body); color: var(--bone); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--blood); font: 400 .82rem var(--display); color: var(--bone); }
.tips { display: grid; gap: 8px; }
.tips li { padding: 8px 12px; border-left: 3px solid var(--blood-hot); background: rgba(7, 9, 12, .45); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font: 400 .88rem/1.45 var(--body); color: var(--bone); }
.catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cat { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 10px; align-items: start; padding: 12px; background: rgba(7, 9, 12, .45); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.cat__icon { grid-row: span 2; color: var(--blood-hot); padding-top: 2px; }
.cat__icon .ico { width: 28px; height: 28px; }
.cat__name { font: 400 .95rem var(--display); text-transform: uppercase; color: var(--bone); }
.cat__desc { font: 400 .82rem/1.4 var(--body); color: var(--bone-dim); }
.usage { color: var(--bone); }

/* ───── pausa e fim de partida ───── */
.screen--pause, .screen--over { background: rgba(7, 9, 12, .45); backdrop-filter: blur(6px); }
.pause__secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet--over { width: min(1060px, 100%); }
.over__head { display: flex; align-items: center; gap: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.over__titles { display: grid; gap: 4px; }
.over__skull { color: var(--blood-hot); }
.over__skull .ico { width: 46px; height: 46px; }
.over__title { font: 400 clamp(2.2rem, 4.2vw, 3.4rem)/.95 var(--display); text-transform: uppercase; color: var(--bone); text-shadow: 4px 4px 0 var(--blood-deep); }
.over__sub { font: 500 1.05rem var(--body); color: var(--bone); }
.over__meta { font: 400 .85rem var(--body); color: var(--bone-dim); }
.over__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.over__main { display: grid; gap: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stats > div { padding: 14px; background: var(--coal-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.stats dt { font: 600 .72rem var(--body); letter-spacing: .12em; color: var(--bone-dim); }
.stats dd { font: 400 1.9rem/1.15 var(--display); font-variant-numeric: tabular-nums; margin-top: 4px; }
.rewards { display: grid; gap: 10px; padding: 16px; background: rgba(7, 9, 12, .45); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.rewards__list { display: grid; gap: 8px; }
.rw { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--coal-2); font: 500 .92rem var(--body); animation: rw-in .35s ease both; }
.rw [data-icon] { color: var(--blood-hot); }
.rw--big { font: 400 1.25rem var(--display); border-color: var(--bone); }
.rw--level { border-color: var(--blood-hot); }
@keyframes rw-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

/* ───── aviso, confirmação, toast ───── */
.dlg { width: min(440px, calc(100vw - 28px)); padding: 24px; background: var(--coal); color: var(--bone); border: 1px solid var(--bone-dim); border-radius: var(--radius); box-shadow: var(--shadow); }
.dlg::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(4px); }
.dlg__title { font: 400 1.4rem var(--display); text-transform: uppercase; margin-bottom: 8px; }
.dlg__text { font: 400 .94rem/1.5 var(--body); color: var(--bone-dim); margin-bottom: 18px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translateX(-50%); max-width: min(92vw, 480px); background: var(--bone); color: var(--night); border: 1px solid #000; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: 10px 18px; font: 600 .92rem var(--body); text-align: center; animation: toast-in .22s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ───── HUD ───── */
.hud { position: fixed; inset: 0; z-index: 20; pointer-events: none; font-family: var(--type); }
html[data-scary="1"] .hud::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, transparent 34%, rgba(0, 0, 0, 0.5) 72%, rgba(0, 0, 0, 0.88) 100%); }
.hud > * { position: absolute; }
.hud__blood { inset: 0; opacity: 0; transition: opacity .25s ease; background: radial-gradient(ellipse at center, transparent 45%, rgba(120, 8, 8, .55) 78%, rgba(60, 0, 0, .92) 100%), radial-gradient(circle at 6% 10%, rgba(100, 0, 0, .75) 0 5%, transparent 14%), radial-gradient(circle at 95% 18%, rgba(100, 0, 0, .7) 0 4%, transparent 12%), radial-gradient(circle at 12% 92%, rgba(100, 0, 0, .75) 0 6%, transparent 15%), radial-gradient(circle at 90% 88%, rgba(100, 0, 0, .7) 0 5%, transparent 13%); opacity: var(--blood, 0); }
.hud.is-low .hud__blood { animation: heartbeat 1s ease-in-out infinite; }
@keyframes heartbeat { 0%, 100% { filter: none; } 18% { filter: brightness(1.45); } 30% { filter: brightness(.9); } 44% { filter: brightness(1.3); } }
.hud__hurt { inset: 0; }
.hurt-arrow { position: absolute; left: 50%; top: 50%; width: 0; height: 0; opacity: 0; transform: rotate(var(--a, 0deg)) translateY(-26vmin); }
.hurt-arrow.is-on { animation: hurt-fade .9s ease-out both; }
.hurt-arrow::before { content: ''; position: absolute; left: -22px; top: -16px; width: 44px; height: 32px; background: var(--blood-hot); clip-path: polygon(50% 0, 100% 100%, 50% 72%, 0 100%); }
@keyframes hurt-fade { 0% { opacity: .95; } 100% { opacity: 0; } }
.hud__cross { left: 50%; top: 50%; width: 0; height: 0; --gap: 8px; transition: opacity .12s ease; }
.hud__cross .cx { position: absolute; background: var(--bone); box-shadow: 0 0 0 1px #000; }
.cx--t, .cx--b { width: 2px; height: 9px; left: -1px; }
.cx--l, .cx--r { height: 2px; width: 9px; top: -1px; }
.cx--t { top: calc(var(--gap) * -1 - 9px); } .cx--b { top: var(--gap); } .cx--l { left: calc(var(--gap) * -1 - 9px); } .cx--r { left: var(--gap); }
.cx--d { width: 4px; height: 4px; left: -2px; top: -2px; border-radius: 50%; }
.hud__cross[data-style='dot'] .cx:not(.cx--d), .hud__cross[data-style='none'] .cx { display: none; }
.hud__cross[data-style='cross'] .cx--d { display: none; }
.hud__cross.is-aim .cx { opacity: .35; }
.hud__dash { left: 50%; top: calc(50% + 30px); width: 46px; height: 5px; margin-left: -23px; background: rgba(0, 0, 0, .6); border: 1px solid var(--bone-dim); }
.hud__dash > i { display: block; height: 100%; background: var(--bone); transform-origin: left; transform: scaleX(var(--dash, 0)); }
.hud__speed { inset: 0; opacity: 0; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(244, 239, 226, 0) 0 5deg, rgba(244, 239, 226, .2) 5deg 5.7deg, rgba(244, 239, 226, 0) 5.7deg 11deg); -webkit-mask-image: radial-gradient(ellipse at center, transparent 40%, #000 88%); mask-image: radial-gradient(ellipse at center, transparent 40%, #000 88%); }
.hud__speed.is-on { animation: dash-streaks .22s ease-out; }
@keyframes dash-streaks { 0% { opacity: 0; transform: scale(1.1); } 22% { opacity: 1; } 100% { opacity: 0; transform: scale(1); } }
html[data-motion='reduced'] .hud__speed { display: none; }
.hud__marker { left: 50%; top: 50%; width: 0; height: 0; opacity: 0; }
.hud__marker i { position: absolute; width: 12px; height: 3px; background: var(--bone); box-shadow: 0 0 0 1px #000; left: -6px; top: -1px; }
.hud__marker i:nth-child(1) { transform: translate(-13px, -13px) rotate(45deg); } .hud__marker i:nth-child(2) { transform: translate(13px, -13px) rotate(-45deg); }
.hud__marker i:nth-child(3) { transform: translate(-13px, 13px) rotate(-45deg); } .hud__marker i:nth-child(4) { transform: translate(13px, 13px) rotate(45deg); }
.hud__marker.is-static { opacity: 1; }
.hud__marker.is-hit { animation: marker .22s ease-out; }
.hud__marker.is-head { animation: marker-head .3s ease-out; }
.hud__marker.is-kill { animation: marker-kill .38s ease-out; }
.hud__marker.is-kill i { background: var(--blood-hot); width: 16px; height: 4px; left: -8px; }
@keyframes marker { 0% { opacity: 1; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.15); } }
@keyframes marker-head { 0% { opacity: 1; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes marker-kill { 0% { opacity: 1; transform: scale(.6); } 60% { opacity: 1; } 100% { opacity: 0; transform: scale(1.7); } }
.hud__scope { inset: 0; opacity: 0; background: radial-gradient(circle at center, transparent 0 21vmin, #000 21.4vmin); }
.hud__scope::before, .hud__scope::after { content: ''; position: absolute; background: #000; }
.hud__scope::before { left: 50%; top: calc(50% - 21vmin); width: 2px; height: 42vmin; margin-left: -1px; }
.hud__scope::after { top: 50%; left: calc(50% - 21vmin); height: 2px; width: 42vmin; margin-top: -1px; }
.hud__announce { left: 0; right: 0; top: 16vh; text-align: center; opacity: 0; }
.announce__title { font: 400 clamp(2.4rem, 8vw, 5.5rem)/1 var(--display); text-transform: uppercase; color: var(--bone); text-shadow: 5px 5px 0 var(--blood-deep); }
.announce__sub { font: 400 clamp(1rem, 2.4vw, 1.5rem) var(--type); color: var(--blood-hot); margin-top: 6px; }
.hud__announce.is-on { animation: announce 3.2s ease both; }
@keyframes announce { 0% { opacity: 0; transform: scale(1.25); } 12% { opacity: 1; transform: scale(1); } 78% { opacity: 1; } 100% { opacity: 0; } }
.hud__prompt { left: 50%; bottom: 22vh; transform: translateX(-50%); max-width: min(92vw, 640px); text-align: center; background: rgba(7, 9, 12, .86); border: 2px solid var(--bone); padding: 10px 16px; box-shadow: var(--shadow-sm); }
.prompt__text { font: 400 clamp(1rem, 1.8vw, 1.25rem)/1.3 var(--type); color: var(--bone); }
.prompt__note { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 6px; font: 400 .95rem var(--type); color: var(--blood-hot); }
.hud__prompt.is-bad { border-color: var(--blood-hot); }
.hud__prompt.is-pop { animation: prompt-pop .18s ease-out; }
@keyframes prompt-pop { from { transform: translateX(-50%) scale(.94); } to { transform: translateX(-50%) scale(1); } }
.hud__notices { left: 50%; bottom: 31vh; transform: translateX(-50%); display: grid; gap: 4px; justify-items: center; }
.notice-line { background: rgba(7, 9, 12, .85); border: 1px solid var(--bone-dim); padding: 4px 12px; font: 400 .98rem var(--type); animation: notice 2.4s ease both; }
@keyframes notice { 0% { opacity: 0; transform: translateY(8px); } 10% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; } }
.hud__weather { left: 50%; top: var(--pad); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 12px; background: rgba(7, 9, 12, .86); border: 2px solid var(--bone); box-shadow: var(--shadow-sm); font: 400 1rem/1.2 var(--type); text-transform: uppercase; letter-spacing: .1em; opacity: 0; }
.hud__weather .ico { width: 26px; height: 26px; }
.hud__weather[data-kind='storm'] .ico, .hud__weather[data-kind='rain'] .ico { color: var(--blood-hot); }
.hud__weather.is-on { animation: weather-pill 6s ease both; }
@keyframes weather-pill { 0% { opacity: 0; transform: translate(-50%, -12px); } 7% { opacity: 1; transform: translate(-50%, 0); } 86% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }
.hud__tl { left: var(--pad); top: calc(var(--pad) + 40px); display: grid; gap: 8px; justify-items: start; }
.left { display: inline-flex; align-items: center; gap: 7px; align-self: flex-end; margin: 0 0 7px 8px; padding: 3px 12px 3px 9px; background: rgba(7, 9, 12, .7); border: 2px solid var(--line-hot); box-shadow: var(--shadow-sm); }
.left .ico { width: 20px; height: 20px; color: var(--blood-hot); flex: none; }
.left__n { font: 400 1.6rem/1 var(--display); font-variant-numeric: tabular-nums; min-width: 1.6ch; text-align: right; }
.left__label { font: 400 .74rem var(--type); letter-spacing: .14em; color: var(--bone-dim); }
.torch { position: relative; display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; background: rgba(7, 9, 12, .7); border: 2px solid var(--bone); }
.torch.is-off { border-style: dashed; border-color: var(--bone-dim); color: var(--bone-dim); }
.torch.is-off::after { content: ''; position: absolute; width: 30px; height: 2px; background: var(--blood-hot); transform: rotate(-45deg); }
.hud__powerups { right: var(--pad); top: 68px; display: grid; gap: 8px; justify-items: end; }
.pu { display: flex; align-items: center; gap: 8px; background: rgba(7, 9, 12, .82); border: 2px solid var(--bone); padding: 4px 10px; }
.pu .ico { width: 26px; height: 26px; color: var(--blood-hot); }
.pu__time { font: 400 1.2rem var(--display); font-variant-numeric: tabular-nums; min-width: 2.6ch; text-align: right; }
.hud__bl { left: var(--pad); bottom: var(--pad); display: grid; gap: 8px; justify-items: start; }
.hp { width: min(260px, 40vw); height: 12px; border: 2px solid var(--bone); background: rgba(0, 0, 0, .7); overflow: hidden; }
.hp > i { display: block; height: 100%; width: 100%; background: var(--bone); transform-origin: left; transform: scaleX(var(--hp, 1)); transition: transform .2s ease; }
.hp.is-leech { animation: leech-glow .55s ease-out; }
@keyframes leech-glow { 0% { box-shadow: 0 0 0 0 rgba(120, 255, 150, 0); } 30% { box-shadow: 0 0 14px 4px rgba(120, 255, 150, .85); } 100% { box-shadow: 0 0 0 0 rgba(120, 255, 150, 0); } }
.hp.is-serum { border-color: #8bdc2c; box-shadow: 0 0 10px 2px rgba(139, 220, 44, .55); }
html[data-slowmo="1"] .hud::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: var(--slowmo, 1); background: radial-gradient(ellipse at 50% 50%, transparent 38%, rgba(22, 46, 82, .42) 74%, rgba(8, 18, 36, .74) 100%); transition: opacity .15s ease; }
html[data-slowmo="1"]:not([data-postfx="1"]) #view { filter: saturate(calc(1 - var(--slowmo, 1) * .74)) contrast(calc(1 + var(--slowmo, 1) * .16)) brightness(calc(1 - var(--slowmo, 1) * .05)); }
html[data-motion='reduced'][data-slowmo="1"] .hud::after { transition: none; }
.hp.is-low > i { background: repeating-linear-gradient(135deg, var(--blood-hot) 0 6px, var(--blood-deep) 6px 12px); }
.round { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.round__label { font: 400 .8rem var(--type); letter-spacing: .14em; color: var(--bone-dim); padding-bottom: 6px; }
.round__mark { display: inline-block; font: 400 clamp(2.6rem, 6vw, 4.2rem)/1 var(--display); color: var(--blood-hot); text-shadow: 3px 3px 0 #000; }
.round__mark svg { display: block; width: clamp(88px, 12vw, 130px); height: clamp(40px, 5vw, 56px); fill: none; stroke: var(--blood-hot); stroke-width: 6; stroke-linecap: round; filter: drop-shadow(2px 2px 0 #000); }
.round.is-new .round__mark { animation: round-new 1.1s ease; }
@keyframes round-new { 0% { transform: scale(1.8); opacity: .2; } 30% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); } }
.points { position: relative; display: flex; align-items: baseline; gap: 10px; }
.points__label { font: 400 .8rem var(--type); letter-spacing: .14em; color: var(--bone-dim); }
.points__value { font: 400 clamp(1.7rem, 3.4vw, 2.4rem)/1 var(--display); color: var(--bone); text-shadow: 3px 3px 0 #000; font-variant-numeric: tabular-nums; }
.floats { position: absolute; left: 100%; bottom: 0; width: 120px; height: 0; }
.float { position: absolute; left: 12px; bottom: 0; opacity: 0; font: 400 1.4rem var(--display); color: var(--bone); text-shadow: 2px 2px 0 #000; white-space: nowrap; }
.float.is-on { animation: float-up 1.1s ease-out both; }
.float.is-big { font-size: 1.9rem; color: var(--blood-hot); }
@keyframes float-up { 0% { opacity: 0; transform: translateY(8px); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-64px); } }
.perks { display: flex; gap: 6px; flex-wrap: wrap; }
.perk { width: 38px; height: 38px; display: grid; place-items: center; background: rgba(7, 9, 12, .82); border: 2px solid var(--bone); color: var(--bone); }
.perk .ico { width: 24px; height: 24px; }
.hud__br { right: var(--pad); bottom: var(--pad); display: grid; gap: 4px; justify-items: end; text-align: right; }
.weapon { font: 400 1rem var(--type); text-transform: uppercase; letter-spacing: .08em; color: var(--bone-dim); }
.weapon--pap { color: #7ef2ff; text-shadow: 0 0 8px rgba(72, 232, 255, .55), 2px 2px 0 #000; }
.ammo { display: flex; align-items: baseline; gap: 10px; text-shadow: 3px 3px 0 #000; }
.ammo.is-melee { opacity: .45; }
.ammo__mag { font: 400 clamp(2.6rem, 6vw, 4.2rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.ammo__reserve { font: 400 clamp(1.3rem, 2.6vw, 1.9rem) var(--display); color: var(--bone-dim); font-variant-numeric: tabular-nums; }
.ammo__reserve::before { content: '/ '; }
.ammo.is-low .ammo__mag { color: var(--blood-hot); }
.ammo__note { min-height: 1.4em; font: 400 .95rem var(--type); color: var(--blood-hot); }
.grenades { display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px; background: rgba(7, 9, 12, .78); border: 2px solid var(--bone); color: var(--bone); text-shadow: 2px 2px 0 #000; }
.grenades .ico { width: 22px; height: 22px; }
.grenades__count { min-width: 1ch; font: 400 1.35rem/1 var(--display); font-variant-numeric: tabular-nums; }
.grenades__key { font-size: .7rem; }
.grenades.is-empty { border-style: dashed; border-color: var(--bone-dim); color: var(--bone-dim); }
.grenades.is-throwing { border-color: var(--blood-hot); }
.grenades.is-new { animation: grenade-new .6s ease; }
.grenades.is-dry { animation: grenade-dry .35s ease; }
@keyframes grenade-new { 0% { transform: scale(1.35); } 100% { transform: none; } }
@keyframes grenade-dry { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.slots { display: flex; gap: 8px; }
.slot { display: grid; grid-template-columns: auto auto; gap: 2px 6px; align-items: center; padding: 3px 8px; background: rgba(7, 9, 12, .78); border: 2px solid var(--line-hot); color: var(--bone-dim); }
.slot .ico { width: 42px; height: 16px; }
.slot__n { font: 400 .75rem var(--type); }
.slot--on { border-color: var(--bone); color: var(--bone); }
.slot--pap { border-color: #46e2ff; box-shadow: inset 0 0 8px rgba(70, 226, 255, .35); }
.slot--pap.slot--on { border-color: #9bf5ff; color: #c8fbff; }
.slot--mod-fire { border-color: #ff6e24; box-shadow: inset 0 0 8px rgba(255, 110, 36, .42); }
.slot--mod-fire.slot--on { border-color: #ff9c57; color: #ffe0c2; }
.slot--mod-electric { border-color: #62b6ff; box-shadow: inset 0 0 8px rgba(98, 182, 255, .45); }
.slot--mod-electric.slot--on { border-color: #a6d8ff; color: #def0ff; }
.slot--mod-cryo { border-color: #8cecff; box-shadow: inset 0 0 8px rgba(140, 236, 255, .42); }
.slot--mod-cryo.slot--on { border-color: #ccf7ff; color: #ebfcff; }
/* Zona Morta (Battle Royale PvPvE): Setup, HUD e Minimapa */
[data-mode="br"] .setup__col:not(#brSetup .setup__col) { display: none; }
html[data-mode='br'] .round,
html[data-mode='br'] .points,
html[data-mode='br'] .hud__powerups { display: none; }
#brSetup { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 400px); gap: 18px 26px; min-width: 0; min-height: 0; }
#brSetup[hidden] { display: none; }
.brsetup__left { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.brsetup__right { display: flex; flex-direction: column; gap: 16px; min-width: 0; background: rgba(7, 9, 12, .55); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.brsetup__go { margin-top: auto; }
.brsetup__lead { margin: 0; font: 400 .92rem/1.5 var(--body); color: var(--bone-dim); }
.brsetup__row { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.brsetup__label { padding: 0; font: 600 .78rem var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--blood-hot); }
.brsetup__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.brsetup__pill { display: grid; place-items: center; min-width: 78px; min-height: 40px; padding: 0 14px; background: var(--coal-2); border: 1px solid var(--line-hot); border-radius: var(--radius-sm); font: 600 .86rem var(--body); color: var(--bone-dim); cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease; }
.brsetup__pill:hover { border-color: var(--bone-dim); color: var(--bone); }
.brsetup__pill.is-on,
.brsetup__pill[aria-checked="true"] { background: rgba(212, 42, 34, .22); border-color: var(--blood-hot); color: #fff; box-shadow: 0 0 0 1px var(--blood-hot), inset 0 0 12px rgba(212, 42, 34, .28); }
.brsetup__maps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.brsetup__map { display: grid; gap: 6px; text-align: left; padding: 14px; background: var(--coal-2); border: 1px solid var(--line-hot); border-radius: var(--radius); cursor: pointer; color: var(--bone); transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.brsetup__map:hover { border-color: var(--bone-dim); }
.brsetup__map.is-on,
.brsetup__map[aria-checked="true"] { background: rgba(212, 42, 34, .18); border-color: var(--blood-hot); box-shadow: 0 0 0 1px var(--blood-hot), inset 0 0 14px rgba(212, 42, 34, .22); }
.brsetup__map-name { font: 700 1.05rem var(--body); color: #fff; }
.brsetup__map-desc { font: 400 .84rem/1.4 var(--body); color: var(--bone-dim); }
.brsetup__map-meta { font: 600 .78rem var(--type); color: #ffd54f; letter-spacing: .04em; }
.br-hud { position: fixed; inset: 0; pointer-events: none; z-index: 8; }
.br-hud__gas { position: fixed; inset: 0; pointer-events: none; box-shadow: inset 0 0 110px 36px rgba(96, 255, 66, .52), inset 0 0 38px 10px rgba(255, 118, 36, .34); animation: brGasPulse 1.1s ease-in-out infinite alternate; }
@keyframes brGasPulse { from { opacity: .68; } to { opacity: 1; } }
.br-hud__top { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; }
.br-pill { padding: 6px 14px; border-radius: 999px; background: rgba(12, 16, 14, .86); border: 1px solid rgba(255, 255, 255, .2); font: 600 .84rem var(--type); letter-spacing: .06em; text-transform: uppercase; color: var(--bone); text-shadow: 1px 1px 0 #000; }
.br-pill--alive { border-color: rgba(255, 213, 79, .6); color: #ffe082; }
.br-pill--zone.is-warn { border-color: rgba(255, 106, 51, .9); background: rgba(92, 24, 10, .86); color: #ffba96; }
.br-hud__alert { position: absolute; top: 68px; left: 50%; transform: translateX(-50%); padding: 10px 22px; border-radius: 8px; background: rgba(14, 18, 22, .92); border: 2px solid #ffd54f; font: 700 1rem var(--type); letter-spacing: .09em; text-transform: uppercase; color: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .55); text-align: center; }
.br-hud__alert.is-danger { background: rgba(150, 22, 18, .92); border-color: #ff6b57; color: #ffe4df; }
.br-minimap { position: absolute; top: 16px; left: 16px; padding: 5px; border-radius: 10px; background: rgba(10, 14, 12, .88); border: 2px solid rgba(255, 255, 255, .28); box-shadow: 0 6px 22px rgba(0, 0, 0, .62); }
.br-minimap__canvas { display: block; width: 212px; height: 212px; border-radius: 6px; }
.hud__down { left: 50%; top: 38%; transform: translateX(-50%); display: flex; gap: 12px; align-items: center; font: 400 clamp(1.8rem, 5vw, 3rem) var(--display); text-transform: uppercase; color: var(--bone); text-shadow: 4px 4px 0 var(--blood-deep); }
.hud__down .ico { width: 1.2em; height: 1.2em; color: var(--blood-hot); }

/* ───── telas desktop mais compactas (notebooks 1024-1280px) ───── */
@media (max-width: 1120px) {
	.keys, .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ups--grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-height: 760px) {
	.screen--title { gap: 12px var(--pad); }
	.title__hub { gap: 16px; }
	.brand__logo { font-size: 3.6rem; }
	.index__hero .btn--xl { min-height: 50px; }
	.nav-tile { min-height: 46px; }
}
@media (max-height: 560px) {
	.hud__announce { top: 8vh; }
	.hud__prompt { bottom: 18vh; }
}

/* ───── menos movimento (o JS põe data-motion="reduced"; sem escolha, segue o aparelho) ───── */
@keyframes fade-soft { 0% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
html[data-motion='reduced'] .screen:not([hidden]) > *, html[data-motion='reduced'] .rw, html[data-motion='reduced'] .toast, html[data-motion='reduced'] .hud__prompt.is-pop, html[data-motion='reduced'] .round.is-new .round__mark, html[data-motion='reduced'] .hud.is-low .hud__blood { animation: none; }
html[data-motion='reduced'] .hud__weather.is-on { animation-name: fade-soft; }
html[data-motion='reduced'] .mapcard__skeleton { animation: none; }
html[data-motion='reduced'] .hud__marker.is-hit, html[data-motion='reduced'] .hud__marker.is-head, html[data-motion='reduced'] .hud__marker.is-kill, html[data-motion='reduced'] .hud__announce.is-on, html[data-motion='reduced'] .notice-line, html[data-motion='reduced'] .hurt-arrow.is-on, html[data-motion='reduced'] .float.is-on { animation-name: fade-soft; }
html[data-motion='reduced'] .nav-tile, html[data-motion='reduced'] .btn, html[data-motion='reduced'] .meter > i, html[data-motion='reduced'] .hp > i, html[data-motion='reduced'] .scrim { transition: none; }
html[data-motion='reduced'] .up.is-flash, html[data-motion='reduced'] .wrow.is-flash { animation: none; }
html[data-motion='reduced'] .grenades.is-new, html[data-motion='reduced'] .grenades.is-dry, html[data-motion='reduced'] .hp.is-leech { animation: none; }

/* ───── fase 3: chip da conta e casca das telas novas ───── */
.acctchip { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; max-width: 220px; padding: 0 14px; background: rgba(15, 19, 23, .9); color: var(--bone); border: 1px solid var(--line-hot); border-radius: var(--radius-sm); font: 600 .86rem var(--body); backdrop-filter: blur(8px); transition: background .15s ease, border-color .15s ease; }
.acctchip:hover { background: var(--coal-2); border-color: var(--bone-dim); }
.acctchip.is-in { border-color: var(--bone-dim); }
.acctchip__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acctchip__badge { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; background: var(--blood); color: var(--bone); border: 2px solid var(--night); border-radius: 10px; font: 700 .7rem/1 var(--body); }
.acctchip.is-offline { border-color: var(--blood-hot); }
.screen--feature:not([hidden]) { display: block; }
.fshell__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.fshell__body { display: grid; gap: 14px; justify-items: start; width: min(560px, 100%); margin: 6vh auto 0; padding: clamp(18px, 3vw, 28px); background: var(--coal); border: 1px solid var(--line-hot); border-radius: var(--radius); box-shadow: var(--shadow); }
.fshell__body--error { border-color: var(--blood-hot); }
.fshell__body--error > .ico { width: 36px; height: 36px; color: var(--blood-hot); }
.fshell__title { margin: 0; font: 400 1.7rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.fshell__text { margin: 0; font: 400 .95rem/1.45 var(--body); color: var(--bone-dim); }
.fshell__skel { display: block; width: 70%; height: 18px; border-radius: 4px; background: linear-gradient(100deg, var(--coal-2) 30%, var(--line-hot) 50%, var(--coal-2) 70%) 0 0 / 220% 100%; animation: skeleton 1.4s linear infinite; }
.fshell__skel--wide { width: 100%; height: 26px; }
.fshell__skel--short { width: 40%; }
.setup__maps { min-width: 0; }
html[data-motion='reduced'] .fshell__skel { animation: none; }
.screen[data-busy='true'] { cursor: progress; }
.screen[data-busy='true'] .btn, .screen[data-busy='true'] .wrow, .screen[data-busy='true'] .tab { opacity: .55; pointer-events: none; }
.notice--sync { align-items: center; flex-wrap: wrap; }
.notice--sync > span:nth-child(2) { flex: 1 1 200px; }
html[data-postfx="1"][data-scary="1"] .hud::before { display: none; }

/* ───────── Atalhos do teclado (aba Controles) ───────── */
.keymap { display: grid; gap: 12px; }
.keymap__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.keymap__head .opt-card__title { border-bottom: 0; padding-bottom: 0; }
.keymap__msg { margin: 0; min-height: 1.45em; font: 500 .86rem/1.4 var(--body); border-left: 3px solid var(--bone); padding: 6px 10px; background: var(--night); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.keymap__msg--bad { border-color: var(--blood-hot); }
.keymap__groups { display: block; column-count: 2; column-gap: 28px; }
.keymap__group { break-inside: avoid; margin-bottom: 16px; }
.keymap__gtitle { margin: 0 0 6px; font: 600 .74rem/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--bone-dim); }
.keymap__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.keymap__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 2px 0; border-bottom: 1px dashed var(--line); }
.keymap__row.is-changed .keymap__name { color: var(--bone); font-weight: 600; }
.keymap__name { font: 400 .9rem/1.25 var(--body); color: var(--bone-dim); min-width: 0; }
.keymap__ctl { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.keymap__key { min-width: 96px; min-height: 36px; padding: 0 10px; background: var(--night); border: 1px solid var(--line-hot); border-radius: var(--radius-sm); color: var(--bone); font: 600 .86rem/1 var(--body); text-align: center; transition: border-color .15s ease, background .15s ease; }
.keymap__key:hover { border-color: var(--bone); background: var(--coal-2); }
.keymap__key.is-listening { background: var(--blood-deep); border-color: var(--blood-hot); color: var(--bone); font-size: .8rem; }
.keymap__undo { width: 36px; height: 36px; padding: 0; background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--bone-dim); font-size: 1rem; line-height: 1; }
.keymap__undo.is-off { visibility: hidden; }
.keymap__undo:hover { color: var(--bone); border-color: var(--bone-dim); }

/* ───── a barra do CHEFÃO (2.77.0) ───── */
.hud__boss { left: 50%; top: calc(var(--pad) + 56px); transform: translateX(-50%); width: min(620px, 64vw); display: grid; gap: 4px; --hp: 1; }
.boss__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; text-shadow: 2px 2px 0 #000; }
.boss__name { font: 400 clamp(1.05rem, 2vw, 1.5rem) var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--bone); }
.boss__stage { font: 400 .98rem var(--type); color: var(--blood-hot); min-height: 1.2em; }
.boss__bar { position: relative; height: 16px; background: rgba(7, 9, 12, .82); border: 2px solid var(--bone); box-shadow: var(--shadow-sm); overflow: hidden; }
.boss__fill { position: absolute; inset: 0; transform-origin: left center; transform: scaleX(var(--hp)); background: var(--blood-hot); transition: transform .25s ease-out; }
.boss__tick { position: absolute; top: 0; bottom: 0; left: calc(var(--at) * 100%); width: 2px; margin-left: -1px; background: rgba(0, 0, 0, .75); }
.hud__boss[data-stage='1'] .boss__fill { background: #d4631d; }
.hud__boss[data-stage='2'] .boss__fill { background: #e5a22b; }
.hud__boss[data-stage='3'] .boss__fill { background: #f1e2a0; animation: boss-low .7s steps(2) infinite; }
.hud__boss.is-hit { animation: boss-hit .5s ease-out; }
@keyframes boss-hit { 0% { transform: translateX(-50%) scale(1.07); } 100% { transform: translateX(-50%) scale(1); } }
@keyframes boss-low { 50% { filter: brightness(1.5); } }
html[data-motion='reduced'] .hud__boss.is-hit, html[data-motion='reduced'] .hud__boss .boss__fill { animation: none; transition: none; }

/* ───── a barra de EXTRAÇÃO ───── */
.hud__exfil { left: 50%; top: calc(var(--pad) + 56px); transform: translateX(-50%); width: min(560px, 62vw); display: grid; gap: 4px; --exfil: 0; }
.hud__exfil.is-low { top: calc(var(--pad) + 112px); }
.exfil__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; text-shadow: 2px 2px 0 #000; }
.exfil__title { font: 400 clamp(1rem, 1.9vw, 1.4rem) var(--display); letter-spacing: .04em; text-transform: uppercase; color: #f6d36b; }
.exfil__state { font: 400 .94rem var(--type); color: #b7f5c5; min-height: 1.2em; }
.exfil__bar { position: relative; height: 14px; background: rgba(7, 9, 12, .82); border: 2px solid #f6d36b; box-shadow: var(--shadow-sm); overflow: hidden; }
.exfil__fill { position: absolute; inset: 0; transform-origin: left center; transform: scaleX(var(--exfil)); background: linear-gradient(90deg, #d89b24, #4ce08a); transition: transform .25s ease-out; }
.hud__exfil.is-out .exfil__state { color: #ff8e72; animation: exfil-warn .75s steps(2) infinite; }
.hud__exfil.is-out .exfil__bar { border-color: var(--blood-hot); }
.hud__exfil.is-out .exfil__fill { background: var(--blood-hot); }
@keyframes exfil-warn { 50% { opacity: .45; } }
html[data-motion='reduced'] .hud__exfil.is-out .exfil__state, html[data-motion='reduced'] .exfil__fill { animation: none; transition: none; }

/* Fogo Cruzado: o jogo sem rodada, pontos de compra nem perks */
html[data-mode='deathmatch'] .round, html[data-mode='deathmatch'] .points, html[data-mode='deathmatch'] .perks, html[data-mode='deathmatch'] .hud__powerups { display: none; }

/* ───── Cores para daltonismo ───── */
.cb-filters { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
html[data-colorblind]:not([data-colorblind='off']) #view { filter: var(--cb-filter); }
html[data-slowmo='1']:not([data-postfx='1'])[data-colorblind]:not([data-colorblind='off']) #view { filter: var(--cb-filter) saturate(calc(1 - var(--slowmo, 1) * .74)) contrast(calc(1 + var(--slowmo, 1) * .16)) brightness(calc(1 - var(--slowmo, 1) * .05)); }
html[data-colorblind]:not([data-colorblind='off']) .hud__blood { background: radial-gradient(ellipse at center, transparent 45%, rgba(var(--cb-vignette, 120, 8, 8), .52) 78%, rgba(var(--cb-vignette, 60, 0, 0), .86) 100%), radial-gradient(circle at 6% 10%, rgba(var(--cb-vignette, 100, 0, 0), .7) 0 5%, transparent 14%), radial-gradient(circle at 95% 18%, rgba(var(--cb-vignette, 100, 0, 0), .65) 0 4%, transparent 12%), radial-gradient(circle at 12% 92%, rgba(var(--cb-vignette, 100, 0, 0), .7) 0 6%, transparent 15%), radial-gradient(circle at 90% 88%, rgba(var(--cb-vignette, 100, 0, 0), .65) 0 5%, transparent 13%); }
html[data-colorblind]:not([data-colorblind='off']) .hp.is-serum { border-color: var(--cb-serum, #8bdc2c); box-shadow: 0 0 10px 2px var(--cb-serum, rgba(139, 220, 44, .55)); }
html[data-colorblind='achromatopsia'] .hud__marker.is-kill i { outline: 2px solid #000; }
html[data-colorblind='achromatopsia'] .hurt-arrow::before { outline: 2px solid #000; }

/* ───────── Campo de Tiro (Armeiro) ───────── */
.pause__range { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.pause__range[hidden] { display: none; }
.pause__range .seg { display: flex; }
.pause__range .seg__btn { min-height: 36px; padding: 0 10px; font-size: .82rem; }
.hud__range { margin-top: 8px; padding: 8px 12px; max-width: 360px; background: rgba(7, 9, 12, .78); border: 1px solid var(--line-hot); border-left: 3px solid var(--blood-hot); display: grid; gap: 3px; font: 400 .86rem/1.35 var(--type); color: var(--bone); }
.hud__range[hidden] { display: none; }
.hud__range-head { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; letter-spacing: .06em; }
.hud__range-head svg { width: 16px; height: 16px; color: var(--blood-hot); }
.hud__range-tags { font-size: .78rem; color: var(--bone-dim); }
.hud__range-stat { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hud__range-stat b { font: 400 1.05rem var(--display); color: var(--blood-hot); letter-spacing: .04em; }
.hud__range-hint { margin: 0; font-size: .76rem; color: var(--bone-dim); }
html[data-mode='range'] #hudRound { display: none; }

/* ───────── Modo Foto ───────── */
body[data-photo='1'] .scrim,
body[data-photo='1'] #tools,
body[data-photo='1'] #fps,
body[data-photo='1'] #hud,
body[data-photo='1'] #screenPause { display: none; }
body[data-photo='1'] #view { cursor: grab; }
body[data-photo='1'].is-dragging #view { cursor: grabbing; }
body[data-photo-clean='1'] .photo-bar { display: none; }

.photo-bar {
	position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60;
	width: min(920px, calc(100vw - 24px)); padding: 14px 18px;
	background: rgba(15, 19, 23, .92); border: 1px solid var(--line-hot); border-radius: var(--radius); box-shadow: var(--shadow);
	display: grid; gap: 10px; color: var(--bone); backdrop-filter: blur(10px);
}
.photo-bar[hidden] { display: none; }
.photo-bar__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.photo-bar__title { margin: 0; display: inline-flex; align-items: center; gap: 8px; font: 400 1.05rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.photo-bar__title svg { width: 18px; height: 18px; color: var(--blood-hot); }
.photo-bar__controls { margin: 0; font: 400 .8rem/1.35 var(--body); color: var(--bone-dim); }
.photo-bar__sliders { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 8px 14px; align-items: center; }
.photo-bar__field { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; font: 500 .82rem var(--body); color: var(--bone-dim); }
.photo-bar__field output { min-width: 36px; text-align: right; color: var(--bone); }
.photo-bar__check { display: inline-flex; align-items: center; gap: 8px; font: 500 .85rem var(--body); color: var(--bone); cursor: pointer; }
.photo-bar__check input { width: 18px; height: 18px; accent-color: var(--blood-hot); }
.photo-bar__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.photo-bar__actions .btn { min-height: 38px; padding: 6px 12px; font-size: .86rem; }

.photo-flash { position: fixed; inset: 0; z-index: 80; pointer-events: none; background: #fff; opacity: 0; transition: opacity .28s ease-out; }
.photo-flash.is-on { opacity: .65; transition: none; }
