/* Shared login structure at every viewport, independent of theme colours. */
html body .modal.open{z-index:1300;overflow-y:auto}
html body .modal-card{box-sizing:border-box;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
html body .modal-card .password-wrap{position:relative;display:block}
html body .modal-card .password-wrap input{padding-right:40px}
html body .modal-card .toggle-pass{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:32px;height:30px;padding:0;border:0;background:transparent;color:var(--mt-input-text,#444);display:grid;place-items:center}
html body .modal-card .captcha-row{display:flex;align-items:center;gap:6px;min-width:0}
html body .modal-card .captcha-row input{width:0;flex:1 1 0;min-width:0}
html body .modal-card .captcha-row img{width:100px;max-width:40%;height:36px;object-fit:contain;flex:0 0 auto}
html body .modal-card .refresh-captcha{flex:0 0 28px;width:28px;border:0;padding:0;background:transparent;color:var(--mt-form-text,#fff);font-size:23px;line-height:1}
html body .modal-card .register-link{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:36px;padding:8px 12px;border-radius:5px;margin-top:14px;text-decoration:none}
html body .modal-card input:focus-visible{outline:2px solid var(--mt-focus,#ff9a0b);outline-offset:1px}

html body.igp-finance-page{--mt-form-bg:#ffffff;--mt-form-text:#4c4c4c;--mt-input-bg:#f3f3f3;--mt-input-text:#444444;--mt-input-border:#e9e9e9;--mt-input-scheme:light}
html body.igp-finance-page[class] .app-shell,html body.igp-finance-page[class] .igp-lite-page,html body.igp-finance-page[class] .igp-card,html body.igp-finance-page[class] .igp-withdraw-body{background:#ffffff!important;color:#4c4c4c!important}
/* Avoid a horizontal scrollbar or a mismatched border flashing under navigation. */
html body .category-nav,html body .igp-reg-home-nav,html body #igp-deposit-category-nav,html body .igp-ref-nav{overflow-y:hidden!important;scrollbar-width:none!important;border-top:0!important;border-bottom:0!important;box-shadow:none!important}
html body .category-nav::-webkit-scrollbar,html body .igp-reg-home-nav::-webkit-scrollbar,html body #igp-deposit-category-nav::-webkit-scrollbar,html body .igp-ref-nav::-webkit-scrollbar{display:none!important;height:0!important}

html body.igp-finance-page[class]{background:#ffffff!important;color:#4c4c4c!important}

/* Keep the two game filters visible even when the palette uses similar colours. */
html body .filters .filter-row button{box-sizing:border-box;border:1px solid var(--mt-filter-border,#555555)!important;border-radius:5px;background:var(--mt-filter-bg,#191a1c)!important;color:var(--mt-filter-text,#eeeeee)!important;cursor:pointer}
html body .filters .filter-row button:focus-visible{outline:2px solid var(--mt-focus,#ff9a0b);outline-offset:2px}

html body .filters .filter-row button{display:flex;align-items:center;justify-content:flex-start!important;height:var(--mt-filter-height,28px)!important;min-height:var(--mt-filter-height,28px)!important;padding:0 28px 0 12px!important;font-size:0!important}
html body .filters .filter-row button>span:first-child{font-size:var(--mt-filter-font-size,12px)!important;line-height:1.2}
html body .filters .filter-row button::after{border-color:var(--mt-filter-text,#eeeeee)!important}

html body .filters .filter-row button{position:relative}
html body .filters .filter-row button::after{content:"";position:absolute;right:12px;top:calc(50% - 4px);width:6px;height:6px;border-right:2px solid var(--mt-filter-text,#eee);border-bottom:2px solid var(--mt-filter-text,#eee);transform:rotate(45deg)}
