:root {
    --primary: #3c2415;
    --secondary: #4e3828;
    --accent: #8b4513;
    --background: #f2e8c9;
    --border: #8d6e50;
    --text: #2c1810;
    --shadow: 0 2px 6px rgba(44, 24, 16, 0.3);
    --header-bg: #e6d5ac;
    --item-hover: #fff8e8;
    --card-bg: #fffaed;

    --scarce: #56a73d;
    --rare: #2c6fb2;
    --exotic: #971bbd;

    --success: #496b3d;
    --error: #8b3a3a;
    --border-decoration: #745c44;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-image: repeating-linear-gradient(45deg, rgba(122, 95, 65, 0.05) 0px, rgba(122, 95, 65, 0.05) 1px, transparent 1px, transparent 11px);
}

.header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: var(--header-bg);
    background-image: repeating-linear-gradient(45deg, rgba(122, 95, 65, 0.05) 0px, rgba(122, 95, 65, 0.05) 1px, transparent 1px, transparent 11px);
    margin: 20px 40px;
    padding: 20px 30px 25px;
    box-shadow: var(--shadow);
    position: relative;
    border-radius: 8px;
    font-size: 28px;
    border: 1px solid var(--border-decoration);
    font-weight: bold;
}

.header > img {
    width: 110px;
    object-fit: contain;
    margin-right: 15px;
    vertical-align: middle;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

/*.header>div {*/
/*  display: inline-block;*/
/*  vertical-align: middle;*/
/*  padding-right: 10px;*/

/*}*/


.header > div:first-of-type {
    display: inline-block;
    vertical-align: middle;
    transform: translateY(-30px);
    font-size: 32px;
    padding-right: 10px;
}


/*.header>div:not(:first-of-type) {*/
/*  display: inline-block;*/
/*  vertical-align: middle;*/
/*  padding-right: 10px;*/
/*}*/

.other-side {
    position: relative;
    display: block;
    /*margin-top: -45px;*/
    /*margin-left: 125px;*/
    font-size: 15px;
    text-decoration: none;
    color: var(--primary);
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.3s;
    width: fit-content;
}

.other-side:hover {
    background: rgba(255, 255, 255, 0.5);
}

.header > div.right {
    float: right;
    margin-right: 15px;
}

.header select {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.7);
    font-family: inherit;
}

.auth-links {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 120px;
    padding-bottom: 15px;
    z-index: 10;
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
    border: 1px solid var(--border);
    text-align: center;
    margin-left: 0;
    display: block;
}

.auth-links a:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}


.header > div.right {
    margin-right: 100px;

}


.main-container {
    margin: 0 auto;
    margin-bottom: 60px;
    max-width: 1400px;
    padding: 0 10px;

    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}


.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.category {
    position: relative;
    display: inline-block;
    vertical-align: top;
    margin: 0;
    padding: 18px;
    border-left: 3px solid var(--border);
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    min-width: 230px;
    flex: 1 0 230px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 1px solid var(--border-decoration);
    border-right: 1px solid var(--border-decoration);
    border-bottom: 1px solid var(--border-decoration);
}


.category:nth-child(2) {
    min-width: 180px;
    flex: 0 0 190px;
    margin-bottom: 10px;
}

.category:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(44, 24, 16, 0.25);
}

.title {
    display: inline-block;
    margin-right: 8px;
    font-weight: bold;
    font-size: 1.05em;
    color: var(--primary);
}

.checkbox {
    display: inline-block;
    cursor: pointer;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    margin: 0 4px;
    position: relative;
}

.checkbox.unchecked:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid var(--primary);
    border-radius: 4px;
    background: transparent;
}

.checkbox.checked:after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid var(--primary);
    border-radius: 4px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}


.category > div > .title {
    border-bottom: 1px solid var(--border);
    padding-bottom: 5px;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.subtype {
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 6px;
    width: fit-content;
    display: inline-block;
    margin: 4px;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.subtype:hover {
    background: var(--item-hover);
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.values {
    margin-left: 20px;
    margin-top: 10px;
}

.value {
    padding: 6px;
    border-radius: 6px;
    transition: background-color 0.3s;
    margin-bottom: 8px;
}

.value:hover {
    background-color: rgba(139, 107, 76, 0.1);
}

.value > div > .title {
    padding: 2px 0;
}

.value > div > .checkbox {
    padding: 2px 0;
}

.subtypes {
    margin-left: 20px;
    margin-top: 10px;
}


.icon {
    width: 40px;
    display: inline-block;
    vertical-align: top;
}

.item {
    display: inline-block;
    margin: 15px 0;

    padding: 20px 20px 20px 20px;

    border-radius: 8px;
    box-shadow: var(--shadow);
    background: var(--card-bg);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    width: calc(33.33% - 20px);

    min-width: 300px;
    border: 1px solid var(--border-decoration);
    box-sizing: border-box;
}


.item:hover {
    transform: translateY(-3px);
    background: var(--item-hover);
    box-shadow: 0 6px 12px rgba(44, 24, 16, 0.2);
}

.item-cont {
    display: inline-block;
}

.item-source {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 5px 10px;
    background: var(--primary);
    color: white;
    border-radius: 0 0 8px 0;
    font-size: 0.9em;
    font-weight: 500;
}


div > .infobulle {
    display: none;
    position: absolute;
    left: 150px;

    top: -10px;

    width: 250px;
    background-color: var(--secondary);
    color: white;
    padding: 10px 12px;
    border-radius: 6px;
    z-index: 1000;

    box-shadow: var(--shadow);
}


div:hover > .infobulle {
    display: inline-block;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--secondary);
    color: white;
    padding: 10px 12px;
    border-radius: 6px;
    z-index: 10;
    box-shadow: var(--shadow);
    max-width: 250px;
    font-size: 0.9em;
}


.tags {
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}


.tags > div {
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 5px 14px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
    font-size: 0.9em;
}

.tags > div:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.tags > div.valid {
    background-color: rgba(72, 187, 120, 0.15);
    border-color: #48bb78;
}

.tags > div.neg {
    background-color: rgba(245, 101, 101, 0.15);
    border-color: #f56565;
}

.tag-search {
    margin: 15px 0;
    position: relative;
    width: 100%;
}

.tag-search > input {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.8);
    font-family: inherit;
}

.tag-search > input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44, 24, 16, 0.1);
}

.autocomplete {
    display: none;
    position: absolute;
    top: 100%;
    left: 64px;
    background: var(--card-bg);
    padding: 15px;
    min-width: 300px;
    border-radius: 6px;
    box-shadow: var(--shadow);
    z-index: 100;
    border: 1px solid var(--border);
}

input:focus + .autocomplete,
.autocomplete:hover {
    display: inline-block;
}

.autocomplete > span {
    margin: 5px;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    cursor: pointer;
    line-height: 33px;
    white-space: nowrap;
    display: inline-block;
    transition: background 0.3s;
    background: rgba(255, 255, 255, 0.7);
}

.autocomplete > span:hover {
    background: var(--item-hover);
}


.column {
    width: 48%;
    display: inline-block;
    vertical-align: top;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin: 10px 5px;
    border: 1px solid var(--border-decoration);
    box-sizing: border-box;
}

.double-column {
    width: 48%;
    display: inline-block;
    vertical-align: top;
    column-count: 1;
    column-gap: 20px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin: 10px 5px;
    border: 1px solid var(--border-decoration);
    box-sizing: border-box;
}


.sources-section {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border: 1px solid var(--border-decoration);
}

.sources-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.source-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(139, 107, 76, 0.1);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(139, 107, 76, 0.2);
}

.source-item:hover {
    background: rgba(139, 107, 76, 0.2);
    transform: translateY(-2px);
}


.scarce {
    background-color: rgba(74, 103, 65, 0.25);
    border-left: 4px solid var(--scarce);
}

.rare {
    background-color: rgba(28, 60, 92, 0.25);
    border-left: 4px solid var(--rare);
}

.exotic {
    background-color: rgba(75, 43, 85, 0.25);
    border-left: 4px solid var(--exotic);
}


hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(139, 107, 76, 0), rgba(139, 107, 76, 0.75), rgba(139, 107, 76, 0));
    margin: 25px 0;
}


button {
    background-color: var(--secondary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 15px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--border-decoration);
}

button:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}


.gen-options {
    margin: 20px 0;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-decoration);
    min-height: 300px;
    overflow: visible;
}

.gen-options input[type="number"] {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.7);
    font-family: inherit;
    margin-left: 10px;
    width: 80px;
}

.gen-options > div {
    margin: 12px 0;
}


.gen-options > div[data-bind*="toggle"] .checkbox {
    text-indent: 30px;

    width: auto;

    height: 22px;
    position: relative;
    line-height: 22px;

    display: block;

}

.gen-options > div[data-bind*="toggle"] .checkbox:after {
    position: absolute;
    top: 50%;
    left: 11px;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
}

.gen-options > div[data-bind*="toggle"] .checkbox.checked:after {
    content: "✓";
    border: 2px solid var(--primary);
    border-radius: 4px;
    background: var(--primary);
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gen-options > div[data-bind*="toggle"] .checkbox.unchecked:after {
    content: "";
    border: 2px solid var(--primary);
    border-radius: 4px;
    background: transparent;
}


.gen-method {
    margin-bottom: 10px;
    padding: 10px;
    background: rgba(139, 107, 76, 0.1);
    border-radius: 6px;
    cursor: pointer;
}

.gen-method button {
    margin-left: 10px;
    padding: 2px 8px;
    font-size: 1.2em;
}


.tag-search {
    margin: 15px 0;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}


a[download] {
    display: inline-block;
    margin: 5px 0;
    padding: 5px 10px;
    background: rgba(139, 107, 76, 0.1);
    border-radius: 6px;
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s;
}

a[download]:hover {
    background: rgba(139, 107, 76, 0.2);
    transform: translateY(-2px);
}


span[data-bind*="addCurio"] {
    display: inline-block;
    padding: 5px 10px !important;
    background-color: var(--secondary) !important;
    color: white !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.3s;
    border: none !important;
}

span[data-bind*="addCurio"]:hover {
    background-color: var(--primary) !important;
    transform: translateY(-2px);
}

.gen-main.column {
    position: fixed;
    width: 30%;
    float: right;
    text-align: center;
    z-index: 1000;
}


.item,
.column,
.gen-main.column,
.double-column,
.category {
    box-sizing: border-box;
    max-width: 100%;

}


@media (max-width: 968px) {

    .column,
    .double-column,
    .gen-main.column {
        width: 100% !important;
        margin: 10px 0;
        display: block;
        float: none;
    }

    .double-column {
        column-count: 1;
    }

    .item {
        width: 100%;
        margin: 10px 0;
    }
}

@media (max-width: 768px) {

    .header > div.right {
        display: block;
        float: none;
        margin: 15px auto;
    }

    .auth-links {
        position: static;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        width: 100%;
        margin-top: 15px;
        padding-bottom: 0;
    }

    .header {
        min-height: auto;
        padding-bottom: 15px;
    }

    .auth-links a {
        margin: 0;
        width: auto;
        display: inline-block;
    }

    .header > div.right {
        margin-right: 0;
    }

    .categories {
        flex-direction: column;
    }

    .category,
    .category:nth-child(2) {
        width: 100%;
        margin: 5px 0;
        min-width: 0;
        flex: none;
    }

    .tag-search > input {
        width: 100%;
        max-width: none;
    }

    .header {
        margin: 20px 10px;

        padding: 15px 10px;
        box-sizing: border-box;
        width: auto;
    }

    .main-container {
        padding: 0 10px;

    }

    .tag-search {
        width: 100%;
    }

    .autocomplete {
        left: 0;
        width: 90%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .item,
    .column,
    .double-column,
    .category,
    .gen-main.column {
        width: 100% !important;
        margin: 10px 0;
        padding: 15px 10px;
        max-width: 100%;
    }

    .gen-main.column {
        bottom: 0px;
        right: 20px;
    }

    .gen-main > button {
        height: 60px;
        font-size: 0.7rem;
        padding: 0 20px;
    }

    .double-column {
        width: 100% !important;
    }

    .main-container::after {
        content: "";
        display: block;
        height: 50px;
        width: 100%;
        clear: both;
    }
}


.gen-options {
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.gen-main {
    margin: 10px 0;
    text-align: center;
    vertical-align: middle;
    position: fixed;
    bottom: 30px;
    right: 10px;
    z-index: 1000;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.gen-main > button {
    background: linear-gradient(to bottom, #a90000, #ff0000, #a90000);
    color: white;
    border: none;
    border-radius: 45px;
    height: 70px;
    padding: 0 40px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
    position: relative;
    overflow: visible; /* Permet aux gouttes de dépasser du bouton */
    animation: pulse 2s infinite;
    width: auto;
}

.gen-main > button::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 15%;
    width: 70%;
    height: 10px;
    background: rgba(136, 8, 8, 0.7);
    border-radius: 50%;
    z-index: -1;
}

.blood-drop {
    position: absolute;
    background: #880808;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    z-index: -1;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.3));
    opacity: 0;
}

.blood-drop-1 {
    width: 15px;
    height: 20px;
    top: 60px;
    left: 30%;
    animation: dripping 4s 0.5s infinite;
}

.blood-drop-2 {
    width: 12px;
    height: 25px;
    top: 60px;
    left: 50%;
    animation: dripping 5s 0.8s infinite;
}

.blood-drop-3 {
    width: 10px;
    height: 18px;
    top: 60px;
    left: 70%;
    animation: dripping 3.5s 1.2s infinite;
}

.blood-drop-4 {
    width: 14px;
    height: 22px;
    top: 60px;
    left: 40%;
    animation: dripping 4.2s 1.5s infinite;
}

.blood-drop-5 {
    width: 11px;
    height: 19px;
    top: 60px;
    left: 60%;
    animation: dripping 3.8s 0.3s infinite;
}

.blood-stream {
    position: absolute;
    width: 5px;
    height: 0;
    background: #880808;
    top: 70px;
    border-radius: 5px;
    opacity: 0.8;
    z-index: -1;
}

.blood-stream-1 {
    left: 25%;
    animation: streaming 6s 0.2s infinite;
}

.blood-stream-2 {
    left: 75%;
    animation: streaming 7s 1s infinite;
}

@keyframes dripping {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    20% {
        opacity: 0.9;
        transform: translateY(0);
    }
    80% {
        opacity: 0.9;
        transform: translateY(50px) scaleY(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(100px) scaleY(1.5);
    }
}

@keyframes streaming {
    0% {
        height: 0;
        top: 70px;
        opacity: 0.8;
    }
    15% {
        height: 10px;
        top: 70px;
        opacity: 0.8;
    }
    85% {
        height: 50px;
        opacity: 0.8;
    }
    100% {
        height: 0;
        top: 120px;
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

.gen-main > button:hover {
    transform: translateY(-2px);
    background: linear-gradient(to bottom, #cc0000, #ff0000, #cc0000);
    box-shadow: 0 6px 12px rgba(255, 0, 0, 0.4);
}

.gen-main > button:hover .blood-drop,
.gen-main > button:hover .blood-stream {
    animation-duration: 3s;
}

.gen-main > button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(255, 0, 0, 0.4);
}


.gen-main > button:hover {
    transform: translateY(-2px);
    background: linear-gradient(to bottom, #cc0000, #ff0000, #cc0000);
    box-shadow: 0 6px 12px rgba(255, 0, 0, 0.4);
}

.gen-main > button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(255, 0, 0, 0.4);
}


@font-face {
    font-family: 'CultistArmoury-AncientArabica';
    font-style: normal;
    font-weight: normal;
    src: url('https://khangouloot.bhor.fr/fonts/CultistArmoury-AncientArabica.otf') format("opentype");
}

@font-face {
    font-family: 'CultistArmoury-Theban';
    font-style: normal;
    font-weight: normal;
    src: url('https://khangouloot.bhor.fr/fonts/CultistArmoury-Theban.otf') format("opentype");
}

@font-face {
    font-family: 'CultistArmoury-StrangeAeons';
    font-style: normal;
    font-weight: normal;
    src: url('https://khangouloot.bhor.fr/fonts/CultistArmoury-StrangeAeons.otf') format("opentype");
}

@font-face {
    font-family: 'CultistArmoury-MinorRlyehain';
    font-style: normal;
    font-weight: normal;
    src: url('https://khangouloot.bhor.fr/fonts/CultistArmoury-MinorRlyehain.otf') format("opentype");
}

@font-face {
    font-family: 'CultistArmoury-Magi';
    font-style: normal;
    font-weight: normal;
    src: url('https://khangouloot.bhor.fr/fonts/CultistArmoury-Magi.otf') format("opentype");
}

@font-face {
    font-family: 'CultistArmoury-GreatRunes';
    font-style: normal;
    font-weight: normal;
    src: url('https://khangouloot.bhor.fr/fonts/CultistArmoury-GreatRunes.otf') format("opentype");
}

@font-face {
    font-family: 'CultistArmoury-GreatRlyehian';
    font-style: normal;
    font-weight: normal;
    src: url('https://khangouloot.bhor.fr/fonts/CultistArmoury-GreatRlyehian.otf') format("opentype");
}

@font-face {
    font-family: 'CultistArmoury-GreaterRlyehain';
    font-style: normal;
    font-weight: normal;
    src: url('https://khangouloot.bhor.fr/fonts/CultistArmoury-GreaterRlyehain.otf') format("opentype");
}

@font-face {
    font-family: 'CultistArmoury-Enochian';
    font-style: normal;
    font-weight: normal;
    src: url('https://khangouloot.bhor.fr/fonts/CultistArmoury-Enochian.otf') format("opentype");
}

@font-face {
    font-family: 'CultistArmoury-DarkRlyehain';
    font-style: normal;
    font-weight: normal;
    src: url('https://khangouloot.bhor.fr/fonts/CultistArmoury-DarkRlyehain.otf') format("opentype");
}

@font-face {
    font-family: 'CultistArmoury-Celestial';
    font-style: normal;
    font-weight: normal;
    src: url('https://khangouloot.bhor.fr/fonts/CultistArmoury-Celestial.otf') format("opentype");
}

@font-face {
    font-family: 'CultistArmoury-AncientCults';
    font-style: normal;
    font-weight: normal;
    src: url('https://khangouloot.bhor.fr/fonts/CultistArmoury-AncientCults.otf') format("opentype");
}


.CultistArmoury-AncientArabica {
    font-family: 'CultistArmoury-AncientArabica';
}

.CultistArmoury-Theban {
    font-family: 'CultistArmoury-Theban';
}

.CultistArmoury-StrangeAeons {
    font-family: 'CultistArmoury-StrangeAeons';
}

.CultistArmoury-MinorRlyehain {
    font-family: 'CultistArmoury-MinorRlyehain';
}

.CultistArmoury-Magi {
    font-family: 'CultistArmoury-Magi';
}

.CultistArmoury-GreatRunes {
    font-family: 'CultistArmoury-GreatRunes';
}

.CultistArmoury-GreatRlyehian {
    font-family: 'CultistArmoury-GreatRlyehian';
}

.CultistArmoury-GreaterRlyehain {
    font-family: 'CultistArmoury-GreaterRlyehain';
}

.CultistArmoury-Enochian {
    font-family: 'CultistArmoury-Enochian';
}

.CultistArmoury-DarkRlyehain {
    font-family: 'CultistArmoury-DarkRlyehain';
}

.CultistArmoury-Celestial {
    font-family: 'CultistArmoury-Celestial';
}

.CultistArmoury-AncientCults {
    font-family: 'CultistArmoury-AncientCults';
}

.sticky-saves {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;
    max-width: 320px;
    max-height: 600px;
}

.sticky-saves > div {
    display: none;
}

.sticky-saves > img {
    display: block;
    max-width: 60px;
    max-height: 60px;
    border: solid black;
    border-radius: 14px;
    padding: 4px;
    background-color: white;
    margin: 2px;
}

.sticky-saves.open-save > div {
    display: block;
    max-width: 300px;
    max-height: 600px;
    border: solid black;
    border-radius: 14px;
    padding: 4px;
    background-color: white;
    margin: 2px;
}

.sticky-saves.open-save > img {
    display: none;
}

.saves-list {
    overflow: scroll;
    max-height: 520px;
    margin: 10px;
}

.saves-list > div > div {
    display: inline-block;
}

.saves-list > div > div.right {
    text-align: center;
    width: 26px;
    height: 26px;
    border: solid grey 1px;
    border-radius: 6px;
}

.close-saves {
    position: absolute;
    left: 290px;
}

.region > .name {
    text-decoration: underline;
}

.region > .name:after {
    content: ' \203A';
}

.region.selected > .name:after {
    content: ' \203A';
    rotate: 90deg;
}

.region > div.settlement-container {
    display: none;
}

.region.selected > div.settlement-container {
    display: block;
}

.settlement {
    margin: 4px 20px;
    display: none;
}

.settlement.visible {
    display: inline-block;
    width: fit-content;
    min-width: 90px;
}

.settlement.selected {
    background-color: lightgreen;
}

.region-container {
    width: 50%;
    flex: 1;
}

.market-container {
    width: 50%;
    flex: 1;
}

.settlement-display > div {
    display: inline-block;
}

.query-container {
    display: inline-block;
    margin: 10px 0;
}

.gain {
    background-color: lightgreen;
    color: black;
}

.loss {
    background-color: lightcoral;
}

.seasons {

}

.seasons > .selected {
    background-color: lightgreen;
    color: black;
}

.modal-overlay {
    min-height: 520px;
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    top: 0;
    width: 100%;
    background-color: darkgray;

}

.modal-overlay.show {
    display: flex;
}

/*.modal { background: var(--color-background-primary); border-radius: var(--border-radius-lg); border: 0.5px solid var(--color-border-secondary); width: 100%; max-width: 560px; overflow: hidden; }*/
.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 0.5px solid var(--color-border-tertiary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-body {
    padding: 1.25rem 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 0.5px solid var(--color-border-tertiary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/*.cat-badge { font-size: 11px; padding: 3px 10px; border-radius: var(--border-radius-md); font-weight: 500; }*/
/*.small-badge { font-size: 11px; padding: 3px 10px; border-radius: var(--border-radius-md); background: var(--color-background-secondary); color: var(--color-text-secondary); border: 0.5px solid var(--color-border-tertiary); }*/
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 1rem 0;
}

.info-card {
    background: var(--color-background-secondary);
    border-radius: var(--border-radius-md);
    padding: 10px 14px;
}

.info-card .label {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 3px;
}

.info-card .value {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-primary);
}

/*.season-row { display: flex; gap: 8px; margin: 0.75rem 0; }*/
/*.season-pill { flex: 1; text-align: center; border-radius: var(--border-radius-md); padding: 6px 4px; font-size: 12px; }*/
.qty-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0.5rem;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-md);
    border: 0.5px solid var(--color-border-secondary);
    background: var(--color-background-secondary);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
}

.qty-btn:hover {
    background: var(--color-background-primary);
}

.qty-input {
    width: 60px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

.qty-max {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.total-price {
    font-size: 20px;
    font-weight: 500;
    color: var(--color-text-primary);
}

.btn-buy {
    flex: 2;
    background: #3C3489 !important;
    color: #EEEDFE !important;
    border-color: #3C3489 !important;
}

.btn-buy:hover:not(:disabled) {
    background: #26215C !important;
    border-color: #26215C !important;
}

.btn-buy:disabled {
    background: var(--color-background-secondary) !important;
    color: var(--color-text-secondary) !important;
    border-color: var(--color-border-tertiary) !important;
    cursor: not-allowed;
}

.no-stock {
    text-align: center;
    padding: 0.75rem;
    font-size: 13px;
    color: var(--color-text-secondary);
    background: var(--color-background-secondary);
    border-radius: var(--border-radius-md);
    margin-top: 0.5rem;
}

.cargo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 0.5px solid var(--color-border-tertiary);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    background: var(--color-background-primary);
    margin-bottom: 8px;
}

.cargo-item:hover {
    border-color: var(--color-border-secondary);
    background: var(--color-background-secondary);
}

/*.item-stock { font-size: 12px; padding: 2px 8px; border-radius: var(--border-radius-md); }*/
/*.stock-ok { background: #EAF3DE; color: #3B6D11; }*/
/*.stock-none { background: var(--color-background-secondary); color: var(--color-text-secondary); }*/
.panel-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.divider {
    height: 0.5px;
    background: var(--color-border-tertiary);
    margin: 1rem 0;
}

/*.confirm-icon { width: 56px; height: 56px; border-radius: 50%; background: #EAF3DE; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 26px; }*/

.ship.hide > .ship-cargaison {
    display: none;
}
.ship.show > .ship-cargaison {
    display: block;
}

.ships-container {
    border: solid black 1px;
    border-radius: 7px;
    margin: 20px 0;
    box-shadow: 7px 6px lightgray;
}

.ship-name {
    border-bottom: 0.5px solid grey;
    padding: 4px;
}

.ship {
    cursor: pointer;
}

.ship-cargaison {
    margin: 10px;
}
