/* Угловатое игровое меню вместо системного бело-синего popup Windows. */
.malum-select { position: relative; width: 100%; min-width: 0; color: var(--color-text); text-transform: none; }
.malum-select__native { position: absolute !important; width: 1px !important; height: 1px !important; margin: 0 !important; padding: 0 !important; opacity: 0 !important; pointer-events: none !important; }
.malum-select__trigger { position: relative; width: 100%; min-height: var(--control-height); border: 1px solid #705a2c; padding: 0 46px 0 14px; overflow: hidden; color: #f2f4f7; background: linear-gradient(180deg, #14202a, #0b1117); font: inherit; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px); transition: border-color var(--speed-fast), background var(--speed-fast), color var(--speed-fast); }
.malum-select__trigger:hover { border-color: #9a7a39; background: linear-gradient(180deg, #1b2a35, #101820); }
.malum-select__trigger:focus-visible { outline: 2px solid #e3c66e; outline-offset: 2px; }
.malum-select.is-open .malum-select__trigger { border-color: #e3c66e; color: #ffe7a5; background: linear-gradient(180deg, #1c2730, #0c141b); }
.malum-select__value { display: block; overflow: hidden; text-overflow: ellipsis; }
.malum-select__ornament { position: absolute; top: 50%; right: 15px; width: 13px; height: 13px; border-right: 2px solid #d7b85c; border-bottom: 2px solid #d7b85c; transform: translateY(-68%) rotate(45deg); transition: transform var(--speed-fast); }
.malum-select.is-open .malum-select__ornament { transform: translateY(-30%) rotate(225deg); }
.malum-select__menu { position: absolute; z-index: 90; top: calc(100% + 5px); left: 0; width: max(100%, 240px); max-height: min(320px, 52vh); overflow: auto; border: 1px solid #8b6b28; padding: 6px; background: linear-gradient(155deg, rgba(18,28,35,.99), rgba(5,10,14,.995)); box-shadow: 0 18px 45px rgba(0,0,0,.62), inset 0 1px rgba(255,226,122,.08); clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px); }
.malum-select__menu[hidden] { display: none; }
.malum-select__option { display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: center; width: 100%; min-height: 42px; border: 0; border-bottom: 1px solid rgba(112,90,44,.28); padding: 7px 12px; color: #c2cad5; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.malum-select__option:last-child { border-bottom: 0; }
.malum-select__option > span { width: 7px; height: 7px; border: 1px solid #705a2c; transform: rotate(45deg); }
.malum-select__option:hover, .malum-select__option:focus-visible { color: #f2f4f7; background: linear-gradient(90deg, rgba(200,161,74,.16), rgba(27,38,50,.45)); outline: none; }
.malum-select__option.is-selected { color: #ffe7a5; background: linear-gradient(90deg, rgba(200,161,74,.29), rgba(10,24,31,.72)); box-shadow: inset 3px 0 #c8a14a; }
.malum-select__option.is-selected > span { border-color: #ffe27a; background: #c8a14a; box-shadow: 0 0 0 2px rgba(200,161,74,.13); }
.malum-select__option:disabled { color: #7f8a98; opacity: .55; cursor: default; }
@media (max-width: 600px) { .malum-select__menu { width: 100%; min-width: 0; max-height: 46vh; } .malum-select__option { min-height: 48px; } }
@media (prefers-reduced-motion: reduce) { .malum-select__ornament, .malum-select__trigger { transition: none; } }
