/* -------------------------------------------------------------------------- */
/* Character CSS                                                              */
/* Purpose: Main style sheet for the character portion of the site            */
/* Changelog: Integrating new styling                                         */
/* Replaced: align-self: end; with align-self: flex-end;                      */
/* -------------------------------------------------------------------------- */

/* ========================== Fonts ========================== */

/* Logo */
@font-face {
    font-family: 'Against Regular';
    src: url('/assets/font/against_regular.otf') format('opentype');
}

/* Headers */
@font-face {
    font-family: 'Apollo';
    src: url('/assets/font/apollo.otf') format('opentype');
}

/* Body */
@font-face {
    font-family: 'Philosopher Regular';
    src: url('/assets/font/philosopher-regular.ttf') format('truetype');
}


/* ========================== Tokens ========================== */

:root {
    /* Font */
    --size: 16px;

    /* Colors */
    --white-rgb: 134,134,134;
    --black-rgb: 0,0,0;
    --true-white-rgb: 255,255,255;

    /* Styling */
    --black-overlay: rgba(var(--black-rgb),0.8);
    --box-shadow: 0 0 7px 0 rgba(var(--true-white-rgb), 0.5);
    --white-drop-shadow: drop-shadow(4px 4px 1px rgba(var(--true-white-rgb), 0.3));

    --white: #D4D4D4;
    --true-white: #fff;
    --grey: #a4a4a4;
    --black: #000;

    /* Gradient Line */
    --gradient-stop-1: rgba(var(--white-rgb),1) 0%;
    --gradient-stop-2: rgba(var(--white-rgb),0) 80%;
    --gradient-stop-3: rgba(var(--white-rgb),0) 100%;

    --fade-left: linear-gradient(270deg, var(--gradient-stop-1), var(--gradient-stop-2));
    --fade-right: linear-gradient(90deg, var(--gradient-stop-1), var(--gradient-stop-2));
    --fade-subheader: linear-gradient(90deg, var(--gradient-stop-1), var(--gradient-stop-3));

    /* .page-main Padding */
    --scrollbar-padding: 10px;

    /* Grid Gap */
    --gap: 90px;

    /* Tag */
    --tip-gap: 8px;
    --icon-size: 24px;
    --tip-bg: linear-gradient(270deg, rgb(var(--black-rgb), 1) 0%, rgba(var(--black-rgb), 0.5) 10%, rgba(var(--black-rgb), 0.2) 50%, rgba(var(--black-rgb), 0) 80%);
    --tip-color: #fff;
    --tag-length: 100px;

    --list-length: 40px;

    --focal-height: 75vh;

    /* Transition */
    --transition: all 0.5s ease-out;
}

/* ========================== Primitives ========================== */

button {
    border: unset;
    background-color: unset;
}

/* ========================== Base ========================== */

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Philosopher Regular', sans-serif;
    position: relative;
    font-size: var(--size);
    color: var(--white);
    background-color: var(--black);
}

/* Background image */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("https://obyr.us/assets/images/obyrusbg.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    pointer-events: none;
    z-index: -1;
}

body.modal-open {
  overflow: hidden;
  /* Prevents scrolling in all browsers */
  /* If you have a custom scrollbar or use overscroll-behavior: */
  overscroll-behavior: contain;
  position: relative; /* Helps prevent iOS scrolling edge cases */
}

@media (min-width: 768px) {
    html, body {
        height: 100%;
    }

    body::before {
        background-size: 110vw;
        background-position: calc(0% - 33vw) 75%;
    }
}

hr {
    background: var(--fade-left);
    height: 1px;
    border: 0;
    opacity: 1;
    width: 100%;
}

/* ========================= Base - Typography ========================= */


h1 {
    font-family: 'Against Regular', sans-serif;
    font-size: clamp(2.3rem, 6vw, 60px);
    filter: drop-shadow(8px 0 2px rgba(var(--white-rgb), 0.2));
    text-shadow: 0 0 4px rgba(var(--white-rgb), 0.8);
    letter-spacing: 2px;
    text-transform: lowercase;
    transition: var(--transition);
}

h2 {
    font-family: 'Apollo', sans-serif;
    text-transform: lowercase;
    font-size: clamp(1.8rem, 4vw, 48px);
    text-shadow: 0 0 4px rgba(var(--white-rgb), 0.8);
    transition: var(--transition);
}

h3 {
    font-family: 'Apollo', sans-serif;
    text-transform: lowercase;
    font-size: clamp(1.5rem, 3vw, 30px);
    letter-spacing: 2px;
    filter: drop-shadow(0 0 3px rgba(var(--white-rgb), 0.5));
    transition: var(--transition);
}

h4 {
    font-family: 'Apollo', sans-serif;
    text-transform: lowercase;
    font-size: 24px;
    color: var(--grey);
    transition: var(--transition);
}

h5 {
    font-family: 'Apollo', sans-serif;
    text-transform: lowercase;
    font-size: 20px;
    color: var(--grey);
    letter-spacing: 2px;
    transition: var(--transition);
}

h6 {
    font-family: 'Apollo', sans-serif;
    text-transform: lowercase;
    font-size: 16px;
    letter-spacing: 2px;
    transition: var(--transition);
}

/* ====================== Layout — Page Structure ====================== */

.page-content {
    padding-top: 50px;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-wrap: wrap;
    background: rgba(var(--black-rgb), 0.8);
}

.page-header {
    position: relative;
    flex: 0 0 auto;
    padding-right: var(--scrollbar-padding);
}

/* START "hr" Fix
 Problem: Padding to compensate for scrollbar misaligns the "hr" of .page-header and .page-main
 Goal: Align the "hr"s
 Fix: Set "hr" to use a ::before pseudo-element, then offset its position with the padding size
*/

.page-header hr {
    background: none;
}

.page-header hr::before {
    content: "";
    position: absolute;
    background: var(--fade-left);
    width: 100%;
    height: 1px;
    right: var(--scrollbar-padding);
}

/* END "hr" Fix */

.page-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.page-main > div {
    background: rgba(var(--black-rgb), 0.8);
}

/* Removes the extra margin below the last <p> */
.page-main > div p:last-child {
    margin-bottom: 0;
}

/* Alternates the hr */
.page-main hr:nth-of-type(odd) {
    background: var(--fade-right);
}

@media (min-width: 768px) {
    .page-content {
        background: unset;
    }
    
    .page-main {
        flex: 1 1 auto;
        overflow-y: auto;
        padding-right: var(--scrollbar-padding);
    }

    .page-utility {
        position: sticky;
        height: fit-content;
        top: 125px;
    }

    .page-header hr::before {
        width: 41.66666667%;
    }
}

/* ====================== Components — Surfaces ====================== */

.styling {
    background: var(--black-overlay);
    box-shadow: var(--box-shadow);
    position: relative;
}

.character-image {
    box-shadow: 0 0 7px 0 rgba(var(--white-rgb), 0.5);
    background: rgba(var(--black-rgb),0.8);
}

.character-image__mask {
    -webkit-mask-image: radial-gradient(circle at center, rgba(var(--black-rgb), 1) 10%, rgba(var(--black-rgb), 0.8) 30%, rgba(var(--black-rgb), 0.3) 75%, rgba(var(--black-rgb), 0.15) 90%);
    mask-image: radial-gradient(circle at center, rgba(var(--black-rgb), 1) 10%, rgba(var(--black-rgb), 0.8) 30%, rgba(var(--black-rgb), 0.3) 75%, rgba(var(--black-rgb), 0.15) 90%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    height: 100%;
}

.character-image__image {
    background-size: cover;
    background-position: center;
    height: 200px;
    opacity: 0.7;
    transition: var(--transition);
}

.character-image__image:hover {
    opacity: 1;
}

.focal-image {
    justify-self: center;
}

.character-image__focal {
    background-size: cover;
    background-position: center;
    height: 150px;
    opacity: 0.85;
    transition: var(--transition);
}

.character-image__focal:hover {
    opacity: 1;
}

@media (min-width: 768px) {
    .focal-image {
        position: sticky;
        height: fit-content;
        top: calc(50vh - (var(--focal-height) / 2));
    }

    .character-image__focal {
        height: var(--focal-height);
    }
    
    .character-image__image {
        height: 250px;
    }
}

/* ====================== Components — Navigation ====================== */

.site-header {
    position: relative;
    height: 150px;
    display: grid;
    width: 100%;
    transition: var(--transition);
}

.site-header__bar-container {
    overflow: hidden;
}

.site-header__bar {
    height: 75px;
    display: grid;
    border-width: 0 0 1px 0;
    z-index: 1;
    background-blend-mode: multiply;
    border-radius: 50px 0 0 50px;
    width: calc(100% + 100px);
    position: relative;
    left: -50px;
    background: var(--black-overlay);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.site-header__logo {
    position: absolute;
    z-index: 2;
    margin-top: 20px;
    justify-self: center;
    transition: var(--transition);

    img {
        height: 125px;
        filter: blur(.4px) invert(1) drop-shadow(0 0 6px rgba(var(--true-white-rgb),0.5));
    }
}

.site-header__brand {
    font-family: 'Against Regular', sans-serif;
    font-size: 2rem;
    filter: var(--white-drop-shadow);
    color: var(--true-white-rgb);
    opacity: 0;
    transition: var(--transition);
}

/* Top navigation */
.nav--secondary {
    color: var(--true-white-rgb);
    position: relative;
    display: flex;
    justify-content: center;
    top: 20px;
}

.nav--secondary .nav__list {
    margin: 0;
    list-style-type: none;
    flex-wrap: wrap;
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    position: relative;
    opacity: 0;
    transition: var(--transition);
}

.nav--secondary .nav__list i {
    filter: drop-shadow(0 0 3px rgba(var(--true-white-rgb), 0.3));
    width: 25px;
    text-align: center;
}

.site-header__nav {
    position: absolute;
    top: 0;
    left: 0;
    height: 75px;
    align-content: center;
}

.nav--primary {
    display: flex;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
    font-family: 'Apollo', sans-serif;
    text-transform: lowercase;
    font-size: 1.5rem;
    box-shadow: 2px 5px 10px rgba(var(--black-rgb), 0.6);
    position: absolute;
    width: calc(100% + 40px);
    transition: var(--transition);
}

.nav--primary .nav__list {
    list-style: none;
    padding: 0;
    width: fit-content;
    opacity: 0;
    transition: var(--transition);
}

.nav--primary .nav__item {
    margin-bottom: .5rem;
}

@media (max-width: 767.98px) {
    .site-header.nav-active {
        height: 475px;
    }
    
    .site-header__bar.nav-active {
        height: 375px;
    }
    
    .nav--secondary .nav__list {
        justify-content: space-evenly;
        width: 100%;
        align-content: end;
        bottom: 0;
    }
    
    .nav--secondary .nav__list .mx-lg-4 {
        display: none;
    }
    
    .nav--secondary .nav__list.nav-active {
        opacity: 1;
        bottom: 90px;
    }
    
    .site-header__logo.nav-active {
        transform: translateY(300px);
    }
    
    .site-header__nav {
        right: 0;
        text-align: center;
        z-index: 1;
    }
    
    .site-header__brand.nav-active {
        opacity: 1;
    }
    
    .nav--primary {
        max-height: 0;
        width: 100%;
        background: linear-gradient(0deg, rgba(var(--black-rgb), 0.6) 90%, rgba(var(--black-rgb), 0) 100%);
    }
    
    .nav--primary.nav-active {
        max-height: 500px;
    }
    
    .nav--primary.nav-active .nav__list {
        opacity: 1;
    }
}

@media (min-width: 768px) {
    .site-header__bar.nav-active {
        transform: translateX(270px);
    }
    
    .site-header__brand.nav-active {
        opacity: 1;
    }
    
    .nav--secondary .nav__list.nav-active {
        transform: translateX(-270px);
        opacity: 1;
    }
    
    .nav--primary {
        height: 0;
    }

    .site-header__nav:hover .nav--primary {
        height: 500px;
    }
    
    .site-header__nav:hover .nav--primary .nav__list {
        opacity: 1;
    }
}

/* ================== Components - Table =================== */

th {
    font-family: 'Apollo', sans-serif;
    text-transform: lowercase;
    font-size: 20px;
    color: var(--grey);
    letter-spacing: 2px;
    font-weight: 500;
    padding: .5rem .5rem;
    text-align: center;
    transition: var(--transition);
}

td {
    padding: .5rem .5rem;
    text-align: center;
}

/* ================== Components - Buttons =================== */

button {
    font-family: 'Apollo', sans-serif;
    text-transform: lowercase;
    font-size: 24px;
    color: var(--grey);
    text-align: center;
    transition: var(--transition);
}

button:hover {
    color: var(--true-white);
}

/* Plain indeterminate spinner for the upload overlay. It makes NO claim about
   how long the upload should take or how much work remains — just "working" —
   because local timing cannot honestly predict production I/O throttling. Unlike
   the removed bar (a static width with no animation, which is what let it read as
   "done" while frozen full), this is a genuine keyframe animation: it runs purely
   from being in the DOM and stops the instant the overlay is removed, so no JS
   drives its visual state. The elapsed-time label beside it is the true number. */
.upload-spinner {
    width: 34px;
    height: 34px;
    margin: 0 auto;
    border: 3px solid rgba(var(--true-white-rgb), 0.15);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: upload-spinner-spin 0.8s linear infinite;
}

@keyframes upload-spinner-spin {
    to { transform: rotate(360deg); }
}

/* ======= Components - Character Uploader / Editor ========= */

.character-editor__section--avatar .crop-preview-container {
  width: 100%;
  aspect-ratio: 333 / 500;    /* aspect ratio of your original size */
  max-width: 333px;           /* stays capped on big screens */
  max-height: 500px;          /* optional, only if you want a cap */
  height: auto;               /* works with aspect-ratio */
}

.character-editor__section--ship .slider-handler {
    display: flex;
    flex-wrap: wrap;
}

.character-editor__section--ship .slider {
    flex: 1 1 0;
}

.character-editor__section--ship .slider__thumb {
    border-radius: 50%;
}

.character-editor__section--ship .slider-handler input[type="text"] {
    width: 60px;
    text-align: center;
}

.character-editor__section--info .character-editor__subcontent > div, .character-editor__section--ship .character-editor__subcontent > div h5 {
    position: relative;
}

.character-editor__section--avatar .slider {
    width: 100%;
    max-width: 333px;
}

.character-editor__section--ship #character-affection-slider-thumb {
    z-index: 1;
}

.character-editor__section--ship #ship-affection-slider-thumb {
    opacity: 0.8;
}

.field-toggle {
    position: absolute;
    top: 5px;
    right: 0;
    cursor: pointer;
}



@media (min-width: 768px) {
    .character-editor__grid {
        display: grid;
        gap: 0 10%;
        grid-template-columns: 3fr 2fr 4fr;
    }
    
    .character-editor__grid > :last-child {
        display: grid;
        gap: 0 10%;
        grid-template-rows: repeat(4, auto) 1fr auto;
    }
    
    .character-editor__section--info .character-editor__subcontent {
        display: grid;
        gap: 10px 50px;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .character-editor__section--designer .character-editor__subcontent, .character-editor__section--acquired .character-editor__subcontent, .character-editor__section--ship .character-editor__subcontent {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 50px;
    }
    
    .character-editor__section--ship .character-editor__subcontent {
        display: grid;
        gap: 15px 50px;
        grid-template-columns: 1fr 1fr;
    }
    
    .character-editor__section--ship .character-editor__subcontent > div {
        grid-column: 1 / -1;
    }
    
    .character-editor__upload-button {
        grid-row: -1;
    }
    
    .character-editor__section--ship .character-editor__subcontent > div > h5 {
        grid-column: 1 / span 2;
    }
    
    .character-editor__section--ship .character-editor__subcontent > :nth-child(1) {
        grid-column: 1;
    }
    
    .character-editor__section--ship .character-editor__subcontent > :nth-child(2) {
        grid-column: 2;
    }
}

/* ================== Components - Image Uploader =================== */

.image-uploader__options {
    background: rgba(var(--black-rgb), 0.8);
    align-content: start;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1920px) {
    .image-uploader__options {
        display: grid;
        gap: 0 10%;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto auto auto;
        grid-template-areas:
        "image image"
        "credit credit"
        "worth featuring"
        "tags tags"
        "folder folder"
        "upload upload";
    }
}

.image-uploader__section--image {
    grid-area: image;
}

.image-uploader__section--credit {
    grid-area: credit;
    margin-bottom: 10px;
}

.image-uploader__section--credit .image-uploader__subcontent {
    display: grid;
    gap: 0 10%;
}

@media (min-width: 768px) {
    .image-uploader__section--credit .image-uploader__subcontent {
        grid-template-columns: repeat(2, 1fr);
    }    
}

.image-uploader__section--worth {
    grid-area: worth;
}

.image-uploader__section--featuring {
    grid-area: featuring;
}

.image-uploader__section--tags {
    grid-area: tags;
}

.image-uploader__section--tags .image-uploader__subheader {
    position: relative;
}

.image-uploader__section--folder {
    grid-area: folder;
}

.image-uploader__upload-button {
    grid-area: upload;
}

.image-uploader__section--tags .image-uploader__explicit-flag {
    position: absolute;
    bottom: 10px;
    right: 0;
}

.image-uploader__section--tags .image-uploader__explicit-flag input[type="checkbox"] + label {
    height: 30px;
}

.image-uploader__section--tags .image-uploader__explicit-flag input[type="checkbox"] + label:before {
    content: '\e000';
    font-family: "Font Awesome Kit";
    font-size: 25px;
    position: unset;
    margin: unset;
    background: unset;
    box-shadow: none;
    opacity: 0.5;
    transition: var(--transition);
}

.image-uploader__section--tags .image-uploader__explicit-flag input[type="checkbox"]:checked + label:before {
    filter: drop-shadow(0 0 3px rgba(255,0,0,1));
    opacity: 1;
}

.image-uploader__section--tags .image-uploader__explicit-flag input[type="checkbox"]:checked + label:after {
    content: '';
}

.image-uploader__section--tags .image-uploader__explicit-flag input[type="checkbox"] + label:hover::before {
    opacity: 1;
}

.image-uploader__section--tags .image-uploader__explicit-flag input[type="checkbox"]:checked + label:hover::before {
    filter: drop-shadow(0 0 5px rgba(var(--true-white-rgb),0.5));
}

.image-uploader__section--image .image-uploader__subcontent {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
}

.image-uploader__folder-management {
    height: 34px;
    align-self: flex-end;
    display: flex;
    justify-content: center;
}

.image-uploader__folder-management h5 {
    align-self: center;
}

.image-uploader__upload-button, .image-uploader__folder-management, .folder-management__create, .character-editor__upload-button, .character-authorization__create-button {
    cursor: pointer;
    transition: var(--transition);
}

.image-uploader__upload-button:hover, .image-uploader__folder-management:hover, .folder-management__create:hover, .character-editor__upload-button:hover, .character-authorization__create-button:hover {
    box-shadow: 0 0 7px 0 rgba(var(--true-white-rgb), 1);
}

.image-uploader__upload-button:hover h4, .image-uploader__folder-management:hover h5, .folder-management__create:hover h5, .character-select__clear-button:hover h4, .character-editor__upload-button:hover h4, .character-authorization__create-button:hover h4 {
    color: var(--true-white);
}

.folder-management__section--create .folder-management__create {
    align-self: flex-end;
}

.folder-name-display {
    transition: var(--transition);
}

.folder-name-display:hover {
    background-color: rgba(var(--white-rgb), 0.1);
}

.folder-management__actions {
    align-content: center;
    position: relative;
}

.folder-save {
    position: absolute;
    left: -35px;
    height: 25px;
    width: 25px;
    font-size: 15px;
    background: rgba(var(--black-rgb),0.8);
    box-shadow: 0 0 7px 0 rgba(var(--true-white-rgb), 0.5);
    filter: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    cursor: pointer;
}

.folder-save:hover {
    filter: drop-shadow(0 0 5px rgba(var(--true-white-rgb),0.5));
}

.folder-management__subcontent li:not(.custom-item) {
    padding-top: 5px!important;
    padding-bottom: 5px!important;
}

.folder-management__subcontent li:not(.custom-item)::before {
    top: 45%!important;
}

.folder-drag-handle {
    cursor: grab;
    height: 25px;
    background: transparent;
    width: var(--list-length);
    position: absolute;
    left: 0;
}

.folder-item {
    transition: all 0.2s ease;
}

.folder-drag-handle:active {
    cursor: grabbing;
}

.folder-item--ghost {
    opacity: 0.3;
}

.folder-item--chosen {
    background-color: rgba(var(--white-rgb), 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.folder-item--drag {
    opacity: 1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transform: rotate(2deg);
}

.image-uploader__sort-controls {
    position: absolute;
    bottom: -30px;
}

@media (min-width: 768px) {
    .image-uploader__section--tags .image-uploader__subcontent, .image-uploader__section--folder .image-uploader__subcontent, .character-editor__section--tags .character-editor__subcontent, .character-editor__section--verse .character-editor__subcontent {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0 10%;
    }
    
    .image-uploader__sort-controls {
        bottom: 0;
    }
    
    .folder-management__section--create .folder-management__subcontent {
        display: grid;
        gap: 0 10%;
        grid-template-columns: repeat(2, 1fr);
    }
}

.image-uploader__sort-controls button {
    transition: var(--transition);
}

.image-uploader__sort-controls button:hover {
    filter: drop-shadow(0 0 2px rgba(var(--true-white-rgb),1));
    color: var(--true-white);
}

.character-image[data-hidden="true"] {
    position: relative;
}

.character-image[data-hidden="true"] .character-image__mask {
    opacity: 0.5;
    transition: var(--transition);
}

.character-image[data-hidden="true"]::after {
    content: '\f070';
    font-family: 'Font Awesome 6 Pro';
    position: absolute;
    font-weight: 300;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25px;
    pointer-events: none;
    transition: var(--transition);
}

.character-image[data-hidden="true"]:hover .character-image__mask {
    opacity: 1;
}

.character-image[data-hidden="true"]:hover::after {
    filter: drop-shadow(0 0 2px rgba(var(--true-white-rgb),1)) drop-shadow(0 0 1px rgba(var(--true-white-rgb),0.5));
}

.character-image--chosen {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}

/* Drag and drop states */
.character-image {
    cursor: pointer;
    user-select: none;
}

.character-image.sortable-active {
    cursor: grab!important;
}

.character-image.sortable-active:active {
    cursor: grabbing!important;
}

/* The placeholder where item was */
.character-image--ghost {
    opacity: 0.3;
    background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.05) 10px,
    rgba(255, 255, 255, 0.05) 20px
    );
}

/* The original slot (slightly faded) */
.character-image--chosen {
    opacity: 0.6;
}

.character-image--drag {
    opacity: 1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transform: rotate(2deg);
}

/* Highlight drop zones when dragging */
.gallery__grid {
    transition: background-color 0.2s ease;
}

.sortable-drag .gallery__grid {
    background-color: rgba(var(--accent-color-rgb), 0.05);
    outline: 2px dashed var(--accent-color);
    outline-offset: -2px;
}

.character-image {
    position: relative;
}

.character-image__delete {
    position: absolute;
    top: 10px;
    right: 10px;
    font-family: "Philosopher Regular", sans-serif;
}

/* ====================== Components - Gallery ====================== */

.gallery__grid {
    display: grid;
    gap: 30px;
    align-items: stretch;
    grid-template-columns: repeat(2, 1fr);
}

.page-main .gallery:first-child {
    padding-top: 5px;
}

.page-main .gallery:last-child {
    padding-bottom: 5px;
}

@media (min-width: 768px) {
    .gallery__grid {
        gap: var(--gap);
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ====================== Components - Modal ====================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.8);
    height: 100%;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-content: center;
}

.modal--character-select {
    z-index: 1001;
}

.modal__header span {
    cursor: pointer;
    transition: var(--transition);
}

.modal__header span:hover {
    color: var(--white);
    filter: drop-shadow(0 0 2px rgba(var(--true-white-rgb),1)) drop-shadow(0 0 1px rgba(var(--true-white-rgb),0.5));
}

.modal__dialog {
    height: 85vh;
    top: 2vh;
    overflow: auto;
}

/* The preview renders a real <img class="image-preview__img"> instead of a
   background-image, so its size is decided declaratively by object-fit. There is
   no post-load JS measuring pass, so no size decision after paint to flash. */
.image-preview__img {
    display: block;
    width: 100%;
    height: 100%;
    /* Shrink a large image to fit (like `contain`) but never upscale a small one. */
    object-fit: scale-down;
    object-position: center;
}

.image-viewer__price {
    position: absolute;
    top: 0;
    left: 0;
    font-family: 'Apollo', sans-serif;
    font-size: 24px;
    letter-spacing: 1px;
    background: linear-gradient(90deg, rgb(var(--black-rgb), 1) 0%, rgba(var(--black-rgb), 0) 80%);
}

.image-viewer__price hr {
    background: var(--fade-right);
    margin: 0;
}

.image-viewer__credit {
    position: absolute;
    bottom: 0;
    right: 0;
    font-family: 'Apollo', sans-serif;
    font-size: 24px;
    letter-spacing: 1px;
    background: linear-gradient(270deg, rgb(var(--black-rgb), 1) 0%, rgba(var(--black-rgb), 0) 80%);
}

.image-viewer__credit hr {
    background: var(--fade-left);
    margin: 0;
}

.image-viewer__tag-list {
    position: absolute;
    top: 3rem;
    right: 0;
    font-size: 24px;
}

.image-viewer__tag {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    padding: 6px;
    overflow: visible;

    i {
        display: inline-block;
        width: var(--icon-size);
        /* used for aligning the decorative lines */
        transition: filter 220ms ease;
        z-index: 3;
        top: -1px;
        position: relative;
    }

    > i, > .image-viewer__tag-label {
        display: inline-block;
    }
}

.image-viewer__tag-label {
    font-size: 16px;
}

.image-viewer__tag > .image-viewer__tag-label {
    position: absolute;
    right: 100%;
    top: 50%;
    transform-origin: 100% 50%;
    transform: translateY(-50%) translateX(6px);
    /* start slightly to the right */
    opacity: 0;
    white-space: nowrap;
    background: var(--tip-bg);
    color: var(--tip-color);
    /* keep existing padding for top/bottom and left, increase right by the extra width */
    padding-top: 6px;
    padding-left: calc(10px + var(--tag-length));
    /* <-- extra width added here */
    padding-bottom: 6px;
    padding-right: 10px;
    border-radius: 4px;
    z-index: 2;
    pointer-events: auto;

    /* NOTE: delay is defined here so the "show" transition is delayed.
     We'll override to remove delay when leaving (so hide is immediate). */
    transition:
    transform 220ms cubic-bezier(.2,.9,.2,1) 120ms,
    opacity 180ms linear 120ms;
}

.image-viewer__tag > .image-viewer__tag-label::before,
.image-viewer__tag > .image-viewer__tag-label::after {
    content: "";
    position: absolute;
    right: calc(-1 * (var(--tip-gap) + var(--icon-size)));
    left: auto;
    width: calc(100% + var(--tip-gap) + var(--icon-size) + 50px);
    height: 1px;
    background: var(--fade-left);
    pointer-events: none;
    opacity: 0;
    transition: opacity 160ms linear 0ms;
    /* no delay — shows immediately */
    box-sizing: border-box;
}

.image-viewer__tag > .image-viewer__tag-label::before {
    top: 0;
}

.image-viewer__tag > .image-viewer__tag-label::after {
    bottom: 0;
}

.image-viewer__tag:hover > .image-viewer__tag-label::before,
.image-viewer__tag:hover > .image-viewer__tag-label::after {
    opacity: 1;
    transition-delay: 0s;
    /* ensure no extra delay on show */
}

.image-viewer__tag:hover > .image-viewer__tag-label {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
    /* remove delay while hovered so the reverse transition (hide) doesn't wait */
    transition:
    transform 220ms cubic-bezier(.2,.9,.2,1) 0ms,
    opacity 180ms linear 0ms;
}

.image-viewer__tag:hover > .image-viewer__tag-icon {
    filter: drop-shadow(0 0 2px rgba(var(--true-white-rgb),1)) drop-shadow(0 0 1px rgba(var(--true-white-rgb),0.5));
}

.image-viewer__controls {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(var(--black-rgb),0.8);
    height: 20%;
    width: 100%;
    margin: auto;
    align-content: center;
    text-align: center;
    font-size: 24px;
    opacity: 0;
    transition: var(--transition);

    i {
        filter: none;
        cursor: pointer;
        transition: var(--transition);
    }
}

.image-preview:hover .image-viewer__controls {
    opacity: 1;
}

.image-viewer__controls i:hover {
    filter: drop-shadow(0 0 2px rgba(var(--true-white-rgb),1)) drop-shadow(0 0 1px rgba(var(--true-white-rgb),0.5));
}

.image-editor__grid {
    display: grid;
    gap: 0 5%;
}

.image-editor__grid > :nth-child(6) {
    display: flex;
    flex-direction: column;
    height: 100%;

}

.image-editor__subheader hr, .character-select__subheader hr, .image-uploader__subheader hr, .folder-management__subheader hr, .character-authorization__subheader hr {
    background: var(--fade-subheader);
}

.image-viewer__tag-icon.fa-tablets, .image-viewer__tag-icon.fa-person-harassing {
    font-size: 18px;
}

.add-character, .add-image {
    height: 25px;
    width: 25px;
    position: absolute;
    right: 0;
    top: -5px;
    background: #ccc;
    color: var(--black);
    filter: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    cursor: pointer;
}

@media (min-width: 768px) {
    .image-viewer__tag-list {
        top: -3rem;
        right: -3rem;
    }
    
    .image-editor__grid {
        grid-template-columns: repeat(4, 1fr);
    
        > :nth-child(5), > :nth-child(6) {
            grid-column: span 2;
        }
    }
    
    .add-character, .add-image {
        top: 5px;
        right: 15px;
    }
}

.add-character:hover, .add-image:hover {
    filter: drop-shadow(0 0 5px rgba(var(--true-white-rgb),0.5));
}

.character-editor__section--ship .add-character {
    top: 0;
    right: 5px;
    height: 20px;
    width: 20px;
}

.image-editor__subcontent ul:not(.custom-drop), .character-select__subcontent ul:not(.custom-drop), .image-uploader__subcontent ul:not(.custom-drop), .character-editor__subcontent ul:not(.custom-drop), .character-authorization__subcontent ul:not(.custom-drop) {
    list-style: none;
    padding: 0;
    margin: 0;
    height: 150px;
    overflow: auto;
}

.image-uploader__subcontent ul:not(.custom-drop) {
    height: 100px;
}

.image-editor__subcontent li:not(.custom-item), .character-select__subcontent li:not(.custom-item), .image-uploader__subcontent li:not(.custom-item), .folder-management__subcontent li:not(.custom-item), .character-editor__subcontent li:not(.custom-item), .character-authorization__subcontent li:not(.custom-item) {
    position: relative;
    padding-left: calc(var(--list-length) + 5px);
    font-size: 18px;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
}

.image-editor__subcontent li:not(.custom-item)::before, .character-select__subcontent li:not(.custom-item)::before, .image-uploader__subcontent li:not(.custom-item)::before, .folder-management__subcontent li:not(.custom-item)::before, .character-editor__subcontent li:not(.custom-item)::before, .character-authorization__subcontent li:not(.custom-item)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 35%;
    width: var(--list-length);
    height: 1px;
    background: var(--fade-right);
    pointer-events: none;
}

.delete {
    height: 25px;
    width: 25px;
    background: rgba(var(--black-rgb),0.8);
    box-shadow: 0 0 7px 0 rgba(var(--true-white-rgb), 0.5);
    filter: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    transition: var(--transition);
    cursor: pointer;
}

.delete span {
    height: 12.5px;
    width: 12.5px;
    line-height: .3;
    filter: none;
    transition: var(--transition);
}

.delete:hover {
    filter: drop-shadow(0 0 5px rgba(var(--true-white-rgb),0.5));
}

.delete:hover span {
    filter: drop-shadow(0 0 1px rgba(var(--true-white-rgb),0.5));
}

.image-editor__section--visibility .image-editor__subcontent .col-12, .character-select__section--owner .character-select__subcontent .col-12, .character-select__section--shipped .character-select__subcontent .col-12, .character-select__section--verse .character-select__subcontent .col-6 {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    padding-bottom: 10px;
}

.image-editor__section--visibility h5 {
    margin-bottom: 0;
    line-height: 1.5;
}

.custom-drop {
    position: absolute!important;
    /* To remove it from the flow */
    top: 1px;
    /* Small separation from input element */
    background: rgba(var(--black-rgb),0.8);
    box-shadow: 0 0 7px 0 rgba(var(--true-white-rgb), 0.5);
    width: 100%;
    padding: .25rem 0;
    transition: var(--transition);
}

.custom-drop li {
    position: relative;
    font-size: 18px;
    letter-spacing: 1px;
    padding: 5px 1rem;
    text-shadow: none;
    cursor: pointer;
    background: rgba(var(--black-rgb),0.8);
    transition: var(--transition);
}

.custom-drop li::before {
    content: "";
    position: absolute;
    bottom: 0;
    background: var(--fade-right);
    width: 90%;
    height: 1px;
    opacity: 0;
    transition: var(--transition);
}

.custom-drop li:hover {
    text-shadow: 0 0 5px rgba(var(--true-white-rgb),0.8);
}

.custom-drop li:hover::before {
    opacity: 1;
}

.image-editor__section--tags .custom-drop, .image-uploader__section--tags .custom-drop {
    height: 150px;
}

.image-uploader__section--folder .custom-drop {
    height: 100px;
}

.image-editor__section--tags .image-editor__subcontent {
    display: flex;
    flex-wrap: wrap;
}

.image-editor__section--preview .image-editor__subcontent {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
}

.image-editor__section--preview .image-preview {
    flex: 1 1 0;
    min-height: 35vh;
}

.modal--character-select > .modal__dialog > .col-12.flex-wrap {
    display: flex;
    height: calc(85vh - 80px);
}

.character-select__grid {
    height: 100%;
    container-type: size;
}

.character-select__grid [data-overlayscrollbars-viewport] {
    display: grid;
    grid-template-columns: 1fr;
    padding: 15px!important;
    height: 100%;
    gap: 50px 45px;
}

@media (min-width: 992px) {
    /* Bootstrap's lg breakpoint */
    .character-select__grid [data-overlayscrollbars-viewport] {
        grid-template-columns: repeat(3, 1fr);
        /* Desktop: 3 columns */

        /* Your existing height calculations */
        --available-height: calc(100% + 10px);
        --gap-size: 50px;
        --item-height: calc((var(--available-height) - var(--gap-size)) / 2);
        grid-auto-rows: var(--item-height);
    }
}

.character-select__grid .character-image {
    height: 100%;
    width: 100%;
}

.character-select__grid .character-image__image {
    height: 200px;
    opacity: 1;
}

.character-image__image h4 {
    color: #e8e8e8;
    letter-spacing: 2px;
    margin-bottom: 0;
    text-align: center;
}

.character-image__image hr {
    background: linear-gradient(90deg, rgba(var(--white-rgb),0) 10%, rgba(var(--true-white-rgb),1) 45%, rgba(var(--true-white-rgb),1) 55%, rgba(var(--white-rgb),0) 90%)!important;
}

.character-select__overlay {
    display: flex;
    opacity: 0;
    background: rgba(var(--black-rgb),0.8);
    height: 100%;
    width: 100%;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    transition: var(--transition);
}

.character-image__image:hover .character-select__overlay {
    opacity: 1;
}

.character-select__overlay a {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.character-select__filters {
    align-content: start;
    display: grid;
    gap: 0 20%;
    grid-template-rows: auto auto auto 1fr;
    height: 100%;
    overflow: auto;
}

.character-select__clear-button {
    align-self: flex-end;
    cursor: pointer;
    transition: var(--transition);
}

.character-select__clear-button:hover {
    box-shadow: 0 0 7px 0 rgba(var(--true-white-rgb), 1);
}

@media (min-width: 768px) {
    .character-select__filters {
        grid-template-columns: repeat(2, 2fr);
    }
    
    .character-select__filters > *:nth-child(n + 3) {
        grid-column: span 2;    
    }
    
    .character-select__grid .character-image__image {
        height: 100%;
    }
}

/* ================== Components - Authorization =================== */

.character-authorization__section--new-key__options .character-authorization__subcontent {
    display: flex;
    flex-wrap: wrap;
}

.character-authorization__section--new-key__options .character-authorization__subcontent .col-6 {
    display: flex;
    justify-content: end;
}

.character-authorization__subcontent table input[type="text"] {
    cursor: pointer;
}

.edit {
    height: 25px;
    width: 25px;
    background: rgba(var(--black-rgb),0.8);
    box-shadow: 0 0 7px 0 rgba(var(--true-white-rgb), 0.5);
    filter: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    transition: var(--transition);
    cursor: pointer;
}

.edit span {
    height: 12.5px;
    width: 12.5px;
    line-height: .3;
    filter: none;
    transition: var(--transition);
}

.edit i {
    font-size: 13px;
}

.edit:hover {
    filter: drop-shadow(0 0 5px rgba(var(--true-white-rgb),0.5));
}

.edit:hover span {
    filter: drop-shadow(0 0 1px rgba(var(--true-white-rgb),0.5));
}

/* ========================== Form Control ========================== */

input[type="text"] {
    background: rgba(var(--black-rgb),0.8);
    box-shadow: 0 0 7px 0 rgba(var(--true-white-rgb), 0.5);
    border: 0;
    padding: 5px 10px;
    width: 100%;
    color: var(--white);
    transition: var(--transition);
}

input[type="text"]:focus-visible {
    outline: none;
    box-shadow: 0 0 7px 0 rgba(var(--true-white-rgb), 1);
}

input[type="checkbox"] {
    display: none;
}

/* Create a custom checkbox */
input[type="checkbox"] + label {
    position: relative;
    cursor: pointer;
    user-select: none;
    height: 25px;
    width: 25px;
}

/* Style the custom checkbox */
input[type="checkbox"] + label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    margin-left: 10px;
    width: 25px;
    height: 25px;
    background: rgba(0,0,0,0.8);
    box-shadow: 0 0 7px 0 rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

/* Style the checked state */
input[type="checkbox"]:checked + label:before {
    background: rgba(0,0,0,0.8);
}

/* Style the checkmark */
input[type="checkbox"]:checked + label:after {
    content: '\f00c';
    /* Font Awesome unchecked checkbox icon */
    font-family: "Font Awesome 5 Pro";
    font-weight: 400;
    color: var(--white);
    position: absolute;
    left: 22.5px;
    /* 10px margin-left + half width of box (25px/2) */
    top: 50%;
    font-size: 15px;
    transform: translate(-50%, -50%);
}

input[type="checkbox"] + label:hover::before {
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
}

input[type="checkbox"]:checked + label:hover::before {
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
}

input[type="range"] {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.slider {
    width: 200px;
    height: 30px;
    position: relative;
    user-select: none;
    cursor: pointer;
}

.slider__track {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 15px;
    background: var(--black-overlay);
    box-shadow: var(--box-shadow);
    transform: translateY(-50%);
}

.slider__thumb {
    position: absolute;
    top: 50%;
    width: 13px;
    height: 13px;
    background: var(--true-white);
    transform: translate(-50%, -50%);
    transition: box-shadow .1s;
}

.slider__thumb:active, .slider__thumb.slider__thumb--dragging {
    box-shadow: var(--box-shadow);
}

.custom-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
    z-index: 10;
}

.custom-item--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    font-style: italic;
    pointer-events: none;
}

.custom-item--clear {
    opacity: 0.5;
    font-style: italic;
}

/* ========================== Primitives ========================== */

.text-right {
    text-align: right;
}

.flex-wrap {
    display: flex;
}

/* =========================== Cropper =========================== */

.crop-preview-container {
    width: 200px;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.crop-preview-container img {
    display: block;
    max-width: 100%;
}

.cropper-crop-box {
    display: none!important;
}

.cropper-view-box {
    outline: none!important;
}

.cropper-modal {
    opacity: 0!important;
}

/* ====================== OverlayScrollbars ====================== */

.page-main {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

.page-main::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.os-theme-dark .os-scrollbar-handle, .os-theme-dark .os-scrollbar-handle:hover {
    background: linear-gradient(180deg,rgba(var(--white-rgb), 0) 0%, rgba(var(--white-rgb), 1) 50%, rgba(var(--white-rgb), 0) 100%);
}

.os-scrollbar-vertical .os-scrollbar-handle {
    width: 3px;
}

.custom-drop .os-scrollbar-vertical .os-scrollbar-handle, #tags-list .os-scrollbar-vertical .os-scrollbar-handle {
    width: 2px;
}

.custom-drop .os-scrollbar-vertical .os-scrollbar-handle:hover, #tags-list .os-scrollbar-vertical .os-scrollbar-handle:hover {
    width: 3px;
}

.contents .os-viewport, .scroller .os-viewport, .contents [data-overlayscrollbars-viewport], .scroller [data-overlayscrollbars-viewport] {
    padding-right: 15px!important;
}

.image-editor__section--tags .scroller [data-overlayscrollbars-viewport], .character-select__section--tags .scroller [data-overlayscrollbars-viewport], .image-uploader__section--tags .scroller [data-overlayscrollbars-viewport], .character-editor__section--tags [data-overlayscrollbars-viewport], .character-authorization__section--tags .scroller [data-overlayscrollbars-viewport] {
    padding-top: 5px!important;
}




#editable-content {
    overflow: auto;
    max-width: 100%;
    max-height: 100%;
    background: #07121c;
}

a {
    color: #fff;
    text-decoration: none;
}

a:hover {
    animation: pulse-glow 2s infinite;
    /* Increase duration */
}

@keyframes pulse-glow {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
        /* Reduce initial glow */
    }
    50% {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
        /* Increase glow intensity */
    }
    100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
        /* Reduce final glow */
    }
}

.character-info {
    justify-content: center;
    display: flex;
    h1 {
        align-self: center;
    }
}

/* ============================================================
   Multi-version upload extender (version-uploader.js)
   ============================================================ */
.version-mode-toggle {
    height: 25px;
    width: 25px;
    position: absolute;
    right: 30px;
    top: -5px;
    background: #ccc;
    color: var(--black);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    cursor: pointer;
}

@media (min-width: 768px) {
    .version-mode-toggle {
        top: 5px;
        right: 45px;
    }
}

.version-mode-toggle:hover {
    filter: drop-shadow(0 0 5px rgba(var(--true-white-rgb),0.5));
}

.version-mode-toggle[data-active="true"] {
    background: var(--black);
}

.version-mode-toggle[data-active="true"] svg line {
    stroke: var(--true-white);
}

.version-uploader__slots {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 0 0.5rem;
}

.version-slot {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.version-slot__controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    min-height: 22px;
}

.version-slot__add,
.version-slot__remove,
.version-slot__controls .add-image {
    position: static;
    top: auto;
    right: auto;
    height: 22px;
    width: 22px;
    background: #ccc;
    color: var(--black);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.version-slot__add:hover,
.version-slot__remove:hover,
.version-slot__controls .add-image:hover {
    filter: drop-shadow(0 0 5px rgba(var(--true-white-rgb),0.5));
}


/* ============================================================
   Grouped-image slideshow rail + Main/default checkbox hint
   ============================================================ */
.image-modal__body {
    display: flex;
    gap: 0.75rem;
    min-height: 0;
    align-items: stretch;
}

.image-modal__slideshow {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
	position: absolute;
	height: 100%;
	width: 95px;
	padding: 15px;
	padding-top: 100px;
	top: 0;
	left: 0;
	background: rgba(var(--black-rgb), 0.8);
}

.version-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    box-sizing: border-box;
    flex: 0 0 auto;
}

.version-thumb__image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.version-thumb--current {
    border-color: var(--true-white);
}
.version-thumb--hidden .version-thumb__image {
    opacity: 0.35;
}

.version-thumb--default::after {
  content: '';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  background: var(--true-white);
  border-radius: 100%;
  pointer-events: none;
  animation: dot-pulse-glow 2.6s ease-in-out infinite;
}

.version-thumb--default::before {
  content: '';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 1px solid var(--true-white);
  opacity: 0;
  pointer-events: none;
  animation: dot-pulse-ring 2.6s ease-in-out infinite;
}

@keyframes dot-pulse-glow {
  0%, 100% {
    opacity: 0.35;
    box-shadow: 0 0 2px 0px rgba(255, 255, 255, 0.35);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.85);
  }
}

@keyframes dot-pulse-ring {
  0%, 45% {
    transform: scale(1);
    opacity: 0;
  }
  50% {
    transform: scale(1);
    opacity: 0.6;
  }
  85% {
    transform: scale(2.2);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}