::selection {
    background: var(--accent-color);
    color: var(--main-bg);
}

#password-input::selection {
    background: #000000;
    color: #ffee00;
}

.footer-info .text-field::selection,
.footer-info .text-footer::selection {
    background: var(--main-bg);
    color: var(--accent-color);
}

::-webkit-scrollbar {
    width: 12px;
    background-color: #000;
}

::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border: 2px solid #000;
}

::-webkit-scrollbar-track {
    background: #000;
}

.japanese-text {
    font-family: "MPLUS1Code", monospace;
}

.text-field a[href],
.text-table a[href],
.text-desc a[href],
.text-field-r a[href]{
    text-decoration: underline;
    text-underline-offset: 2px;
}

.text-field a[href]:hover,
.text-table a[href]:hover,
.text-desc a[href]:hover,
.text-field-r a[href]:hover{
    background-color: var(--accent-color) !important;
    color: var(--main-bg) !important;
    text-decoration: none;
    padding: 0 4px;
    margin: 0 -4px;
}

.text-field a[href]:focus-visible,
.text-table a[href]:focus-visible,
.text-desc a[href]:focus-visible,
.text-field-r a[href]:focus-visible{
    outline: none;
    background-color: var(--accent-color) !important;
    color: var(--main-bg) !important;
    text-decoration: none;
    padding: 0 4px;
    margin: 0 -4px;
}

.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl-attrib span {
    display: none !important;
}

.mapboxgl-ctrl-bottom-right {
    display: none !important;
}

.mapboxgl-ctrl-bottom-left {
    position: relative;
    display: inline-block; /* or block to match layout */
}

.mapboxgl-ctrl-logo {
    display: block;
    /* filter: brightness(0) saturate(100%) invert(83%) sepia(52%) saturate(6743%) hue-rotate(95deg) brightness(119%) contrast(104%); */
}

/* Put k-selector and password modal above CRT overlay */
/* CRT overlay stays below */
.crt-overlay {
    z-index: 10000;
    pointer-events: none;
}

#k-selector,
#k-selector-container,
#password-modal {
    z-index: 10001; /* higher than overlay */
    filter: none !important;
    isolation: isolate;
}