Mudanças entre as edições de "Widget:Character.WeaponToggle"
Ir para navegação
Ir para pesquisar
m |
m (toggle1) |
||
| Linha 1: | Linha 1: | ||
<!-- WEAPON TOGGLE SYSTEM - Estado global + popup --> | <!-- WEAPON TOGGLE SYSTEM - Estado global + popup i18n --> | ||
<script> | <script> | ||
(() => { | (() => { | ||
let modalListenersBound = false; | let modalListenersBound = false; | ||
// Textos i18n para o popup | |||
const i18nTexts = { | |||
pt: { | |||
title: 'Visualização com Arma Especial', | |||
body1: 'Este modo ativa a visualização do personagem equipado com sua <strong>arma especial</strong>.', | |||
body2: 'Algumas habilidades são diferentes enquanto estão com a arma equipada, essas habilidades ficam <strong>destacadas com borda e brilho vermelho</strong>.', | |||
dontShow: 'Não mostrar novamente', | |||
ok: 'Entendi', | |||
weaponLink: 'Ver página da arma:' | |||
}, | |||
en: { | |||
title: 'Special Weapon View', | |||
body1: 'This mode activates the view of the character equipped with their <strong>special weapon</strong>.', | |||
body2: 'Some abilities are different while equipped with the weapon, these abilities are <strong>highlighted with a red border and glow</strong>.', | |||
dontShow: "Don't show again", | |||
ok: 'Got it', | |||
weaponLink: 'View weapon page:' | |||
}, | |||
es: { | |||
title: 'Visualización con Arma Especial', | |||
body1: 'Este modo activa la visualización del personaje equipado con su <strong>arma especial</strong>.', | |||
body2: 'Algunas habilidades son diferentes mientras están con el arma equipada, estas habilidades quedan <strong>destacadas con borde y brillo rojo</strong>.', | |||
dontShow: 'No mostrar de nuevo', | |||
ok: 'Entendido', | |||
weaponLink: 'Ver página del arma:' | |||
}, | |||
pl: { | |||
title: 'Widok z Bronią Specjalną', | |||
body1: 'Ten tryb aktywuje widok postaci wyposażonej w <strong>broń specjalną</strong>.', | |||
body2: 'Niektóre umiejętności różnią się podczas posiadania broni, te umiejętności są <strong>podświetlone czerwoną obwódką i blaskiem</strong>.', | |||
dontShow: 'Nie pokazuj ponownie', | |||
ok: 'Rozumiem', | |||
weaponLink: 'Zobacz stronę broni:' | |||
} | |||
}; | |||
const getCurrentLang = () => { | |||
const html = document.documentElement.lang || 'pt-br'; | |||
const norm = html.toLowerCase().split('-')[0]; | |||
return i18nTexts[norm] ? norm : 'pt'; | |||
}; | |||
const bindModalEvents = () => { | const bindModalEvents = () => { | ||
| Linha 34: | Linha 76: | ||
if (enabled) { | if (enabled) { | ||
el.classList.add('has-weapon-available'); | el.classList.add('has-weapon-available'); | ||
} else { | } else { | ||
el.classList.remove('has-weapon-available'); | el.classList.remove('has-weapon-available'); | ||
| Linha 58: | Linha 94: | ||
}; | }; | ||
const updateModalTexts = (modal) => { | |||
const lang = getCurrentLang(); | |||
const t = i18nTexts[lang]; | |||
const title = modal.querySelector('.weapon-modal-header h3'); | |||
if (title) title.textContent = t.title; | |||
const body = modal.querySelector('.weapon-modal-body'); | |||
if (body) { | |||
const p1 = body.querySelector('p:first-child'); | |||
const p2 = body.querySelector('p:nth-child(2)'); | |||
if (p1) p1.innerHTML = t.body1; | |||
if (p2) p2.innerHTML = t.body2; | |||
} | |||
const checkbox = modal.querySelector('.weapon-modal-checkbox span'); | |||
if (checkbox) checkbox.textContent = t.dontShow; | |||
const btn = modal.querySelector('.weapon-modal-btn'); | |||
if (btn) btn.textContent = t.ok; | |||
// Atualiza link da arma se existir | |||
try { | |||
const firstWithWeapon = document.querySelector('.skill-icon[data-weapon]'); | |||
if (firstWithWeapon) { | |||
const raw = firstWithWeapon.getAttribute('data-weapon'); | |||
const obj = JSON.parse(raw || '{}'); | |||
const nm = (obj && obj.name) ? String(obj.name).trim() : ''; | |||
if (nm) { | |||
const linkHost = (window.mw && mw.util && typeof mw.util.getUrl === 'function') ? mw.util.getUrl(nm) : ('/index.php?title=' + encodeURIComponent(nm)); | |||
const holder = modal.querySelector('.weapon-info-link'); | |||
if (holder) { | |||
holder.style.display = 'block'; | |||
holder.innerHTML = `<a href="${linkHost}" style="color:#FF7043;text-decoration:none;font-weight:600">${t.weaponLink} ${nm}</a>`; | |||
} | |||
} | |||
} | |||
} catch (_) { } | |||
}; | |||
const ensureModal = () => { | const ensureModal = () => { | ||
let modal = document.getElementById('weapon-info-modal'); | let modal = document.getElementById('weapon-info-modal'); | ||
if (modal) return modal; | if (modal) { | ||
updateModalTexts(modal); | |||
return modal; | |||
} | |||
modal = document.createElement('div'); | modal = document.createElement('div'); | ||
modal.id = 'weapon-info-modal'; | modal.id = 'weapon-info-modal'; | ||
| Linha 69: | Linha 147: | ||
<div class="weapon-modal-content"> | <div class="weapon-modal-content"> | ||
<div class="weapon-modal-header"> | <div class="weapon-modal-header"> | ||
<h3> | <h3></h3> | ||
<button class="weapon-modal-close">×</button> | <button class="weapon-modal-close">×</button> | ||
</div> | </div> | ||
<div class="weapon-modal-body"> | <div class="weapon-modal-body"> | ||
<p> | <p></p> | ||
<p> | <p></p> | ||
<p class="weapon-info-link" style="margin-top: | <p class="weapon-info-link" style="margin-top:12px;display:none"></p> | ||
</div> | </div> | ||
<div class="weapon-modal-footer"> | <div class="weapon-modal-footer"> | ||
<label class="weapon-modal-checkbox"> | <label class="weapon-modal-checkbox"> | ||
<input type="checkbox" id="weapon-dont-show"> | <input type="checkbox" id="weapon-dont-show"> | ||
<span> | <span></span> | ||
</label> | </label> | ||
<button class="weapon-modal-btn"> | <button class="weapon-modal-btn"></button> | ||
</div> | </div> | ||
</div> | </div> | ||
`; | `; | ||
document.body.appendChild(modal); | document.body.appendChild(modal); | ||
updateModalTexts(modal); | |||
bindModalEvents(); | bindModalEvents(); | ||
return modal; | return modal; | ||
| Linha 109: | Linha 172: | ||
const showPopup = () => { | const showPopup = () => { | ||
const modal = ensureModal(); | const modal = ensureModal(); | ||
if (modal) modal.classList.add('show'); | if (modal) { | ||
updateModalTexts(modal); // Atualiza textos ao mostrar | |||
requestAnimationFrame(() => { | |||
modal.classList.add('show'); | |||
}); | |||
} | |||
}; | }; | ||
| Linha 124: | Linha 192: | ||
} catch (err) { | } catch (err) { | ||
} | } | ||
// Escuta mudanças de idioma | |||
window.addEventListener('gla:langChanged', () => { | |||
const modal = document.getElementById('weapon-info-modal'); | |||
if (modal) updateModalTexts(modal); | |||
}); | |||
const boot = () => { | const boot = () => { | ||
| Linha 178: | Linha 252: | ||
justify-content: center; | justify-content: center; | ||
opacity: 0; | opacity: 0; | ||
visibility: hidden; | |||
pointer-events: none; | pointer-events: none; | ||
transition: opacity . | transition: opacity .35s ease, visibility .35s ease; | ||
} | } | ||
.weapon-modal.show { | .weapon-modal.show { | ||
opacity: 1; | opacity: 1; | ||
visibility: visible; | |||
pointer-events: all; | pointer-events: all; | ||
} | } | ||
| Linha 190: | Linha 266: | ||
position: absolute; | position: absolute; | ||
inset: 0; | inset: 0; | ||
background: rgba(0, 0, 0, . | background: rgba(0, 0, 0, .6); | ||
-webkit-backdrop-filter: blur( | -webkit-backdrop-filter: blur(8px); | ||
backdrop-filter: blur( | backdrop-filter: blur(8px); | ||
opacity: 0; | |||
transition: opacity .35s ease; | |||
} | |||
.weapon-modal.show .weapon-modal-overlay { | |||
opacity: 1; | |||
} | } | ||
.weapon-modal-content { | .weapon-modal-content { | ||
position: relative; | position: relative; | ||
background: linear-gradient( | background: linear-gradient(145deg, rgba(45, 25, 25, 0.98), rgba(30, 18, 18, 0.98)); | ||
border: 1px solid rgba(255, | border: 1px solid rgba(255, 100, 100, .25); | ||
border-radius: | border-radius: 16px; | ||
max-width: | max-width: 440px; | ||
width: 90%; | width: 90%; | ||
box-shadow: 0 | box-shadow: | ||
0 25px 80px rgba(0, 0, 0, .7), | |||
0 0 40px rgba(255, 80, 80, .15), | |||
inset 0 1px 0 rgba(255, 255, 255, .05); | |||
transform: translateY(20px) scale(0.95); | |||
opacity: 0; | |||
transition: transform .4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity .35s ease; | |||
} | } | ||
.weapon-modal.show .weapon-modal-content { | |||
transform: translateY(0) scale(1); | |||
opacity: 1; | |||
} | } | ||
| Linha 222: | Linha 302: | ||
align-items: center; | align-items: center; | ||
justify-content: space-between; | justify-content: space-between; | ||
padding: | padding: 18px 22px; | ||
border-bottom: 1px solid rgba(255, 255, | border-bottom: 1px solid rgba(255, 100, 100, .15); | ||
background: linear-gradient(90deg, rgba(255, 80, 80, .08), transparent); | |||
} | } | ||
.weapon-modal-header h3 { | .weapon-modal-header h3 { | ||
margin: 0; | margin: 0; | ||
font-size: | font-size: 17px; | ||
font-weight: | font-weight: 700; | ||
color: #fff; | color: #fff; | ||
text-shadow: 0 2px 8px rgba(255, 80, 80, .3); | |||
} | } | ||
.weapon-modal-close { | .weapon-modal-close { | ||
background: | background: rgba(255, 255, 255, .05); | ||
border: | border: 1px solid rgba(255, 255, 255, .1); | ||
color: rgba(255, 255, 255, . | color: rgba(255, 255, 255, .6); | ||
font-size: | font-size: 22px; | ||
cursor: pointer; | cursor: pointer; | ||
padding: 0; | padding: 0; | ||
width: | width: 32px; | ||
height: | height: 32px; | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
border-radius: | border-radius: 8px; | ||
transition: | transition: all .2s ease; | ||
} | } | ||
.weapon-modal-close:hover { | .weapon-modal-close:hover { | ||
background: rgba(255, 255, | background: rgba(255, 80, 80, .2); | ||
color: # | border-color: rgba(255, 80, 80, .4); | ||
color: #FF7043; | |||
transform: rotate(90deg); | |||
} | } | ||
.weapon-modal-body { | .weapon-modal-body { | ||
padding: | padding: 22px; | ||
color: rgba(255, 255, 255, . | color: rgba(255, 255, 255, .85); | ||
line-height: 1. | line-height: 1.7; | ||
font-size: 14px; | font-size: 14px; | ||
} | } | ||
.weapon-modal-body p { | .weapon-modal-body p { | ||
margin: 0 0 | margin: 0 0 14px; | ||
} | } | ||
| Linha 270: | Linha 354: | ||
.weapon-modal-body strong { | .weapon-modal-body strong { | ||
color: # | color: #FF7043; | ||
font-weight: 600; | |||
} | } | ||
| Linha 277: | Linha 362: | ||
align-items: center; | align-items: center; | ||
justify-content: space-between; | justify-content: space-between; | ||
padding: | padding: 16px 22px; | ||
border-top: 1px solid rgba(255, | border-top: 1px solid rgba(255, 100, 100, .12); | ||
background: rgba(0, 0, 0, .15); | |||
border-radius: 0 0 16px 16px; | |||
gap: 12px; | gap: 12px; | ||
} | } | ||
| Linha 285: | Linha 372: | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
gap: | gap: 10px; | ||
font-size: 12px; | font-size: 12px; | ||
color: rgba(255, 255, 255, . | color: rgba(255, 255, 255, .55); | ||
cursor: pointer; | cursor: pointer; | ||
transition: color .2s; | |||
} | |||
.weapon-modal-checkbox:hover { | |||
color: rgba(255, 255, 255, .8); | |||
} | } | ||
.weapon-modal-checkbox input[type="checkbox"] { | .weapon-modal-checkbox input[type="checkbox"] { | ||
accent-color: # | accent-color: #FF5722; | ||
width: 16px; | |||
height: 16px; | |||
} | } | ||
.weapon-modal-btn { | .weapon-modal-btn { | ||
background: # | background: linear-gradient(135deg, #FF5722, #E64A19); | ||
border: none; | border: none; | ||
color: #fff; | color: #fff; | ||
padding: | padding: 12px 28px; | ||
border-radius: | border-radius: 8px; | ||
font-weight: | font-weight: 700; | ||
font-size: | font-size: 14px; | ||
cursor: pointer; | cursor: pointer; | ||
transition: | transition: all .2s ease; | ||
box-shadow: 0 4px 15px rgba(255, 87, 34, .35); | |||
} | } | ||
.weapon-modal-btn:hover { | .weapon-modal-btn:hover { | ||
background: # | background: linear-gradient(135deg, #FF6E40, #FF5722); | ||
transform: translateY(-2px); | |||
box-shadow: 0 6px 20px rgba(255, 87, 34, .45); | |||
} | |||
.weapon-modal-btn:active { | |||
transform: translateY(0); | |||
} | } | ||
| Linha 314: | Linha 415: | ||
.weapon-modal-content { | .weapon-modal-content { | ||
width: 95%; | width: 95%; | ||
margin: 16px; | |||
} | } | ||
| Linha 319: | Linha 421: | ||
.weapon-modal-body, | .weapon-modal-body, | ||
.weapon-modal-footer { | .weapon-modal-footer { | ||
padding: | padding: 14px 18px; | ||
} | } | ||
.weapon-modal-footer { | .weapon-modal-footer { | ||
flex-direction: column; | flex-direction: column; | ||
gap: 14px; | |||
} | |||
.weapon-modal-btn { | |||
width: 100%; | |||
} | } | ||
} | } | ||
</style> | </style> | ||
Edição das 18h00min de 2 de dezembro de 2025
<script>
(() => {
let modalListenersBound = false;
// Textos i18n para o popup
const i18nTexts = {
pt: {
title: 'Visualização com Arma Especial',
body1: 'Este modo ativa a visualização do personagem equipado com sua arma especial.',
body2: 'Algumas habilidades são diferentes enquanto estão com a arma equipada, essas habilidades ficam destacadas com borda e brilho vermelho.',
dontShow: 'Não mostrar novamente',
ok: 'Entendi',
weaponLink: 'Ver página da arma:'
},
en: {
title: 'Special Weapon View',
body1: 'This mode activates the view of the character equipped with their special weapon.',
body2: 'Some abilities are different while equipped with the weapon, these abilities are highlighted with a red border and glow.',
dontShow: "Don't show again",
ok: 'Got it',
weaponLink: 'View weapon page:'
},
es: {
title: 'Visualización con Arma Especial',
body1: 'Este modo activa la visualización del personaje equipado con su arma especial.',
body2: 'Algunas habilidades son diferentes mientras están con el arma equipada, estas habilidades quedan destacadas con borde y brillo rojo.',
dontShow: 'No mostrar de nuevo',
ok: 'Entendido',
weaponLink: 'Ver página del arma:'
},
pl: {
title: 'Widok z Bronią Specjalną',
body1: 'Ten tryb aktywuje widok postaci wyposażonej w broń specjalną.',
body2: 'Niektóre umiejętności różnią się podczas posiadania broni, te umiejętności są podświetlone czerwoną obwódką i blaskiem.',
dontShow: 'Nie pokazuj ponownie',
ok: 'Rozumiem',
weaponLink: 'Zobacz stronę broni:'
}
};
const getCurrentLang = () => {
const html = document.documentElement.lang || 'pt-br';
const norm = html.toLowerCase().split('-')[0];
return i18nTexts[norm] ? norm : 'pt';
};
const bindModalEvents = () => {
if (modalListenersBound) return;
modalListenersBound = true;
document.addEventListener('click', (ev) => {
if (ev.target.closest('.weapon-modal-close') || ev.target.closest('.weapon-modal-btn')) {
const checkbox = document.getElementById('weapon-dont-show');
if (checkbox && checkbox.checked) {
try { localStorage.setItem('glaWeaponPopupDismissed', '1'); } catch (x) { }
}
hidePopup();
return;
}
if (ev.target.classList.contains('weapon-modal-overlay')) {
hidePopup();
}
});
};
const applyWeaponState = (enabled) => {
if (typeof window.__setGlobalWeaponEnabled === 'function') {
window.__setGlobalWeaponEnabled(enabled);
}
try {
localStorage.setItem('glaWeaponEnabled', enabled ? '1' : '0');
} catch (x) { }
document.querySelectorAll('.skill-icon[data-weapon]').forEach(el => {
if (enabled) {
el.classList.add('has-weapon-available');
} else {
el.classList.remove('has-weapon-available');
el.classList.remove('weapon-equipped');
el.style.removeProperty('--weapon-badge-url');
const ind = el.querySelector('.weapon-indicator');
if (ind) ind.remove();
}
});
// Atualiza descrição da skill selecionada (se houver) para refletir estado da arma
setTimeout(() => {
const sel = document.querySelector('.skill-icon.active:not(.weapon-bar-toggle)');
if (sel) {
sel.dispatchEvent(new Event('click', { bubbles: true }));
}
}, 50);
};
const updateModalTexts = (modal) => {
const lang = getCurrentLang();
const t = i18nTexts[lang];
const title = modal.querySelector('.weapon-modal-header h3');
if (title) title.textContent = t.title;
const body = modal.querySelector('.weapon-modal-body');
if (body) {
const p1 = body.querySelector('p:first-child');
const p2 = body.querySelector('p:nth-child(2)');
if (p1) p1.innerHTML = t.body1;
if (p2) p2.innerHTML = t.body2;
}
const checkbox = modal.querySelector('.weapon-modal-checkbox span');
if (checkbox) checkbox.textContent = t.dontShow;
const btn = modal.querySelector('.weapon-modal-btn');
if (btn) btn.textContent = t.ok;
// Atualiza link da arma se existir
try {
const firstWithWeapon = document.querySelector('.skill-icon[data-weapon]');
if (firstWithWeapon) {
const raw = firstWithWeapon.getAttribute('data-weapon');
const obj = JSON.parse(raw || '{}');
const nm = (obj && obj.name) ? String(obj.name).trim() : ;
if (nm) {
const linkHost = (window.mw && mw.util && typeof mw.util.getUrl === 'function') ? mw.util.getUrl(nm) : ('/index.php?title=' + encodeURIComponent(nm));
const holder = modal.querySelector('.weapon-info-link');
if (holder) {
holder.style.display = 'block';
holder.innerHTML = `<a href="${linkHost}" style="color:#FF7043;text-decoration:none;font-weight:600">${t.weaponLink} ${nm}</a>`;
}
}
}
} catch (_) { }
};
const ensureModal = () => {
let modal = document.getElementById('weapon-info-modal');
if (modal) {
updateModalTexts(modal);
return modal;
}
modal = document.createElement('div');
modal.id = 'weapon-info-modal';
modal.className = 'weapon-modal';
modal.innerHTML = `
`;
document.body.appendChild(modal);
updateModalTexts(modal);
bindModalEvents();
return modal;
};
const showPopup = () => {
const modal = ensureModal();
if (modal) {
updateModalTexts(modal); // Atualiza textos ao mostrar
requestAnimationFrame(() => {
modal.classList.add('show');
});
}
};
const hidePopup = () => {
const m = document.getElementById('weapon-info-modal');
if (m) m.classList.remove('show');
};
window.__applyWeaponState = applyWeaponState;
window.__glaWeaponShowPopup = showPopup;
window.__glaWeaponHidePopup = hidePopup;
try {
window.dispatchEvent(new CustomEvent('weapon:ready', { detail: { applyWeaponState, showPopup, hidePopup } }));
} catch (err) {
}
// Escuta mudanças de idioma
window.addEventListener('gla:langChanged', () => {
const modal = document.getElementById('weapon-info-modal');
if (modal) updateModalTexts(modal);
});
const boot = () => {
// Verificar se existe alguma skill com arma
const hasAnyWeapon = document.querySelectorAll('.skill-icon[data-weapon]').length > 0;
if (!hasAnyWeapon) {
// Limpar estado visual para chars sem arma (previne cache entre páginas)
const topRail = document.querySelector('.top-rail.skills');
if (topRail) {
topRail.classList.remove('weapon-mode-on');
}
document.querySelectorAll('.skill-icon.has-weapon-available').forEach(el => {
el.classList.remove('has-weapon-available');
el.classList.remove('weapon-equipped');
el.style.removeProperty('--weapon-badge-url');
const ind = el.querySelector('.weapon-indicator');
if (ind) ind.remove();
});
// Remover botão de toggle se existir
const toggleBtn = document.querySelector('.weapon-bar-toggle');
if (toggleBtn) toggleBtn.remove();
// Atualizar estado global para desligado
if (typeof window.__setGlobalWeaponEnabled === 'function') {
window.__setGlobalWeaponEnabled(false);
}
return;
}
ensureModal();
// Estado inicial do toggle
let init = false;
try {
if (localStorage.getItem('glaWeaponEnabled') === '1') init = true;
} catch (x) { }
setTimeout(() => applyWeaponState(init), 150);
};
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', boot);
} else {
boot();
}
})();
</script> <style>
.weapon-modal {
position: fixed;
inset: 0;
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity .35s ease, visibility .35s ease;
}
.weapon-modal.show {
opacity: 1;
visibility: visible;
pointer-events: all;
}
.weapon-modal-overlay {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, .6);
-webkit-backdrop-filter: blur(8px);
backdrop-filter: blur(8px);
opacity: 0;
transition: opacity .35s ease;
}
.weapon-modal.show .weapon-modal-overlay {
opacity: 1;
}
.weapon-modal-content {
position: relative;
background: linear-gradient(145deg, rgba(45, 25, 25, 0.98), rgba(30, 18, 18, 0.98));
border: 1px solid rgba(255, 100, 100, .25);
border-radius: 16px;
max-width: 440px;
width: 90%;
box-shadow:
0 25px 80px rgba(0, 0, 0, .7),
0 0 40px rgba(255, 80, 80, .15),
inset 0 1px 0 rgba(255, 255, 255, .05);
transform: translateY(20px) scale(0.95);
opacity: 0;
transition: transform .4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity .35s ease;
}
.weapon-modal.show .weapon-modal-content {
transform: translateY(0) scale(1);
opacity: 1;
}
.weapon-modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 18px 22px;
border-bottom: 1px solid rgba(255, 100, 100, .15);
background: linear-gradient(90deg, rgba(255, 80, 80, .08), transparent);
}
.weapon-modal-header h3 {
margin: 0;
font-size: 17px;
font-weight: 700;
color: #fff;
text-shadow: 0 2px 8px rgba(255, 80, 80, .3);
}
.weapon-modal-close {
background: rgba(255, 255, 255, .05);
border: 1px solid rgba(255, 255, 255, .1);
color: rgba(255, 255, 255, .6);
font-size: 22px;
cursor: pointer;
padding: 0;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 8px;
transition: all .2s ease;
}
.weapon-modal-close:hover {
background: rgba(255, 80, 80, .2);
border-color: rgba(255, 80, 80, .4);
color: #FF7043;
transform: rotate(90deg);
}
.weapon-modal-body {
padding: 22px;
color: rgba(255, 255, 255, .85);
line-height: 1.7;
font-size: 14px;
}
.weapon-modal-body p {
margin: 0 0 14px;
}
.weapon-modal-body p:last-child {
margin: 0;
}
.weapon-modal-body strong {
color: #FF7043;
font-weight: 600;
}
.weapon-modal-footer {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 22px;
border-top: 1px solid rgba(255, 100, 100, .12);
background: rgba(0, 0, 0, .15);
border-radius: 0 0 16px 16px;
gap: 12px;
}
.weapon-modal-checkbox {
display: flex;
align-items: center;
gap: 10px;
font-size: 12px;
color: rgba(255, 255, 255, .55);
cursor: pointer;
transition: color .2s;
}
.weapon-modal-checkbox:hover {
color: rgba(255, 255, 255, .8);
}
.weapon-modal-checkbox input[type="checkbox"] {
accent-color: #FF5722;
width: 16px;
height: 16px;
}
.weapon-modal-btn {
background: linear-gradient(135deg, #FF5722, #E64A19);
border: none;
color: #fff;
padding: 12px 28px;
border-radius: 8px;
font-weight: 700;
font-size: 14px;
cursor: pointer;
transition: all .2s ease;
box-shadow: 0 4px 15px rgba(255, 87, 34, .35);
}
.weapon-modal-btn:hover {
background: linear-gradient(135deg, #FF6E40, #FF5722);
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(255, 87, 34, .45);
}
.weapon-modal-btn:active {
transform: translateY(0);
}
@media (max-width: 600px) {
.weapon-modal-content {
width: 95%;
margin: 16px;
}
.weapon-modal-header,
.weapon-modal-body,
.weapon-modal-footer {
padding: 14px 18px;
}
.weapon-modal-footer {
flex-direction: column;
gap: 14px;
}
.weapon-modal-btn {
width: 100%;
}
}
</style>