@font-face {
    font-family: 'SourGummy';
    src: url('../fonts/SourGummy-Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* @font-face {
    font-family: 'Jua';
    src: url('../fonts/Jua-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
} */

@font-face {
    font-family: 'Pacifico';
    src: url('../fonts/Pacifico-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Allura';
    src: url('../fonts/Allura-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Fascinate';
    src: url('../fonts/Fascinate-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    padding: 0;
    margin: 0;
    scroll-behavior: smooth;
    cursor: default;
    font-size: 17px;
    font-size: 18px;
    line-height: 1.7;
    letter-spacing: 0.8px;
    font-family: "SourGummy", monospace;
    text-align: center;
    background-color: #000;
    color: #ff9797;
}

.logo-wrap {
    float: left;
    width: 100%;
    text-align: center;
}

.game .logo-wrap {
    margin-top: 50px;
}

#logo {
    display: inline-block;
    font-size: 50px;
    text-decoration: none;
    color: #ff9797;
    font-family: 'Allura';
    font-size: 101px;
}

#logo img {
    width: 169px;
    height: auto;
}

.loaded a#logo {
    transition: all 0.15s linear;
}

::selection {
    text-shadow: none;
    background-color: #ff9c9c;
    color: #0b1521;
}

input::selection {
    text-shadow: none;
    background-color: #ff9c9c;
    color: #0b1521;
}

input::-moz-selection {
    text-shadow: none;
    background-color: #ff9c9c;
    color: #0b1521;
}

input::-webkit-selection {
    text-shadow: none;
    background-color: #ff9c9c;
    color: #0b1521;
}

#site-wrap {
    width: 100%;
    max-width: 100%;
    text-align: left;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
}

.frontpage #site-wrap {
    text-align: center;
}

#outer-story-wrap {
    max-width: 100%;
    display: inline-block;
}

#page-wrap,
footer {
    box-sizing: border-box;
    width: 100%;
    /* padding: 0 15px 15px; */
}

#page-wrap,
#game-wrap {
    display: flex;
    flex-direction: column;
}

#page-wrap,
#game-wrap,
#game-header-wrap,
#game-footer-wrap,
.header-wrap,
.game-faq-wrap {
    width: 931px;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.page-content {
    width: 640px;
    width: 860px;
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
    /* padding: 25px 20px; */
    box-sizing: border-box;
    border-radius: 5px;
}

.page-content.left-text {
    text-align: left;
}

#game-footer-wrap img,
#game-footer-wrap img {
    position: relative;
}

.combatant-hp-wrap {
    position: relative;
}

.combatant-hp-wrap .hit-points-icon {
    margin-left: -55px;
}

.combatant-div .space-between {
    gap: 25px;
}

.combatant-div span.hp-overlay {
    left: 0;
    right: unset;
    width: 100%;
    height: 100%;
    bottom: unset;
    top: 0;
    background: linear-gradient(-45deg, #cd0085, #62003f);
}

.vertical-meter {
    left: unset;
    right: 3px;
    width: 10px;
    top: 3px;
    bottom: 3px;
    height: unset;
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    border-radius: 14px;
    z-index: 1;
}

.vertical-meter>span {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    border-radius: 14px;
    padding: 0;
}

.health .vertical-meter {
    border: 1px solid #8f0000;
}

.health .vertical-meter>span {
    background: linear-gradient(#cd0085, #62003f);
    box-shadow: 1px 1px 1px #ce4b4b inset;
}

.thirst .vertical-meter {
    border: 1px solid #0085cd;
}

.thirst .vertical-meter>span {
    background: linear-gradient(#46beff, #004c76);
    box-shadow: 1px 1px 1px #46beff inset;
}

.hunger .vertical-meter {
    border: 1px solid #2aac78;
}

.hunger .vertical-meter>span {
    background: linear-gradient(#3ad496, #014f30);
    box-shadow: 1px 1px 1px #28e398 inset;
}

.exhaustion .vertical-meter {
    border: 1px solid #e28e3b;
}

.exhaustion .vertical-meter>span {
    background: linear-gradient(#ffb56d, #9d4f05);
    box-shadow: 1px 1px 1px #ffb56d;
}

.combatant-hp-values {
    margin-top: 20px;
    float: right;
}

.combatant-status-div {
    display: block;
    margin: 0 0 15px;
}

.page-content.yt {
    padding: 0;
    overflow: hidden;
    width: 640px;
}

.site-name-span,
caption,
h1,
h2,
h3,
.sub-tier-header,
.modal-x-btn {
    font-family: "Fascinate", sans-serif;
    /* letter-spacing: 0.1px; */
    /* color: #eaeaea; */
    font-weight: 400;
}

h1,
h1#entry-title {
    color: #eaeaea;
}

h1 {
    font-size: 35px;
    margin: 15px 0 5px;
}

h2 {
    font-size: 35px;
}

h3 {
    font-size: 25px;
}

.before-title {
    margin: 15px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Fascinate';
    color: #f0f0f0;
}

h1#entry-title {
    font-size: 13px;
    width: fit-content;
    z-index: 110;
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    column-gap: 5px;
    align-items: center;
    justify-content: start;
    row-gap: 10px;
    transition: top 0.25s linear;
}

.loading-game .page-content {
    padding: 25px 0;
}

.game-list-item {
    border-bottom: 1px solid #ff9797;
    float: left;
    width: 100%;
}

.game-list-item:last-of-type {
    border-bottom: none;
}

.game-list-item a {
    padding: 15px;
    box-sizing: border-box;
    float: left;
    width: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-direction: column;
}

.dim {
    color: #ff9797;
}

.generating-seconds {
    font-size: 12px;
    color: #ff9797;
}

#site-content {
    float: left;
    width: 100%;
}

.button-wrap {
    float: left;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.frontpage .list {
    display: grid;
    border-radius: 5px;
}

.frontpage .list .item a:hover {
    text-decoration: underline;
    background-color: #071526;
}

#account-wrap,
#affiliate-campaign-form {
    text-align: center;
    max-width: 100%;
    margin: 0 0 25px;
}

#account-wrap h2 {
    margin-top: 35px;
}

#account-wrap button {
    margin: 25px 0;
}

#account-wrap label.checkbox,
#affiliate-register-form label.checkbox {
    margin: 0 auto 15px;
    float: none;
    width: 300px;
}

.form-section {
    float: left;
    width: 100%;
    margin-bottom: 25px;
}

.list .item,
.event-item {
    padding: 10px;
}

.list .item:last-of-type,
.event-item:last-of-type {
    border-bottom: none;
}

.event-list {
    float: left;
    width: 100%;
}

.body-full-screen-chart {
    overflow: hidden;
}

.output-item-footer.one-btn {
    justify-content: center;
    margin-top: 0;
}

h1#entry-title span {
    font-size: 18px;
    position: relative;
    white-space: nowrap;
}

h1#entry-title>span {
    padding: 3px 12px;
    line-height: 29px;
    display: flex;
    align-items: center;
    column-gap: 10px;
}

#site-content h1#entry-title>span {
    border-color: #ff9797;
}

h1#entry-title>span:first-of-type {
    border-color: #ff0000;
}

.checked-symbol.one,
.compare-item:first-of-type::after,
h1#entry-title>span:first-of-type::after {
    background-color: #ff0000;
}

.compare-item:first-of-type,
h1#entry-title>span:first-of-type {
    color: #ff0000;
}

h1#entry-title>span:nth-of-type(2) {
    border-color: #ff8f8f;
}

.checked-symbol.two,
.compare-item:nth-of-type(2)::after,
h1#entry-title>span:nth-of-type(2)::after {
    background-color: #ff8f8f;
}

.compare-item:nth-of-type(2),
h1#entry-title>span:nth-of-type(2) {
    color: #ff8f8f;
}

h1#entry-title>span:nth-of-type(3) {
    border-color: #c2b8ff;
}

.checked-symbol.three,
.compare-item:nth-of-type(3)::after,
h1#entry-title>span:nth-of-type(3)::after {
    background-color: #c2b8ff;
}

.compare-item:nth-of-type(3),
h1#entry-title>span:nth-of-type(3) {
    color: #c2b8ff;
}

h1#entry-title>span:nth-of-type(4) {
    border-color: #f69e6a;
}

.checked-symbol.four,
.compare-item:nth-of-type(4)::after,
h1#entry-title>span:nth-of-type(4)::after {
    background-color: #f69e6a;
}

.compare-item:nth-of-type(4),
h1#entry-title>span:nth-of-type(4) {
    color: #f69e6a;
}

h1#entry-title>span:nth-of-type(5) {
    border-color: #f685f0;
}

.checked-symbol.five,
.compare-item:nth-of-type(5)::after,
h1#entry-title>span:nth-of-type(5)::after {
    background-color: #f685f0;
}

.compare-item:nth-of-type(5),
h1#entry-title>span:nth-of-type(5) {
    color: #f685f0;
}

.compare-item:hover {
    color: #f84949;
}

h2 span {
    float: right;
    font-style: italic;
}

a {
    color: inherit;
}

.loaded a,
.loaded .clickable {
    transition: all 0.25s ease-in;
    cursor: pointer;
}

a:hover,
.clickable:hover {
    color: #f0f0f0;
    text-decoration: none;
}

#site-header {
    float: left;
    width: 100%;
    text-align: center;
    padding: 11px;
    background: #0b1521;
    margin: 0 0 15px;
    box-sizing: border-box;
}

#game-wrap {
    margin: 0 auto 25px;
}

#game-wrap h2 {
    margin: 0;
}

.game-container {
    float: left;
    width: 100%;
}

.audio-container {
    margin: 15px 0;
    float: left;
    width: 100%;
    border-radius: 5px;
    /* border: 1px solid #ff9797; */
    padding: 10px;
    box-sizing: border-box;
}

.audio-footer {
    float: left;
    width: 100%;
    margin-top: 15px;
}

#user-input-wrap {
    display: block;
}

#outer-game-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 100%;
}

.ready-to-start.just-starting #game-text-wrap {
    display: none;
}

.not-logged-in #game-wrap {
    position: static;
}

.just-starting #user-input-wrap,
.just-starting .time-of-day-wrap {
    display: none;
}

.game-settings #game-wrap,
.just-starting #game-wrap,
.loading-game #game-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: calc(100vh - 120px);
    margin: 0 auto;
}

.just-starting .user-input-wrap,
.just-starting h1 {
    margin: 0;
}

.just-starting #output {
    display: none;
}

.just-starting.ready-to-start #output {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 25px;
}

.just-starting.new-game h1,
.error-message h1 {
    margin: 15px 0 0;
}

#game-header-wrap>button {
    cursor: pointer;
    transition: color 0.25s linear;
}

#game-header-wrap>button:hover {
    color: #f0f0f0;
    background-color: rgba(255, 126, 126, 0.59);
    border-color: rgba(255, 126, 126, 0.59);
}

#something-wrap {
    float: left;
    width: 100%;
    margin-top: 25px;
    text-align: center;
    max-height: 0px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s linear;
}

.generating #something-wrap {
    max-height: 125px;
    opacity: 1;
    visibility: visible;
}

#something {
    position: relative;
    display: inline-block;
    width: 318px;
}

#something a {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    border: 1px solid #ff9797;
    padding: 0;
    box-sizing: border-box;
    background: black;
    border-radius: 5px;
    transition: all 0.25s linear;
}

#something a:hover {
    /* background-color: #ff9797; */
    /* transform: translateY(1px) translateX(1px) rotate(1deg) scale(1.01); */
}

#something a:hover img {
    /* transform: translateY(1px) translateX(1px) rotate(0deg) scale(1.1); */
}

#something a::before {
    content: "Ad";
    display: block;
    position: absolute;
    top: 7px;
    left: 15px;
    z-index: 1;
}

#something .info-clicker {
    position: absolute;
    top: 10px;
    right: 10px;
}

img.something {
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    transition: all 0.25s linear;
}

#story-form {
    width: 650px;
    margin: 0 auto;
}

.user-input-wrap {
    float: left;
    width: 550px;
    max-width: 100%;
    margin: 25px -20px 35px;
    padding: 15px 20px;
    box-sizing: border-box;
}

.user-input-wrap label {
    color: #f0f0f0;
}

.section {
    margin: 35px 0 15px;
}

.init .settings-wrap,
.load .settings-wrap,
.new .settings-wrap,
.game .settings-wrap {
    padding-bottom: 10px;
}

canvas#starryBackground {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    display: none;
}

.turn-two-wrap {
    display: none;
}

#turn-type-wrap {
    display: flex;
    float: left;
    width: 100%;
    margin-top: 25px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

#turn-type-wrap #turn-type-button {
    width: 57px;
    margin-bottom: 25px;
    box-shadow: none;
}

#turn-type-button img {
    width: 39px;
    height: auto;
}

#combatants-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

#combatants-wrap .combatant-div {
    text-align: center;
    border: 1px solid #ff9797;
    padding: 10px 25px;
    box-sizing: border-box;
    background: black;
    border-radius: 5px;
}

#combatants-wrap .combatant-div h2 {
    color: #ff0000;
}

button.generating {
    color: #f0f0f0;
    text-shadow: 1px 1px 0 black;
}


button.generating:before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, #fffe00, #ffb734);
    border-radius: 100%;
    animation: spin 1s linear infinite;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -2;
    pointer-events: none;
}

button.generating:after {
    content: "";
    display: block;
    background-color: #1e2c3f;
    background-color: #000;
    position: absolute;
    padding: 10px;
    box-sizing: border-box;
    left: 15px;
    top: 15px;
    z-index: -1;
    bottom: 15px;
    right: 15px;
    border-radius: 100%;
    box-shadow: 1px 1px 2px #ffffff, 1px 1px #b29100 inset, 2px 2px #c09c00 inset;
    pointer-events: none;
}

a.button {
    display: block;
    border: 1px solid #464646;
    text-decoration: none;
    box-sizing: border-box;
    border-radius: 5px;
}

.one h2,
.one input,
.one select,
.one textarea,
.one textarea::placeholder,
.one input::placeholder {
    color: #ff0000;
}

.one button,
button.one,
.button.one,
.choose-sub,
button.info-clicker,
#accept-all-cookies-btn,
#affiliate-register {
    position: relative;
}

button.generating.pp:before {
    background: linear-gradient(0deg, #000000, #59ffa1);
}

button.generating.pp:after {
    box-shadow: 1px 1px 2px #009a29, 1px 1px #000000 inset, 2px 2px #00c03f inset;
}

.two h2,
.two input,
.two textarea,
.two textarea::placeholder,
.two input::placeholder {
    color: #ff8f8f;
}

.two input:focus,
.two textarea:focus {
    border-color: #ff8f8f;
}

.two button,
button.two {}

.two button:hover,
.two button:active,
.two button.generating,
.two button.disabled,
button.two:hover,
button.two:active,
button.two.generating,
button.two.disabled {}

.three h2,
.three input,
.three textarea,
.three textarea::placeholder,
.three input::placeholder {
    color: #c2b8ff;
}

.three input:focus,
.three textarea:focus {
    border-color: #c2b8ff;
}

.three button,
button.three {}

.three button:hover,
.three button:active,
.three button.generating,
.three button.disabled,
button.three:hover,
button.three:active,
button.three.generating,
button.three.disabled {}

.four h2,
.four input,
.four textarea,
.four textarea::placeholder,
.four input::placeholder {
    color: #f69e6a;
}

.four input:focus,
.four textarea:focus {
    border-color: #f69e6a;
}

.four button,
button.four {}

.four button:hover,
.four button:active,
.four button.generating,
.four button.disabled,
button.four:hover,
button.four:active,
button.four.generating,
button.four.disabled {}

.five h2,
.five input,
.five textarea,
.five textarea::placeholder,
.five input::placeholder {
    color: #f685f0;
}

.five input:focus,
.five textarea:focus {
    border-color: #f685f0;
}

.five button,
button.five {}

.five button:hover,
.five button:active,
.five button.generating,
.five button.disabled,
button.five:hover,
button.five:active,
button.five.generating,
button.five.disabled,
.modal .default-btn.toggle-login-btn:hover,
.modal .default-btn.toggle-login-btn:active {}

.six button,
button.six {}

/* Affiliate */

#affiliate-register,
#affiliate-dashboard {
    float: left;
    margin: 25px 15px;
}

#affiliate-register-form {
    float: left;
    width: 550px;
    max-width: 100%;
}

#affiliate-register-form select {
    white-space: nowrap;
    max-width: 100%;
    text-overflow: ellipsis;
}

.affiliate-register-bottom {
    float: left;
    width: 100%;
    margin: 5px 0;
    text-align: center;
}

.affiliate-stats-table {
    float: left;
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
}

.affiliate-stats-table th,
.affiliate-stats-table td {
    padding: 10px;
    border: 1px solid #ff9797;
}

.affiliate #page-wrap {
    width: 1050px;
}

canvas {
    max-width: 100%;
    pointer-events: none;
}

form input.date-input {
    width: 150px;
    color-scheme: dark;
    text-shadow: none;
    font-family: inherit;
}

input.date-input {
    border: none;
    max-width: 100%;
    box-sizing: border-box;
    padding: 6px 10px;
    cursor: pointer;
    background-color: #ff9797;
    font-size: inherit;
    border: 1px solid #ff9797;
}

input,
select,
textarea,
.textarea-div {
    color: #f0f0f0;
    background-color: #000000;
    border: 1px solid #ff9797;
    padding: 5px 15px;
    text-align: left;
}

input:focus,
select:focus,
textarea:focus,
.textarea-div:focus {
    /* outline: 2px solid white; */
    /* border-color: #f0f0f0; */
}

select {
    height: 36px;
    cursor: pointer;
}

textarea,
.textarea-div {
    float: left;
    width: 100%;
    padding: 10px;
    height: 100px;
}

.textarea-div {
    cursor: text;
}

/* textarea.expandable-textarea,
textarea.medium-height {
    height: 100px;
}

textarea.expandable-textarea:focus {
    height: 250px;
} */

/* input,
select,
textarea,
#hover-desc {
    box-shadow: 1px 1px 3px #000000, 0 0 5px black;
} */

/* .game #submit-turn-button.disabled, */
.game button.one:disabled {
    box-shadow: 1px 1px 2px #ffffff inset, 1px 1px #b29100, 2px 2px #c09c00;
    /* transform: translateY(2px) translateX(2px); */
    /* color: #000; */
}

/* GAME */

#game-header-wrap {
    margin: 0 auto;
    font-size: 15px;
    padding: 10px 10px 0;
    position: relative;
}

#game-header-wrap h1,
#game-header-wrap>span,
#game-header-wrap>button {
    border: 1px solid #ff9797;
    background: #000;
    padding: 2px 10px;
    border-radius: 5px;
    white-space: nowrap;
    color: #ff9797;
    font-size: 15px;
    line-height: 23px;
}

#game-header-wrap .weather-clicker {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

#game-footer-wrap {
    width: unset;
    top: unset;
    bottom: -127px;
    /* position: sticky; */
    margin-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    float: left;
    margin: 0 auto;
    /* margin: -67px auto 25px; */
    gap: 7px;
    box-sizing: border-box;
}

#game-header-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    float: left;
    width: 100%;
    margin: 0 auto;
    gap: 7px;
    box-sizing: border-box;
}

#game-header-wrap h1 {
    font-size: inherit;
    margin: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

#game-footer-wrap button,
#turn-price-button,
#turn-type-button {
    color: inherit;
    position: relative;
    white-space: nowrap;
    border: 1px solid #ff9797;
    width: 60px;
    height: 60px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: #000;
    letter-spacing: 0.1px;
}

#game-footer-wrap button:hover,
#turn-type-button:hover,
#turn-price-button:hover {
    transform: translateY(1px) translateX(1px) rotate(1deg);
    background-color: rgba(255, 126, 126, 0.59);
    border-color: rgba(255, 126, 126, 0.59);
}

#game-footer-wrap button img,
#game-footer-wrap button span,
#game-footer-wrap button img,
#game-footer-wrap button span,
#turn-type-button img,
#map .zone {
    transition: all 0.2s linear;
}

#game-footer-wrap button:hover img,
#game-footer-wrap button:hover span,
#game-footer-wrap button:hover img,
#game-footer-wrap button:hover span,
#turn-type-button:hover img,
#map .zone:hover {
    transform: translateY(1px) translateX(1px) rotate(1deg) scale(1.2);
}

#game-footer-wrap button span.button-value {
    position: absolute;
    left: -1px;
    bottom: -1px;
    padding: 0px 4px;
    background: #000000;
    border-radius: 0 4px 0 4px;
    font-size: 15px;
    z-index: 2;
}

#game-footer-wrap button:hover span,
#game-footer-wrap button:hover span,
#turn-price-button:hover {
    color: #f0f0f0;
}

button.nostyle.modal-x-btn {
    position: absolute;
    right: 2px;
    top: 2px;
    color: inherit;
    text-decoration: none;
    line-height: 33px;
    font-size: 27px;
    padding: 0px 10px;
    z-index: 300;
    background: #000;
    padding: 10px;
    border: 1px solid #ff9797;
    width: 34px;
    height: 34px;
    transition: all 0.25s ease-in;
}

button.nostyle.modal-x-btn:hover {
    transform: translateY(1px) translateX(1px) rotate(3deg) scale(1.2);
    background-color: rgba(255, 126, 126, 0.59);
    border-color: rgba(255, 126, 126, 0.59);
}

.modal-x-btn:hover {
    color: #f0f0f0;
    text-decoration: none;
}

.modal-x-btn::after,
.modal-x-btn::before {
    content: "";
    position: absolute;
    top: 14px;
    right: 6px;
    width: 20px;
    height: 3px;
    border-radius: 100%;
    background-color: #f0f0f0;
    transition: background-color 0.25s linear;
}

.modal-x-btn:hover::after,
.modal-x-btn:hover::before {
    background-color: #f0f0f0;
}

.modal-x-btn::before {
    transform: rotate(45deg);
}

.modal-x-btn::after {
    transform: rotate(-45deg);
}

#inventory-modal,
#quests-modal,
#spellbook-modal,
#hitpoints-modal {
    width: 425px;
}

#gear-modal,
#transactions-modal,
#credits-log-modal,
#reputation-modal,
#personality-history-modal,
#turn-history-modal,
#buffs-modal {
    width: 410px;
}

#learn-magic-modal {
    width: 320px;
}

#inventory-modal h3,
#quests-modal h3,
#stats-modal h3,
#personality-modal h3,
#spellbook-modal h3,
#gear-modal h3,
#buffs-modal h3,
#magic-modal h3,
#map-modal h3,
#options-modal h3,
#credits-wrap h3,
#pricing-modal h3,
#reputation-modal h3,
#personality-history-modal h3,
#turn-history-modal h3,
#transactions-modal h3,
#hitpoints-modal h3,
#hunger-modal h3,
#thirst-modal h3,
#exhaustion-modal h3,
#buy-sell-modal h3,
#credits-log-modal h3,
.major-title {
    color: #ffce54;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}


#stats-modal .opponent-wrap {
    padding: 10px 5px;
    border: 1px solid #ff9797;
    border-radius: 5px;
    margin: 0 0 15px;
}

#stats-modal .opponent-type-dropdown {
    margin-top: 10px;
}

#stats-modal .thing-interactive {
    width: fit-content;
}

#player-stats-list>p {
    display: grid;
    grid-template-columns: 120px 1fr;
}

/* #player-stats-list>p span:nth-of-type(1) {
    text-align: left;
} */

#player-stats-list>p>span:nth-of-type(2) {
    text-align: right;
    display: grid;
    grid-template-columns: 1fr 13px 1fr;
    gap: 10px;
    width: 140px;
}

#player-stats-list>p>span:nth-of-type(2)>span:nth-of-type(1) {
    text-align: right;
}

#player-stats-list>p>span:nth-of-type(2)>span:nth-of-type(2) {
    text-align: left;
}

#pricing-modal h3 {
    color: #f0f0f0;
}

.package-price {
    color: #ff0000;
    margin-right: 10px;
    font-size: 14px;
}

.package-price>span {
    font-size: 17px;
    color: #ff9797;
    margin-right: 2px;
}

.sub-tier-sub-header .small .highlight>span {
    color: #ff9797;
    margin-right: 2px;
    font-size: 14px;
}

.modal-value-wrap {
    padding: 15px;
    margin: 0 -15px;
}

.dashed-top {
    border-top: 1px dashed;
}

#credits-wrap button.buy-more {
    margin: 10px 0 20px;
}

#options-modal .game-details {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    text-align: left;
    border: 0.75px dashed;
    background-color: rgb(0 0 0 / 31%);
    background-color: #000;
    border-radius: 5px;
}

#options-modal .game-details>span,
#options-modal .game-details>div {
    border-top: 0.75px dashed;
    padding: 15px;
    display: flex;
    gap: 15px;
    flex-direction: column;
}

#options-modal .game-details>span:first-of-type,
#options-modal .game-details>div:first-of-type {
    border-top: none;
}

#options-modal .game-details .label {
    display: flex;
    justify-content: space-between;
}

#credits-log-list,
#quests-list,
#inventory-list,
#spellbook-spells-list,
#gear-list,
#transactions-list,
#hitpoints-list,
#turn-history-list,
#reputation-list,
.buffs-list,
#personality-history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
    text-align: left;
}

#inventory-list h4,
#spellbook-spells-list h4,
#gear-list h4,
#transactions-list h4,
#hitpoints-list h4,
#turn-history-list h4,
#reputation-list h4,
.buffs-list h4,
#personality-history-list h4 {
    display: flex;
    justify-content: space-between;
}

.credits-icon {
    width: 57px;
    height: 57px;
}

.zone-icon {
    width: 55px;
    height: auto;
}

.context-icon {
    width: 28px;
    height: auto;
}

.reputation-icon {
    width: 54px;
    height: auto;
}

.personality-icon {
    width: 39px;
    height: auto;
}

.quest-item,
.inventory-item,
.credits-item,
.spell-item,
.turn-history-item {
    position: relative;
    border: 1px solid #ff9797;
    border: 1px solid;
    border-radius: 5px;
    overflow: hidden;
}

.spell-item {
    border: 1px solid;
}

.inventory-item h4,
.quest-item h4,
.credits-item h4,
.spell-item h4 {
    cursor: pointer;
}

.loaded .inventory-item h4:hover,
.loaded .quest-item h4:hover,
.loaded .credits-item h4:hover,
.loaded .spell-item h4:hover {
    color: #f0f0f0;
}

.item-info {
    visibility: hidden;
    float: left;
    width: 100%;
    font-size: 14px;
    max-height: 0;
    overflow-y: hidden;
    transition: all 1s linear;
}

.expanded .item-info {
    visibility: visible;
    max-height: 2024px;
    border-radius: 0 0 4px 4px;
}

.modal .description {
    border-top: 1px dashed;
    padding: 15px;
    margin: 0;
    float: left;
    width: 100%;
    box-sizing: border-box;
}

.token-icon-small {
    width: 24px;
    height: 24px;
    margin-bottom: -7px;
}

.context-icon-small {
    margin: 0 0 -8px;
    width: 16px;
    height: auto;
}

.reputation-icon-small {
    width: 24px;
    height: 24px;
    margin-bottom: -6px;
}

.empty-thing-list {
    color: #f0f0f0;
    font-size: 15px;
    margin: 5px 0 10px;
    text-align: center;
}

.highlight,
.separator {
    color: #f0f0f0;
}

/* Personality */
#personality {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 350px;
    background-color: #ff9797;
    border: 1px solid;
    gap: 1px;
    margin: 0 auto;
    margin-bottom: 20px;
}

#personality .row {
    grid-column: 1 / 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
}

#personality .row.final-row {
    color: #f0f0f0;
}


#personality .row button {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 42px;
    border: none;
    gap: 1px;
    padding: 0;
    font-size: 15px;
}

#personality .row button:hover {
    scale: 1;
}

#personality .row button:nth-of-type(2n) {
    grid-template-columns: 42px 1fr;
}

#personality .row button span {
    display: flex;
    align-items: center;
    justify-content: center;
}

#personality .row button .name {
    grid-column: 1 / 2;
    /* gap: 1px; */
    background-color: #122236;
    width: 100%;
    height: 100%;
    padding: 9px 0;
    box-sizing: border-box;
}

#personality .row button:nth-of-type(2n) .name {
    grid-column: 2 / 3;
}

#personality .row button .value {
    grid-column: 2 / 3;
    background-color: #122236;
    width: 100%;
    height: 100%;
    padding: 5px 2px;
    box-sizing: border-box;
}

#personality .row button:nth-of-type(2n) .value {
    grid-column: 1 / 2;
}

/* Magic */

#magic-schools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 300px;
    max-width: 100%;
    margin-bottom: 20px;
}

#magic-schools .row {
    grid-column: 1/3;
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr;
}

#magic-schools .row .full-width {
    grid-column: 1/3;
}

#magic-schools .row .half-width {
    grid-column: 1/2;
}

#magic-schools .row .half-width:nth-of-type(2) {
    grid-column: 2/3;
}

#magic-schools .row div {
    position: relative;
    padding: 7px;
    border: 1px solid;
    box-sizing: border-box;
    cursor: pointer;
}

button.magic-school-btn,
button.personality-btn {
    background: transparent;
    color: inherit;
    border: 1px solid;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    padding: 8px 0;
}

/* Magic */
.basic.active,
.basic:hover {
    background-color: #2e4868;
    /* background: linear-gradient(125deg, #ff9797, #2e4868); */
    color: #c6ecff;
}

.basic .corner {
    border-color: #ff9797;
}

.earth.active,
.earth:hover {
    background-color: #4d3100;
    /* background: linear-gradient(125deg, #ac7920, #4d3100); */
    color: #dda33e;
    border-color: #dda33e;
}

.earth .corner {
    border-color: #ac7920;
}

.air.active,
.air:hover {
    background-color: #376a83;
    /* background: linear-gradient(125deg, #9cdeff, #376a83); */
    color: #c9edff;
    border-color: #c9edff;
}

.air .corner {
    border-color: #c9edff;
}

/* .water-spell::before, */
.water.active,
.water:hover {
    background-color: #143a46;
    /* background: linear-gradient(125deg, #52d8fb, #143a46); */
    color: #a4ecff;
    border-color: #a4ecff;
}

.water .corner {
    border-color: #a4ecff;
}

.fire.active,
.fire:hover {
    background-color: #590303;
    /* background: linear-gradient(125deg, #830b0b, #680000); */
    color: #f69e6a;
    border-color: #f69e6a;
}

.fire .corner {
    border-color: #f69e6a;
}

.nature.active,
.nature:hover {
    background-color: #3a6300;
    /* background: linear-gradient(125deg, #95ff00, #457600); */
    color: #cdff86;
    border-color: #90c941;
}

.nature .corner {
    border-color: #90c941;
}

.tech.active,
.tech:hover {
    background-color: #430092;
    /* background: linear-gradient(125deg, #9b47ff, #430092); */
    color: #c594ff;
    border-color: #c594ff;
}

.tech .corner {
    border-color: #c594ff;
}

.vitalistic.active,
.vitalistic:hover {
    background-color: #005d18;
    /* background: linear-gradient(125deg, #00ff42, #005d18); */
    color: #c6ffd4;
    border-color: #c6ffd4;
}

.vitalistic .corner {
    border-color: #91ffad;
}

.necrotic.active,
.necrotic:hover {
    background-color: #2a2a2a;
    /* background: linear-gradient(125deg, #ccc, #2a2a2a); */
    color: #ccc;
    border-color: #ccc;
}

.necrotic .corner {
    border-color: #ccc;
}

.divine.active,
.divine:hover {
    background-color: #363b00;
    /* background: linear-gradient(125deg, #fffb00, #363b00); */
    color: #fffb00;
    border-color: #fffb00;
}

.divine .corner {
    border-color: #fffb00;
}

.infernal.active,
.infernal:hover {
    background-color: #240000;
    /* background: linear-gradient(125deg, #ff0000, #390000); */
    color: #f343ff;
    border-color: #f343ff;
}

.infernal .corner {
    border-color: #f343ff;
}

.arcane.active,
.arcane:hover {
    background-color: #520089;
    /* background: linear-gradient(125deg, #d100ff, #520089); */
    color: #e779ff;
    border-color: #e779ff;
}

.arcane .corner {
    border-color: #e779ff;
}

.corner {
    opacity: 0;
    position: absolute;
    width: 9px;
    height: 9px;
    animation: pulse 2s infinite;
    transform-origin: center center;
}

.loaded .corner {
    transition: opacity 0.25s linear;
}

#magic-schools .row button:hover .corner {
    opacity: 1;
}

.corner.top-left {
    border-left: 1px solid;
    border-top: 1px solid;
    border-radius: 3px 0 0 0;
}

.corner.top-right {
    border-right: 1px solid;
    border-top: 1px solid;
    border-radius: 0 3px 0 0;
}

.corner.bottom-left {
    border-left: 1px solid;
    border-bottom: 1px solid;
    border-radius: 0 0 0 3px;
}

.corner.bottom-right {
    border-right: 1px solid;
    border-bottom: 1px solid;
    border-radius: 0 0 3px 0;
}

/* Top-left corner */
.top-left {
    top: -6px;
    left: -6px;
}

/* Top-right corner */
.top-right {
    top: -6px;
    right: -6px;
}

/* Bottom-left corner */
.bottom-left {
    bottom: -6px;
    left: -6px;
}

/* Bottom-right corner */
.bottom-right {
    bottom: -6px;
    right: -6px;
}

@keyframes pulse {
    0% {
        width: 10px;
        height: 10px;
        margin: 0;
    }

    50% {
        width: 13px;
        height: 13px;
        margin: 0px;
    }

    100% {
        width: 10px;
        height: 10px;
        margin: 0;
    }
}

.decimal,
.percent {
    font-size: 80%;
}

.token-icon {
    width: 56px;
    height: auto;
}

.gear-icon {
    width: 53px;
    height: auto;
}

.inventory-icon {
    width: 53px;
    height: auto;
}

#inventory-modal .inventory-icon {
    margin: 0 7px -7px 0;
    width: 48px;
    height: auto;
}

#magic-modal .magic-icon {
    margin: -11px -4px -15px 0;
    width: 56px;
    height: auto;
}

.spellbook-icon {
    width: 61px;
    height: auto;
}

#spellbook-modal .spellbook-icon {
    margin: 0 7px -8px 0;
    width: 56px;
    height: auto;
}

.quests-icon {
    width: 56px;
    height: auto;
}

#quests-modal .quests-icon {
    margin: 0 7px -7px 0;
    width: 52px;
    height: auto;
}

.quest-steps-wrap {
    float: left;
    box-sizing: border-box;
    background-color: rgb(0 0 0 / 31%);
    background-color: #000;
    width: 100%;
}

.quest-steps-wrap p,
.quest-impacts-wrap p {
    float: left;
    width: 100%;
    padding: 10px 15px;
    margin: 0;
    box-sizing: border-box;
    border-top: 0.75px dashed;
}

.quest-steps-wrap p:last-child,
.quest-impacts-wrap p:last-child {
    border-bottom: none;
}

.quest-impacts-wrap {
    float: left;
    box-sizing: border-box;
    background-color: rgb(0 0 0 / 31%);
    background-color: #000;
    width: 100%;
}

.options-icon {
    width: 26px;
    height: auto;
}

.hit-points-icon {
    width: 50px;
    height: auto;
}

.hit-points-icon.small {
    width: 47px;
    /* position: relative; */
    /* margin: 0 6px -6px 0; */
}

.buff-icon {
    width: 30px;
    height: auto;
}

.hunger-icon {
    width: 56px;
    height: auto;
}

.thirst-icon {
    width: 34px;
    height: auto;
}

.exhaustion-icon {
    width: 58px;
    height: auto;
}

.magic-icon {
    width: 60px;
    height: auto;
}

.companion-icon {
    width: 60px;
    height: auto;
}

.stats-icon {
    width: 58px;
    height: auto;
}

/* Plus / Minus Animations */

.plus-count {
    animation: plus-count-animation 1.75s;
}

.minus-count {
    animation: minus-count-animation 1.75s;
}

@keyframes plus-count-animation {
    0% {
        transform: scale(1) rotate(0deg);
        color: #73d477;
    }

    50% {
        transform: scale(1.75) rotate(10deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        color: inherit;
    }
}

@keyframes minus-count-animation {
    0% {
        transform: scale(1) rotate(0deg);
        color: red;
    }

    50% {
        transform: scale(1.75) rotate(-10deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        color: inherit;
    }
}

/* Custom HTML tags and interactive buttons */
thing,
.thing-interactive {
    text-decoration: underline;
    cursor: pointer;
}

/* Remove default button styling for thing-interactive */
.thing-interactive {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: 'SourGummy', monospace;
    letter-spacing: 0.1px;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    text-align: inherit;
    display: inline;
    border-radius: 0;
}

.thing-interactive:focus {
    outline: none;
}

.thing-interactive:focus-visible {
    outline: 2px solid #f0f0f0;
    outline-offset: 2px;
    border: 1px solid;
}

thing.righteous,
.thing-interactive.righteous {
    background-color: #a9dc41;
    color: black;
}

thing.wicked,
.thing-interactive.wicked {
    background-color: #cd32a1;
    color: black;
}

/* Thing Modals */
.modal-p {
    padding: 0 15px;
}

.space-between,
.modal-p.space-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.thing-p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
    margin: 0;
    border-top: 1px dashed;
    background-color: rgb(0 0 0 / 31%);
    background-color: #000;
    text-align: left;
}

.thing-p span:nth-of-type(2n) {
    color: #f0f0f0;
}

.modal.zone-modal .thing-p span:nth-of-type(2n),
.modal.place-modal .thing-p span:nth-of-type(2n) {
    color: inherit;
}

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

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

.item-info.quest-item .thing-p {
    border-top: 0.75px solid #ff9797;
    border-color: #ff9797;
}

.item-info.quest-item .thing-p:last-of-type {
    border-bottom: 0.75px solid #ff9797;
}

.game-settings-modal .thing-p {
    justify-content: end;
    gap: 10px;
    text-align: right;
}

.game-settings-modal .thing-p .highlight {
    margin-right: auto;
}

/* TEXT BUTTONS */
button.nostyle {
    background-color: transparent;
    padding: 0;
}

#game-text-wrap {
    position: relative;
    float: left;
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    box-sizing: border-box;
    background: black;
    border-radius: 5px;
}

/* #game-text {
    opacity: 0;
    pointer-events: none;
} */

.loaded #game-text {
    transition: opacity 0.25s ease-in;
}

#game-text.processed {
    pointer-events: auto;
    opacity: 1;
}

#game-text h2,
#game-text h3 {
    font-family: 'SourGummy', sans-serif;
    letter-spacing: 0.1px;
    color: #f0f0f0;
}

#custom-audio-player {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: inherit;
    width: 100%;
    float: left;
    margin-top: 25px;
}

#turn-form {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 25px;
    flex-direction: column;
    margin-bottom: 0;
}

#user-turn-input,
.story-content {
    height: 38px;
    line-height: 20px;
    height: auto;
    padding: 16px 15px;
    box-sizing: border-box;
    border: 1px solid #565656;
    transition: outline 0.25s ease-in;
    background: #2a2a2a;
    /* border-color: #404040; */
    color: #e0e0e0;
}

#user-turn-input {
    float: left;
    cursor: text;
}

#user-turn-input div {
    margin-top: 15px;
}

#submit-turn-button,
#start-button {
    white-space: nowrap;
}

.input-controls {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 15px;
}

#command-list-output {
    text-align: center;
}

#turn-price-button.nostyle {
    color: #f0f0f0;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: all 0.2s ease;
}

#turn-price-button.nostyle img {
    transition: all 0.2s ease;
}

#turn-price-button.nostyle:hover {
    color: #f0f0f0;
    scale: 1.09;
}

#turn-price-button.nostyle:hover img {
    scale: 1.2;
}

.input-wrap-one,
.just-starting-input-controls {
    display: flex;
    align-items: center;
    gap: 25px;
    float: left;
    justify-content: center;
}

.voice-btn {
    position: relative;
    border: none;
    border-radius: 50%;
    padding: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.voice-btn::after {
    content: '';
    background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjwhRE9DVFlQRSBzdmcgIFBVQkxJQyAnLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4nICAnaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkJz48c3ZnIGhlaWdodD0iNTEycHgiIGlkPSJMYXllcl8xIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiIgd2lkdGg9IjUxMnB4IiB4bWw6c3BhY2U9InByZXNlcnZlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj48Zz48cGF0aCBkPSJNMjU2LDMyYy00My43LDAtNzksMzcuNS03OSw4My41VjI3MGMwLDQ2LDM1LjMsODMuNSw3OSw4My41YzQzLjcsMCw3OS0zNy41LDc5LTgzLjVWMTE1LjVDMzM1LDY5LjUsMjk5LjcsMzIsMjU2LDMyeiAgICBNMzE5LDI3MGMwLDM3LjItMjguMyw2Ny41LTYzLDY3LjVjLTM0LjcsMC02My0zMC4zLTYzLTY3LjVWMTE1LjVjMC0zNy4yLDI4LjMtNjcuNSw2My02Ny41YzM0LjcsMCw2MywzMC4zLDYzLDY3LjVWMjcweiIvPjxwYXRoIGQ9Ik0zNjcsMTkydjc5LjdjMCw2MC4yLTQ5LjgsMTA5LjItMTEwLDEwOS4yYy02MC4yLDAtMTEwLTQ5LTExMC0xMDkuMlYxOTJoLTE5djc5LjdjMCw2Ny4yLDUzLDEyMi42LDEyMCwxMjcuNVY0NjJoLTczdjE4ICAgaDE2MXYtMThoLTY5di02Mi44YzY2LTQuOSwxMTctNjAuMywxMTctMTI3LjVWMTkySDM2N3oiLz48L2c+PC9zdmc+");
    background-size: 80% 80%;
    background-position: center center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.game .voice-btn.recording {
    background: #ff4d4d;
    box-shadow: none;
    animation: recordingAnimation 2.5s infinite;
}

@keyframes recordingAnimation {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

#game-text .quote {
    font-style: italic;
}

/* SYNC */

.sync-word {
    color: inherit;
    border: 1px solid rgba(68, 140, 255, 0.0);
    transition: color 0.25s linear;
}

.sync-word.active-word {
    color: #f0f0f0;
    background-color: rgba(255, 126, 126, 0.59);
    border: 1px solid rgba(255, 126, 126, 0.59);
    padding: 3px 7px;
    margin: -3px -7px;
    border-radius: 5px;
    transition: color 0.25s linear;
}

#support-modal {
    width: 300px;
}

#support-btn {
    border-radius: 100%;
    margin: 28px auto;
    width: 40px;
    height: 40px;
}

#yt-embed {
    max-width: 100%;
    margin: 0 auto;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    margin: -40px 0 0 -40px;
    border: 15px solid rgb(18 34 54);
    border-top: 15px solid #ff9797;
    border-radius: 50%;
    animation: spin 1s linear infinite, scaleIn 3.25s ease-out forwards;
    box-sizing: border-box;
    /* box-shadow: 2px 3px; */
}

@keyframes scaleIn {
    from {
        opacity: 0.6;
        scale: 0.6;
    }

    to {
        opacity: 1;
        scale: 1.4;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.loading-spinner::before {
    content: "";
    position: absolute;
    top: -15px;
    left: -15px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px solid #ff9797;
    box-sizing: border-box;
    /* box-shadow: 2px 2px 0px #cef0ff7a; */
}

.loading-spinner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid #ff9797;
    box-sizing: border-box;
    /* box-shadow: 2px 2px 0px #cef0ff7a inset; */
}

.visible {
    display: block;
}

label {
    cursor: pointer;
}

.switch-wrap {
    display: flex;
    align-items: center;
    column-gap: 5px;
    font-size: 15px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 35px;
    height: 19px;
    border-radius: 20px;
    background-color: #000;
    border: 1px solid #ff9797;
}

.switch.focus {
    border: 1px solid #f0f0f0;
}

label[for="info-consent"].checkbox.focus .checkmark,
label[for="marketing-consent"].checkbox.focus .checkmark {
    border: 1px solid #ff8f8f;
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    bottom: 15px;
    margin: auto;
    padding: 0 20px;
    width: 600px;
    max-width: calc(100% - 30px);
    text-align: center;
    border: 1px solid #ff9797;
    background-color: #122236;
    background-color: #000;
    /* box-shadow: 2px 2px 0px #0f1b2a; */
    font-size: 15px;
    box-sizing: border-box;
    z-index: 150;
}

#cookie-banner button {
    font-family: "SourGummy", monospace;
}

#accept-all-cookies-btn,
#accept-functional-cookies-btn,
#decline-all-cookies-btn,
#decline-functional-cookies-btn {
    border: none;
    padding: 9px 15px;
    font-size: 15px;
    line-height: 16px;
    margin: 0 10px 20px;
    cursor: pointer;
    background-color: #f0f0f0;
}

#accept-all-cookies-btn,
#accept-functional-cookies-btn {
    background-color: #ff8f8f;
}

.left {
    float: left;
}

.right {
    float: right;
}

#hover-desc {
    position: fixed;
    right: 15px;
    bottom: 15px;
    opacity: 0;
    padding: 2px 8px;
    box-sizing: border-box;
    max-width: calc(100vw - 30px);
    z-index: 1000;
    background-color: #122236;
    background-color: #000;
    color: #f0f0f0;
    border-radius: 5px;
    animation: fadeIn 0.25s linear forwards;
}

footer {
    margin: 0;
    text-align: center;
    color: #f0f0f0;
    position: static;
    float: left;
    width: 100%;
    padding: 25px 20px;
    box-sizing: border-box;
}

footer p {
    margin: 10px 0;
}

footer a {
    color: #ff9797;
    text-decoration: none;
}

.checked-symbol,
.count {
    float: right;
    margin-top: 2px;
}

.checked-symbol {
    content: "";
    width: 20px;
    height: 20px;
    border-radius: 50px;
    margin: 3px 0 0;
    transition: background-color 0.25s ease-in;
}

.hover .checked-symbol {
    background-color: #f84949;
}

.checked-wrap {
    float: left;
    width: 100%;
}

.checked-wrap .count {
    display: none;
}

.form-row {
    float: left;
    width: 100%;
}

.generate-btn-wrap {
    float: left;
    width: 100%;
    /* margin: 35px 0 0 0; */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-direction: column;
}

.generate-btn-wrap.center {
    justify-content: center;
}

.generate-btn-wrap label,
.output-item-footer label {
    white-space: nowrap;
    text-align: center;
    width: 100%;
}

.generate-btn-wrap input,
.output-item-footer input {
    width: 100%;
}

button.generate-btn.generating,
button.generate-img-btn.generating,
button.upscale-btn.generating {
    pointer-events: none;
}

button.generate-btn.generating,
button.generate-img-btn.generating,
button.upscale-btn.generating {
    animation: loading-animation 10s ease-in-out infinite;
}

/* Keyframes for the border animation */
@keyframes loading-animation {
    20% {
        background-color: #f685f0;
    }

    40% {
        background-color: #ff8f8f;
    }

    60% {
        background-color: #c2b8ff;
    }

    80% {
        background-color: #ff0000;
    }
}

.generate-img-btn {
    height: 35px;
}

.center-text,
.page #page-wrap.center-text {
    text-align: center;
}

.center-text ul,
.page #page-wrap ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#selection-screen-info {
    width: 650px;
    max-width: 96%;
    margin: 15px 0 0;
    position: relative;
    border-radius: 5px;
    padding: 10px 26px 0;
    box-sizing: border-box;
    overflow: hidden;
    text-align: center;
}

.settings-wrap {
    display: grid;
    grid-template-columns: 36% 1fr;
    gap: 10px;
    width: 650px;
    max-width: 98%;
    margin: 25px 0 10px;
    position: relative;
    border-radius: 5px;
    background-color: #122236;
    background-color: #000;
    padding: 10px 10px 0;
    box-sizing: border-box;
    overflow: hidden;
}

.settings-wrap::before {
    content: "Settings";
    font-size: 17px;
    margin-bottom: -15px;
    text-align: center;
    width: 100%;
    position: absolute;
    left: 0;
    top: -28px;
    right: 0;
    margin: 0 auto;
}

.settings-wrap label {
    text-align: right;
    margin: 0;
}

.settings-wrap select {
    float: left;
    clear: left;
    height: 35px;
    width: 100%;
}

.settings-wrap input {
    text-align: left;
    height: 35px;
    margin: 0;
}

#show-more-settings-btn {
    display: inline-block;
    margin: 10px auto 0;
}

#show-more-btn {
    display: inline-block;
    margin: 25px auto 0;
}

#show-more-settings {
    visibility: hidden;
    max-height: 0;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 36% 1fr;
    gap: 10px;
    transition: all 0.25s linear;
}

#show-more-settings.visible {
    visibility: visible;
    max-height: 750px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

#show-more-wrap {
    visibility: hidden;
    max-height: 0;
    transition: all 0.25s linear;
}

#show-more-wrap.visible {
    visibility: visible;
    max-height: 600px;
}

/* Image */

.image-container {
    float: left;
    width: 100%;
    margin: 10px -10px;
    padding: 10px;
    border: 1px solid #ff9797;
    border-radius: 5px;
}

.image-container img {
    max-width: 100%;
    height: auto;
}

.image-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 15px 0 0;
    box-sizing: border-box;
}

.image-footer button {
    height: 35px;
}

.elaborate-btn {
    height: 35px;
}

button.disabled {
    pointer-events: none;
}

#header-menu a {
    text-decoration: none;
    padding: 2px 5px;
}

#page-desc-wrap {
    margin: 30px auto 20px;
}

.page-desc {
    float: left;
    width: 100%;
    margin-bottom: 10px;
}

#welcome-wrap {
    margin: 0 0 20px;
    text-align: center;
}

.modal-wrap {
    position: fixed;
    left: 0;
    top: 40px;
    right: 0;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.modal-outer {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 200;
}

.modal-bg {
    position: fixed;
    left: 0;
    right: 0;
    margin: auto;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    transition: all 0.25s linear;
}

.loaded #login-wrap,
.loaded #reset-wrap,
.loaded .modal-wrap {
    transition: all 0.25s linear;
}

.modal {
    width: 300px;
    box-sizing: border-box;
    border: 1px solid #686868;
    background-color: #000;
    padding: 0 15px;
    border-radius: 5px;
    max-height: 98vh;
    max-width: 98vw;
    pointer-events: all;
    position: relative;
    overflow-y: auto;
    opacity: 0;
    animation: fadeIn 0.25s linear forwards;
}

.modal h5 {
    padding: 10px 15px 0;
    margin: 0;
    border-top: 1px dashed;
    font-size: 17px;
}

.modal .description.place-description {
    border: none;
}

label:focus {
    outline: 1px solid #f0f0f0;
}

#login-modal button.default-btn.toggle-register-btn,
#login-modal button.default-btn.toggle-login-btn {
    margin-top: 15px;
}

#login-modal,
#register-modal,
#reset-modal {
    width: 326px;
}

#login-modal input,
#login-modal input:-webkit-autofill,
#login-modal input:-webkit-autofill:focus {
    color: #ffa8fa !important;
    /* -webkit-text-fill-color: #ffa8fa !important; */
}

#login-modal input:focus,
#register-modal input:focus,
#reset-modal input:focus {
    border-color: #ff8f8f;
}

#live-chat-btn {
    float: left;
    margin: 5px 0 30px;
}

.why-modal {
    padding: 20px 0 0;
    color: #f0f0f0;
    font-size: 15px;
}

.modal-msg {
    margin: 0 0 15px;
    float: left;
    width: 100%;
}

.modal-msg.success,
.modal-msg.error {
    margin: 10px 0 15px;
}

.success {
    color: #afff4e;
}

.error,
.fail {
    color: #f84949;
}

.modal-x-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 130;
    color: inherit;
    text-decoration: none;
    background-color: #122236;
    line-height: 33px;
    font-size: 27px;
    padding: 0px 10px;
    height: 21px;
    z-index: 300;
}

.modal-x-btn:hover::after,
.modal-x-btn:hover::before {
    background-color: #f0f0f0;
}

.modal-notice {
    float: left;
    width: 100%;
    text-align: center;
    margin: 0 0 15px;
    color: #f0f0f0;
}

.modal-notice.medium-font {
    font-size: 15px;
}

#search-modal.modal {
    overflow: hidden;
    width: 450px;
}

.loaded .modal {
    transition: all 0.25s ease-in-out;
    opacity: 1;
}

.modal .default-btn {
    float: left;
    width: 100%;
    margin: 0 0 15px;
}

#init-verify-box input,
#register-form input:focus {
    border-color: #ff8f8f;
}

#login-form input:focus {
    border-color: #f685f0;
}

#reset-request-form input:focus {
    border-color: #ff0000;
}

input:-webkit-autofill,
input:-webkit-autofill:focus {
    background-color: #000000;
    color: #f0f0f0 !important;
    -webkit-box-shadow: 2px 2px 0px inset #000000, 0 0 0 30px #000000 inset !important;
    -webkit-box-shadow: 0 0 0 30px #000000 inset !important;
    -webkit-text-fill-color: #f0f0f0 !important;
}

#login-modal .before-two {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    margin: -42px auto 0;
    padding: 16px;
    width: 52px;
    height: 52px;
    border-radius: 100%;
    background: #122236;
}

#login-modal button.default-btn.toggle-login-btn {
    float: right;
    width: 50%;
    width: calc(50% - 5px);
}

#login-modal.register-success button.default-btn.toggle-login-btn {
    width: 100%;
    margin: 0 0 15px;
}

#login-modal button.default-btn.toggle-register-btn,
.modal button.default-btn.modal-close-btn {
    float: left;
    width: 100%;
    margin: 0 0 15px;
}

.modal button.default-btn.cancel-btn,
.modal button.default-btn.modal-close-btn {
    background-color: #f69e6a;
    float: none;
    width: 50%;
    margin: 15px 25% 25px;
}

button,
.choose-sub,
a.button {
    cursor: pointer;
    position: relative;
    padding: 10px 15px;
    font-size: 18px;
    text-decoration: none;
}

#login-modal.login-toggled #login-form,
#login-modal.register-success .success-msg,
#login-modal.register-toggled #register-form,
#login-modal.reset-toggled #reset-request-form,
#reset-wrap.success .success-msg {
    display: block;
}

#login-modal.login-toggled .login-chooser,
#login-modal.register-success .login-chooser,
#login-modal.register-toggled .login-chooser,
#login-modal.reset-toggled .login-chooser,
#reset-wrap.success #reset-pass-form {
    display: none;
}

label {
    float: left;
    width: 100%;
    padding: 5px 0;
    margin-top: 5px;
    position: relative;
    cursor: pointer;
}

input {
    width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
    line-height: 34px;
    height: 35px;
    margin-bottom: 5px;
    font-size: inherit;
    border: 1px solid #ff9797;
    text-align: center;
}

.modal .desc {
    font-size: 15px;
    text-align: left;
    position: absolute;
    margin: -95px 0 0 15px;
    padding: 10px;
    width: calc(100% - 50px);
    pointer-events: none;
    background-color: #0b1521;
    color: inherit;
}

form .desc {
    display: none;
}

form .focused .desc {
    display: block;
}

label:hover {
    text-decoration: underline;
}

input::placeholder,
textarea::placeholder {
    color: #f0f0f0;
    transition: opacity 0.25s linear;
}

#site-wrap input:focus::placeholder,
.modal input:focus::placeholder,
#site-wrap textarea:focus::placeholder {
    opacity: 0;
}

.editable-div-wrap,
.story-content {
    position: relative;
    float: left;
    width: 696px;
    max-width: 100%;
}

.editable-div-wrap .placeholder {
    display: none;
    pointer-events: none;
    position: absolute;
    top: 13px;
    left: 0;
    padding: 0 15px;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    transition: opacity 0.25s linear;
}

.editable-div-wrap.focused .placeholder {
    opacity: 0;
}

form input[type="radio"] {
    cursor: pointer;
}

.choose-frequency {
    float: left;
    display: flex;
}

.modal input[type="checkbox"] {
    width: auto;
    box-shadow: none;
    margin-right: 10px;
}

.checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

label.checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    line-height: 18px;
    position: relative;
    padding: 2px 0 0 37px;
    box-sizing: border-box;
    text-align: left;
}

/* label.checkbox:hover .checkmark,
input:hover {
    background-color: #000000;
    border-color: #ff9797;
} */

.checkbox .checkmark {
    position: absolute;
    left: 0;
    top: 11px;
    height: 20px;
    width: 20px;
    background-color: #000;
    /* box-shadow: 2px 2px 0px inset #284261; */
    border-radius: 100%;
    border: 1px solid #ff9797;
}

.checkbox input[type="checkbox"]:checked+.checkmark {
    background-color: #ff8f8f;
    border-color: #ff8f8f;
    box-shadow: none;
}

.checkbox .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox input[type="checkbox"]:checked+.checkmark::after {
    display: block;
}

#search-box-form {
    padding-top: 16px;
}

#search-box-form label {
    margin: 0;
    padding: 0;
}

.modal input#search-input {
    padding-bottom: 0;
    margin-bottom: 5px;
}

#search-results {
    float: left;
    width: 100%;
    margin-bottom: 10px;
    height: calc(100% - 66px);
    /* height: calc(100% - 100px); */
    overflow-y: auto;
}

.search-result-item {
    float: left;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: space-between;
    column-gap: 10px;
    float: left;
    width: 100%;
    margin-top: 3px;
    text-align: left;
    padding: 0 5px 3px 0;
    box-sizing: border-box;
    font-size: 15px;
    border-bottom: 1px solid #ff9797;
}

.search-result-item div:nth-of-type(2) {
    display: flex;
    column-gap: 10px;
    align-items: center;
}

.search-result-item:first-of-type {
    margin-top: 10px;
}

.search-result-item:last-of-type {
    border-bottom: none;
}

.denominate-msg {
    float: left;
    width: 100%;
    text-align: center;
    margin: 10px 0;
    font-size: 15px;
    color: #f0f0f0;
}

#site-wrap .plus-asset,
#site-wrap .denominate-asset,
#search-modal .plus-asset,
#search-modal .denominate-asset {
    float: right;
    position: relative;
}

button.info-clicker {
    content: "";
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 100%;
    cursor: pointer;
    background-color: #ff9797;
    color: black;
    transition: all 0.25s linear;
}

button.info-clicker:hover {
    background-color: #f0f0f0;
}

.info-clicker:hover {
    text-decoration: none;
}

#thing-modal {
    width: 375px;
    width: 475px;
    text-align: left;
    padding: 0;
}

#thing-modal.quest-modal {
    width: 390px;
    width: 475px;
}

#thing-modal.quest-modal.item-modal {
    width: 390px;
}

#thing-modal.item-modal {
    width: 390px;
}

#thing-modal.npc-modal {
    width: 400px;
}

#thing-modal.zone-modal {
    width: 430px;
    border: none;
}

#thing-modal.place-modal {
    width: 415px;
    border: none;
}

#school-modal {
    width: 300px;
    padding: 0;
}

#thing-modal h4,
#quests-modal h4,
#inventory-modal h4,
#spellbook-modal h4,
#gear-modal h4,
#transactions-modal h4,
#credits-log-modal h4,
#hitpoints-modal h4,
#reputation-modal h4,
#personality-history-modal h4,
#turn-history-modal h4,
#buffs-modal h4 {
    padding: 5px 15px;
    background-color: #000;
    border-radius: 5px 5px 0 0;
    margin: 0;
    font-size: 120%;
}

#spellbook-modal h4,
#inventory-modal .spell-item h4 {
    background: none;
}

#thing-modal h4,
#quests-modal h4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#thing-modal.quest-modal h4,
.item-element.quest h4,
.quest-item h4 {
    color: #e6c284;
}

#thing-modal .expanded h4,
#quests-modal .expanded h4,
#inventory-modal .expanded h4,
#spellbook-modal .expanded h4,
#gear-modal .expanded h4,
#transactions-modal .expanded h4,
#hitpoints-modal .expanded h4,
#turn-history-modal .expanded h4,
#reputation-modal .expanded h4,
#personality-history-modal .expanded h4 {
    border-radius: 5px 4px 0 0;
}

#thing-modal h4,
#thing-modal h4 button,
#quests-modal h4,
#inventory-modal h4,
#inventory-modal h4 button,
#spellbook-modal h4,
#gear-modal h4,
#transactions-modal h4,
#hitpoints-modal h4,
#turn-history-modal h4,
#buffs-modal h4,
#thing-modal h3,
#thing-modal h5,
thing {
    font-family: "SourGummy";
    font-weight: normal;
    letter-spacing: 0.1px;
}

.gear-slot-header {
    text-align: center;
    margin: 0;
}

.empty-gear-slot {
    text-align: center;
    margin: 0;
}

.quest-status-header,
.buff-status-header {
    margin: 0;
}

#info-modal,
#context-modal {
    width: 340px;
    padding: 0;
}

#info-modal h3 {
    padding: 0 15px;
}

#info-modal.llm-models-modal .item,
#info-modal.speech-modal .item,
#info-modal.races-modal .item,
#info-modal.schools-modal .item,
#info-modal.quick-info-modal .item,
#info-modal.difficulty-modal .item,
#info-modal.death-penalty-modal .item {
    padding: 0;
}

#info-modal.llm-models-modal .thing-p,
#info-modal.speech-modal .thing-p,
#info-modal.races-modal .thing-p,
#info-modal.schools-modal .thing-p,
#info-modal.quick-info-modal .thing-p,
#info-modal.difficulty-modal .thing-p,
#info-modal.death-penalty-modal .thing-p {
    padding: 15px;
}

.speech-modal .item,
.speech-modal .modal-p {
    text-align: center;
}

thing,
.thing-interactive,
.loaded button.thing-interactive {
    text-decoration: none;
    padding: 0px 5px;
    border-radius: 2px;
    font-size: 100%;
    box-shadow: none;
    display: inline-block;
    height: unset;
    width: unset;
    border: 1px dashed;
    transition: scale 0.15s linear, transform 0.15s linear;
}

thing:hover,
.thing-interactive:hover,
button.thing-interactive:hover {
    border: 1px solid;
}

#stats-modal .thing-interactive:hover {
    color: #f0f0f0;
    background-color: rgba(255, 126, 126, 0.59);
    border-color: rgba(255, 126, 126, 0.59);
}

button.thing-interactive:focus {
    outline: none;
}

button.thing-interactive:focus-visible {
    border-style: solid;
    outline: 2px solid #f0f0f0;
    outline-offset: 2px;
}

thing.friendly,
.thing-interactive.friendly {
    border-color: #5eff81;
    background-color: #005004;
}

thing.friendly,
.thing-interactive.friendly,
.modal.friendly h4,
span.friendly,
span.completed,
.thing-p span.completed,
span.defeated,
button.yes {
    color: #5eff81;
}

thing.neutral,
thing.unpredictable,
.thing-interactive.neutral,
.thing-interactive.unpredictable {
    color: #ff0000;
    border-color: #ff0000;
    background-color: #634f1f;
}

.item-info .neutral,
.modal.neutral h4,
span.neutral,
span.available,
span.started,
span.active,
.thing-p span.active,
span.unpredictable,
span.disengaged {
    color: #ff0000;
}

thing.hostile,
.thing-interactive.hostile,
.item-info thing.hostile,
.item-info .thing-interactive.hostile {
    color: #ff0000;
    background-color: #480000;
}

thing.hostile,
.thing-interactive.hostile {
    border-color: #ff0000;
}

.item-info .hostile,
.modal.hostile h4,
span.hostile,
span.failed,
.thing-p span.failed,
span.fighting,
button.no {
    color: #ff0000;
}

.player-zone {
    z-index: 1;
    position: relative;
}

.player-zone-msg {
    position: relative;
    float: left;
    width: 100%;
    padding-left: 45px;
    box-sizing: border-box;
}

.player-zone::after,
.player-zone-msg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    margin: auto;
    border-radius: 100%;
    background-color: #bb0000;
    border: 1px solid #780000;
}

.player-zone-msg::before {
    left: 15px;
    right: unset;
    margin: none;
}

thing:hover,
.thing-interactive:hover {
    cursor: pointer;
    scale: 1.09;
    transform: translateY(2px) translateX(2px) rotate(1deg);
    border-style: solid;
}

#map .zone:hover {
    z-index: 1000;
}

span.poor,
#thing-modal.poor h4,
.item-element.poor h4 {
    color: #ccc;
}

thing.poor,
.thing-interactive.poor {
    background: #000;
    color: #ccc;
}

span.good,
#thing-modal.good h4,
.item-element.good h4 {
    color: #98ffa0;
}

thing.good,
.thing-interactive.good {
    background: #000;
    color: #98ffa0;
}

span.great,
#thing-modal.great h4,
.item-element.great h4 {
    color: #de7eff;
}

thing.great,
.thing-interactive.great {
    background: #540370;
    background: #000;
    color: #de7eff;
}

span.superb,
#thing-modal.superb h4,
.item-element.superb h4 {
    color: #ff7d00;
}

thing.superb,
.thing-interactive.superb {
    background: #2e1700;
    background: #000;
    color: #ff7d00;
}

#info-modal .item {
    border: 0.75px solid;
    border-radius: 5px;
    margin: 15px;
    overflow: hidden;
    text-align: left;
}

#info-modal .item h2 {
    padding: 0 15px;
}

#info-modal audio,
#info-modal .item>span {
    margin: 15px;
}

#pricing-modal.modal {
    width: 1024;
    padding: 15px;
    box-sizing: border-box;
    text-align: left;
    overflow: auto;
}

#pricing-modal h3 {
    margin: 0;
    grid-column: 1 / 4;
    text-align: center;
}

#pricing-modal h3,
#pricing-switch-wrap {
    margin-top: 0;
    margin-bottom: 20px;
    padding: 0;
}

#pricing-tiers {
    display: grid;
    /* grid-column: 1 / 4; */
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 15px;
}

.pricing-modal-footer {
    margin: 10px 0 0;
    text-align: center;
    grid-column: 1 / 4;
}

.sub-tier {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border: 1px solid #ff9797;
    border-radius: 5px;
    background-color: #000;
    /* box-shadow: 1px 1px 3px #000000, 0 0 5px black; */
}

.sub-tier-header {
    float: left;
    width: 100%;
    font-size: 16px;
    color: #ff8f8f;
    text-align: center;
    margin-bottom: 10px;
}

.small {
    font-size: 16px;
}

#pricing-modal .yearly {
    display: flex;
}

#pricing-modal .monthly-price {
    display: none;
}

#pricing-modal.monthly .monthly-price {
    display: block;
}

#pricing-modal.monthly .yearly-price {
    display: none;
}

.sub-tier-sub-header {
    font-size: 27px;
    color: #ff0000;
    margin: -5px 0 0;
    text-align: center;
    display: flex;
    float: left;
    align-items: center;
    justify-content: center;
    font-family: "SourGummy", sans-serif;
    letter-spacing: 0.1px;
}

.sub-tier-sub-header .small {
    color: #ff9797;
}

.sub-tier-benefits {
    margin: 15px 0;
}

.sub-tier-benefits>span {
    float: left;
    margin-bottom: 12px;
    width: 100%;
    display: flex;
    /* align-content: center; */
    justify-content: space-between;
    line-height: 20px;
    font-size: 17px;
}

.sub-tier-benefits>span::before {
    /* content: ""; */
    color: #ff8f8f;
    font-size: 20px;
    float: left;
    margin: auto 5px auto 0;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjUxMnB4IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiIgd2lkdGg9IjUxMnB4IiB4bWw6c3BhY2U9InByZXNlcnZlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj48cGF0aCBmaWxsPSIjNmFmY2ZmIiBkPSJNNDQ4LDcxLjljLTE3LjMtMTMuNC00MS41LTkuMy01NC4xLDkuMUwyMTQsMzQ0LjJsLTk5LjEtMTA3LjNjLTE0LjYtMTYuNi0zOS4xLTE3LjQtNTQuNy0xLjggIGMtMTUuNiwxNS41LTE2LjQsNDEuNi0xLjcsNTguMWMwLDAsMTIwLjQsMTMzLjYsMTM3LjcsMTQ3YzE3LjMsMTMuNCw0MS41LDkuMyw1NC4xLTkuMWwyMDYuMy0zMDEuNyAgQzQ2OS4yLDExMC45LDQ2NS4zLDg1LjIsNDQ4LDcxLjl6Ii8+PC9zdmc+");
    background-size: contain;
}

#pricing-switch-wrap.switch-wrap {
    justify-content: end;
    grid-column: 3/ 4;
}

.choose-sub {
    padding: 5px 20px;
    width: 100%;
    box-sizing: border-box;
    background-color: #f0f0f0;
    margin-top: 15px;
    color: #000;
    margin: auto 0 0;
    text-align: center;
    border-radius: 5px;
}

.choose-sub:hover {
    text-decoration: none;
    color: #000;
}

#header-menu {
    margin: 25px 0 0;
    /* padding: 0 0 10px; */
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 5px;
    float: left;
    width: 100%;
}

#map-modal {
    width: 100%;
    height: 100%;
    margin: auto;
}

#map-modal h3 {
    z-index: 111;
    position: fixed;
    margin: 0 auto;
    left: 0;
    right: 0;
    top: 15px;
    justify-content: center;
}

.modal-wrap.map {
    top: 0;
    bottom: 0;
    overflow: scroll;
}

.map .modal {
    border: none;
    background-color: transparent;
    padding: 0;
    pointer-events: none;
    max-width: 100vw;
    max-height: 100vh;
}

#map-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    position: fixed;
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    padding: 64px;
    overflow: auto;
    pointer-events: all;
}

#map {
    position: relative;
    pointer-events: none;
    margin: auto;
}

#map .zone {
    pointer-events: all;
    width: 146px;
    height: 146px;
    cursor: pointer;
    position: relative;
    border-radius: 5px;
}

#map .zone .zone-name {
    font-size: 15px;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    padding: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: "SourGummy";
    letter-spacing: 0.1px;
}

.zone .zone-type {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 5px;
    font-size: 13px;
    overflow: hidden;
    white-space: normal;
    text-overflow: ellipsis;
}

#thing-modal h4,
#thing-modal p.thing-p,
.spell-item .thing-p {
    background-color: transparent;
}

.zone,
.place,
.zone-modal,
.place-modal,
.place-modal .highlight,
.zone-modal .highlight {
    color: #000000;
}

.zone,
.place,
.zone-modal,
.place-modal {
    background-color: #9acd32;
}

#map>.zone:hover {
    border: none;
}

.zone.dark-green,
.place.dark-green,
.dark-green .modal {
    background-color: #184c00;
    color: #6dff9b;
}

.zone.olive-green,
.place.olive-green,
.olive-green .modal {
    background-color: #2e8b57;
    color: #d2ffd3;
    text-shadow: 1px 1px black;
}

.zone.dark-olive-green,
.place.dark-olive-green,
.dark-olive-green .modal {
    background-color: #008080;
    color: #d2ffd3;
    text-shadow: 1px 1px black;
}

.zone.gray,
.place.gray,
.gray .modal {
    background-color: #d3d3d3;
}

.zone.dark-gray,
.place.dark-gray,
.dark-gray .modal {
    background-color: #333;
    color: #ccc;
}

.zone.blueish-green,
.place.blueish-green,
.blueish-green .modal {
    background-color: #72bdc1;
}

.zone.soggy-green,
.place.soggy-green,
.soggy-green .modal {
    color: #ecffaa;
    text-shadow: 1px 1px black;
    background-color: #597200;
}

.zone.orange,
.place.orange,
.orange .modal {
    background-color: #f4a460;
}

.zone.yellowish-orange,
.place.yellowish-orange,
.yellowish-orange .modal {
    background-color: #daa520;
}

.zone.grayish-green,
.place.grayish-green,
.grayish-green .modal {
    background-color: #4f6c21;
    color: #e1ffff;
    text-shadow: 1px 1px black;
}

.zone.yellowish-brown,
.place.yellowish-brown,
.yellowish-brown .modal {
    background-color: #deb887;
}

.zone.blue,
.place.blue,
.blue .modal {
    background-color: #4682b4;
    color: #f0f0f0;
    text-shadow: 1px 1px black;
}

.zone.red,
.place.red,
.red .modal {
    background-color: #ff4500;
    color: #000;
}

.zone.whiteish-green,
.place.whiteish-green,
.whiteish-green .modal {
    /* background-color: #afeeee; */
    background-color: #005c2a;
    color: #afeeee;
}

.zone.white,
.place.white,
.white .modal {
    background-color: #f0ffff;
}

.zone.whiteish-gray,
.place.whiteish-gray,
.whiteish-gray .modal {
    background-color: #d1d1d1;
    color: #000;
}

.zone.brownish-gray,
.place.brownish-gray,
.brownish-gray .modal {
    background-color: #827e4a;
    color: #fff9db;
    text-shadow: 1px 1px black;
}

.deep-red .modal,
.place.deep-red,
.zone.deep-red {
    background-color: #8f1e1e;
    border-color: #630000;
    color: #ffdddd;
    text-shadow: 1px 1px black;
}

.zone.medium-gray,
.place.medium-gray,
.medium-gray .modal {
    background-color: #808080;
    color: #f0f0f0;
    text-shadow: 1px 1px black;
}

.zone.reddish-brown,
.place.reddish-brown,
.reddish-brown .modal {
    background-color: #8b4513;
    border-color: #6b3503;
    color: #f0f0f0;
    text-shadow: 1px 1px black;
}

.zone.green,
.place.green,
.green .modal {
    background-color: #9acd32;
}

.zone.yellow,
.place.yellow,
.yellow .modal {
    background-color: #e1c00f;
    color: #000000;
}

ul li {
    margin-bottom: 5px;
}

ul.cookies li {
    text-overflow: ellipsis;
    overflow-x: hidden;
    white-space: nowrap;
}

.italic {
    font-style: italic;
}

#mobile-bot-bar {
    position: fixed;
    bottom: 0;
    right: 0;
}

/* Menu Btn */
.menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 22px;
    width: 22px;
}

.menu-btn .bar {
    height: 4px;
    width: 100%;
    background-color: black;
    transition: all 0.25s linear;

}

.menu-btn:hover {
    cursor: pointer;
}

.x:nth-of-type(1) {
    transition: all 0.25s linear;
    transform: rotate(45deg);
    transform-origin: top left;
    width: 28px;
    margin: -2px 0 0 2px;
}

.x:nth-of-type(2) {
    transition: all 0.25s linear;
    transform-origin: center;
    width: 0;
}

.x:nth-of-type(3) {
    transition: all 0.25s linear;
    transform: rotate(-45deg);
    transform-origin: bottom left;
    width: 28px;
    margin-left: 2px;
}

#mobile-bot-bar button#menu-btn,
#mobile-bot-bar button#search-btn,
#mobile-bot-bar button#share-btn,
#plus-btn,
#site-header-right button#share-btn,
#update-btn {
    width: 50px;
    height: 50px;
    background: #f0f0f0;
    border-radius: 100%;
    cursor: pointer;
    border: none;
    float: right;
    margin: 0 15px 15px 0;
    text-align: center;
}

#mobile-bot-bar button#menu-btn {
    display: flex;
    padding: 15px;
}

#plus-btn,
#update-btn {
    visibility: hidden;
    bottom: 65px;
    position: absolute;
    right: 0;
    opacity: 0;
}

.loaded #plus-btn,
.loaded #update-btn {
    transition: all 0.25s ease-in;
}

#plus-btn svg,
#update-btn svg {
    margin: 0 0 -3px;
}

#plus-btn.visible,
#update-btn.visible {
    visibility: visible;
    opacity: 1;
}

#mobile-bot-bar button#menu-btn {
    display: none;
}

#mobile-bot-bar button#menu-btn svg,
#mobile-bot-bar button#search-btn svg,
#mobile-bot-bar button#share-btn svg {
    width: 25px;
    height: 25px;
    margin-top: 3px;
    fill: #0b1521;
}

#mobile-bot-bar button#menu-btn svg {
    width: 23px;
    height: 23px;
    margin-top: 3px;
}

#mobile-bot-bar button#share-btn svg {
    margin-left: -2px;
}

#site-content.hidden {
    display: none;
}

.share {
    float: right;
}

#share-btns-wrap.visible {
    opacity: 1;
    visibility: visible;
}

#share-btns-wrap {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    z-index: 101;
    bottom: 71px;
    width: 69px;
    margin-left: -11px;
    box-sizing: border-box;
    padding: 10px;
    border-radius: 35px;
    background: none;
    transition: opacity 0.25s ease-in;
    text-align: center;
}

.share-img {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    border: none;
    padding: 0;
    margin: 0 0 15px;
    color: inherit;
    width: 50px;
    height: 50px;
    border-radius: 100%;
    background: #f0f0f0;
    transition: background-color 0.5s;
    float: left;
    overflow: hidden;
}

.share-img:last-of-type {
    margin-bottom: 0;
}

.share-img svg path {
    fill: #0b1521;
}

#fb-svg {
    margin: 0 -4px -21px 0;
    width: 17px;
    height: auto;
}

#tw-svg {
    width: 27px;
    height: auto;
    margin: 6px 0 0;
}

#em-svg {
    width: 26px;
    height: auto;
    margin: 5px 0 0 1px;
}

#link-svg {
    width: 23px;
    height: auto;
    margin: 13px 0 0;
}

#title-field,
#url-field {
    position: absolute;
    left: -999999px;
}

/* CSS */
.dropdown-wrap {
    position: relative;
    box-sizing: border-box;
    background-color: #122236;
    background-color: #000;
    text-shadow: 2px 2px 0px #284261;
    color: inherit;
    margin-bottom: 10px;
    font-size: inherit;
    border: 1px solid #ff9797;
    width: calc(100% + 20px);
    text-align: left;
    margin-left: -10px;
}

.dropdown-wrap button {
    border: none;
    padding: 10px;
    background: none;
    color: #f0f0f0;
    font-size: inherit;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.dropdown-wrap button:hover {
    background-color: #ff9797;
}

.dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.expanded .dropdown-menu {
    max-height: 250px;
}

.dropdown-button::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 18px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #f0f0f0;
    /* Arrow color */

    /* Rounded edges */
    transition: transform 0.25s ease-in-out;
}

.expanded .dropdown-button::after {
    transform: translateY(-50%) rotate(180deg);
}

input,
textarea,
select,
.textarea-div {
    font-family: inherit;
    border-radius: 5px;
}

input:focus {
    outline: none;
    border-color: #f0f0f0;
}

input,
textarea,
select,
.textarea-div {
    font-size: 18px;
}

button {
    font-family: "SourGummy", monospace;
    font-weight: normal;
    color: #000;
    border-radius: 5px;
    border: none;
}

/* Scrollbars */

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    opacity: 0;
    background: #000;
    background: transparent;
    width: 0;
}

::-webkit-scrollbar-thumb {
    background: #464646;
    border-radius: 0;
    border-radius: 2px;
}

body.rec::-webkit-scrollbar-thumb {
    background: #122236;
    transition: all 0.25s ease-in-out;
}

::-webkit-scrollbar-thumb:active,
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 126, 126, 0.59);
    border: 1px solid rgba(255, 126, 126, 0.59);
}

::-webkit-scrollbar-corner {
    background: #122236;
}

.hidden {
    display: none;
}

.output-list {
    float: left;
    width: 100%;
}

.output-item {
    float: left;
    width: 100%;
    padding: 5px 20px 15px;
    margin: 0 -20px 55px;
    border: 1px solid #ff9797;
    border-radius: 5px;
    position: relative;
}

.output-item:first-of-type {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ff9797;
}

.output-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    border-bottom: 1px solid #ff9797;
}

.output-item h3 {
    margin: 5px 0 0;
}

.game-faq-wrap {
    text-align: center;
    padding: 25px 25px 0;
    box-sizing: border-box;
}

.game-faq-item {
    margin-bottom: 15px;
}

.narration-button {
    margin-bottom: 15px;
}

button.one,
button.two,
button.three,
button.four,
button.five,
button.six,
button.seven,
button.eight,
button.nine,
button.zero,
button.info-clicker {
    font-family: "SourGummy", monospace;
}

#autoplay-checkbox {
    display: none;
    margin: 2px auto 10px;
    width: 82px;
    padding-left: 27px;
}

#autoplay-checkbox span {
    margin-top: -10px;
}

.audio-progress-container {
    height: 18px;
    background-color: #ddd;
    margin: 10px 0;
    display: inline-block;
    width: calc(100% - 50px);
}

.audio-progress-bar {
    height: 100%;
    background-color: #d30000;
    width: 0%;
    transition-property: width;
    transition-timing-function: linear;
}

.voice-legend {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    padding: 5px;
    background-color: #f9f9f9;
    border-radius: 3px;
}

.audio-progress-container {
    height: 20px;
    background-color: #000000;
    border-radius: 20px;
    margin: 10px 0;
    overflow: hidden;
    display: inline-block;
    width: calc(100% - 50px);
    position: relative;
    border: 1px solid #ff9797;
}

.audio-progress-bar {
    height: 100%;
    background-color: #893e3e;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
    z-index: 2;
    border-radius: 20px;
}

.segment-markers-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.segment-marker {
    position: absolute;
    top: 0;
    height: 100%;
    width: 1.5px;
    background-color: #ff9797;
}

.audio-status-text {
    display: none;
}

/* Add these styles to your CSS */
.audio-progress-container {
    cursor: pointer;
    position: relative;
}

.segment-marker.hover {
    background-color: red;
}

.hover-part-indicator {
    position: absolute;
    height: 100%;
    background-color: rgba(255, 126, 126, 0.59);
    pointer-events: none;
    z-index: 2;
    top: 0;
}

.audio-progress-container {
    position: relative;
    overflow: hidden;
}

.item {
    padding: 0 15px;
    margin: 0 -10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.wiki .item,
.profile .item {
    border: 1px solid #ff9797;
    margin: 15px 5px;
    padding: 0 0 15px;
}

.wiki .description {
    padding: 0 15px;
}

.wiki .races-container .race-item {
    padding-bottom: 0;
}

.wiki .thing-p {
    background: none;
}

.races-modal .thing-p {
    background-color: transparent;
}

/* Just overriding .item set for other stuff than thin tags */
thing.item,
.thing-interactive.item {
    margin: 0;
    padding: 0px 2px;
}

thing.quest,
.thing-interactive.quest {
    background-color: #333;
    color: #e6c284;
}

/* Add a tooltip style */
.part-tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 12px;
    pointer-events: none;
    transform: translateX(-50%);
    bottom: 100%;
    margin-bottom: 5px;
    white-space: nowrap;
    z-index: 10;
}

.voice-legend-item {
    display: flex;
    align-items: center;
    margin-right: 15px;
    margin-bottom: 5px;
}

.voice-color-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}

#streaming-audio-element {
    display: none;
    /* Hide the native audio controls */
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media all and (max-width: 1200px) {
    #pricing-modal.modal {
        row-gap: 20px;
        width: 350px;
    }

    #pricing-modal h3,
    #pricing-modal.modal .sub-tier {
        grid-column: 1/4;
        justify-content: center;
    }

    #pricing-modal h3 {
        text-align: center;
    }

    #pricing-tiers {
        grid-template-columns: 1fr;
    }

    #pricing-tiers .sub-tier {
        grid-column: 1/2;
    }
}

@media (max-width: 1000px) {
    #site-wrap {
        width: 100%;
        padding: 0 15px;
    }

    #site-content-wrap {
        margin: 0 50px 50px;
    }
}

@media (max-width: 800px) {
    #something a {
        margin-bottom: 25px;
    }
}


@media (min-width: 701px) {
    h1#entry-title {
        margin-bottom: 10px;
    }
}

@media (max-width: 700px) {
    h2 {
        font-size: 23px;
    }

    h3 {
        font-size: 23px;
    }

    #site-content-wrap {
        margin: 0 10px 50px;
    }

    h1#entry-title {
        margin-top: 15px;
        margin-bottom: 5px;
    }

    h1#entry-title>span {
        padding: 0px 9px;
    }

    h1#entry-title .asset-name,
    h1#entry-title .asset-type {
        font-size: 11px;
    }

    h2.chart-page-separator {
        font-size: 24px;
    }

    .settings-wrap,
    #show-more-settings {
        grid-template-columns: 1fr;
    }

    #game-text-wrap {
        padding: 0 15px;
    }

    .settings-wrap label {
        margin: 0 0 -5px;
        text-align: center;
        padding-bottom: 0;
        display: flex;
        justify-content: space-between;
    }

    .generate-btn-wrap>div {
        width: fit-content;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .output-item-footer {
        flex-direction: column;
        gap: 15px;
        margin-top: 15px;
    }

    .image-footer {
        flex-direction: column;
        gap: 15px;
    }

    .generate-btn-wrap {
        flex-direction: column;
    }

    .generate-btn-wrap input,
    .output-item-footer input {
        width: 100px;
        box-sizing: border-box;
    }

    .settings-wrap button.info-clicker {
        left: unset;
        right: 0;
    }

    #affiliate-register,
    #affiliate-dashboard {
        float: none;
    }

    #site-wrap {
        padding: 0;
    }

    #game-text-wrap,
    #user-turn-input,
    .page-content,
    .settings-wrap {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    #game-text-wrap,
    #user-turn-input,
    .page-content,
    footer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Interactive Story & Content Moderation Styles */

/* Story creation headers and controls */
.edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

.edit-header h2 {
    margin: 0;
}

.view-btn {
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.view-btn:hover {
    opacity: 0.9;
}

.character-counter {
    text-align: right;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: #ccc;
    /* Brighter for dark backgrounds */
}

.interactive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(248, 249, 250, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(222, 226, 230, 0.2);
}

.interactive-audio-player {
    float: left;
    width: 100%;
    text-align: center;
}

.story-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    float: left;
}

.autoplay-control,
.autoplay-control-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #bbb;
    /* Brighter for dark backgrounds */
}

.autoplay-control-inline {
    display: none;
}

.new-story-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.story-mode-description {
    color: #aaa;
    /* Brighter for dark backgrounds */
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

#story-display-area {
    margin-bottom: 2rem;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid rgba(222, 226, 230, 0.3);
    border-radius: 8px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
}

.story-turn {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 6px;
    position: relative;
}

.story-turn.user-turn {
    background: rgba(240, 248, 255, 0.1);
    border-left: 4px solid #007bff;
}

.story-turn.ai-turn {
    background: rgba(248, 249, 250, 0.1);
    border-left: 4px solid #28a745;
}

.turn-header {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #ccc;
    /* Brighter for dark backgrounds */
}

.turn-content {
    line-height: 1.6;
    color: #eee;
    /* Much brighter for dark backgrounds */
}

.input-wrap-interactive {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.generate-btn.ai {
    background-color: #28a745;
    border-color: #28a745;
}

.generate-btn.ai:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.loading-turn {
    padding: 1rem;
    text-align: center;
    font-style: italic;
    border: 2px dashed rgba(222, 226, 230, 0.4);
    border-radius: 6px;
    margin: 1rem 0;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%,
    100% {
        content: '...';
    }
}

/* Content Moderation Error Styles */
.moderation-error {
    margin: 1.5rem;
    border: 1px solid #dc3545;
    border-radius: 8px;
    /* background: rgba(248, 215, 218, 0.9); */
    color: #ec3b4c;
    animation: slideDown 0.3s ease;
    position: relative;
}

.moderation-error.persistent-warning {
    /* border-width: 3px; */
    /* border-color: #b02a37; */
    /* box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3); */
}

.moderation-error-content {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    gap: 1rem;
}

.moderation-error-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.moderation-error-text {
    flex: 1;
}

.moderation-error-text strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.moderation-error-text p {
    margin: 0.5rem 0;
    line-height: 1.4;
}

.moderation-note {
    font-size: 0.9rem;
    color: #856404;
}

.moderation-note a {
    color: #007bff;
    text-decoration: underline;
}

.moderation-dismiss-note {
    font-size: 0.8rem;
    margin-top: 0.75rem;
    opacity: 0.8;
    font-style: italic;
    color: #856404;
}

.moderation-error-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #ec3b4c;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.moderation-error-close:hover {
    background-color: rgba(114, 28, 36, 0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes moderationFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

@keyframes moderationPulse {

    0%,
    100% {
        box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
    }

    50% {
        box-shadow: 0 8px 25px rgba(220, 53, 69, 0.5);
    }
}

/* Story content paragraph styling */
.story-content p {
    margin-bottom: 1.5rem;
    margin-top: 0;
    color: #e5e5e5;
    /* Much brighter for dark backgrounds */
}

.story-content p:last-child {
    margin-bottom: 0;
}

/* Audio time display styling */
.audio-time-display {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ddd;
    /* Brighter for dark backgrounds */
    margin: 0.5rem 0;
}

/* Audio player wrapper styling */
#story-audio-player-wrap {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

/* Story page styling */
.story-header {
    /* display: none; */
    /* margin-bottom: 2rem; */
    /* padding-bottom: 1rem; */
    /* border-bottom: 2px solid rgba(238, 238, 238, 0.3); */
}

.story-header h1 {
    margin: 15px 0;
    color: #eee;
    /* Brighter for dark backgrounds */
}

.story-description {
    margin: -25px 0 0;
}

.story-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: #aaa;
    /* Brighter for dark backgrounds */
    margin-bottom: 1rem;
}

.story-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.story-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.story-actions .btn {
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-edit {
    background: #007bff;
    color: white;
}

.btn-edit:hover {
    background: #0056b3;
}

.story-content {
    margin: 25px 0 0;
}

/* Edit page specific styling */
.edit-header .view-btn {
    background: #6c757d;
    color: white;
}

.edit-header .view-btn:hover {
    background: #5a6268;
}

/* Story page additional styling */
.story-niches,
.story-people {
    margin: 0.5rem 0;
    color: #ccc;
    /* Brighter for dark backgrounds */
}

.edit-btn,
.write-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.edit-btn {
    background: #007cba;
}

.edit-btn:hover {
    background: #005a87;
}

.write-btn {
    background: #28a745;
}

.write-btn:hover {
    background: #218838;
}

.story-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(238, 238, 238, 0.3);
    font-size: 0.9rem;
    color: #aaa;
    /* Brighter for dark backgrounds */
}

/* Edit page form styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #eee;
    /* Brighter for dark backgrounds */
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(221, 221, 221, 0.4);
    border-radius: 4px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #eee;
    /* Brighter for dark backgrounds */
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #007bff;
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* .btn-primary {
    background: #007bff;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
} */

.btn-primary:hover {
    background: #0056b3;
}

.btn-generate {
    background: #28a745;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 1rem;
}

.btn-generate:hover {
    background: #218838;
}

.btn-generate:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.audio-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    background: rgba(248, 249, 250, 0.1);
    border: 1px solid rgba(222, 226, 230, 0.3);
    color: #eee;
    /* Brighter for dark backgrounds */
}

/* Edit page specific button styling */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.save-btn,
.audio-btn,
.download-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.save-btn {
    background: #28a745;
    color: white;
}

.save-btn:hover {
    background: #218838;
}

.audio-btn {
    background: #17a2b8;
    color: white;
}

.audio-btn:hover {
    background: #138496;
}

.download-btn {
    background: #6f42c1;
    color: white;
}

.download-btn:hover {
    background: #5a32a3;
}

.download-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(233, 236, 239, 0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress {
    height: 100%;
    background: #17a2b8;
    width: 0%;
    transition: width 0.3s;
}

.audio-player {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(248, 249, 250, 0.1);
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.audio-player h3 {
    margin: 0 0 1rem 0;
    color: #eee;
    /* Brighter for dark backgrounds */
    font-size: 1.2rem;
}

.audio-player audio {
    width: 100%;
}

/* Usage Limits & Patreon Integration Styles */

/* Usage counter display */
.usage-counter {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    font-size: 0.9rem;
}

.usage-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.usage-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.turns-remaining {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4CAF50;
}

.usage-counter.usage-warning .turns-remaining {
    color: #FF9800;
}

.usage-label {
    font-size: 0.8rem;
    color: #ccc;
}

.tier-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.tier-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    text-align: center;
}

.tier-badge.tier-free {
    background: #9E9E9E;
    color: white;
}

.tier-badge.tier-paid {
    background: linear-gradient(45deg, #FF6B35, #F7931E);
    color: white;
}

.upgrade-link {
    color: #FF6B35;
    text-decoration: none;
    font-size: 0.8rem;
    border: 1px solid #FF6B35;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.upgrade-link:hover {
    background: #FF6B35;
    color: white;
}

/* Usage limit error styles */
.usage-limit-error {
    margin-bottom: 1.5rem;
    border: 2px solid #FF9800;
    border-radius: 8px;
    background: rgba(255, 152, 0, 0.1);
    color: #E65100;
    animation: slideDown 0.3s ease;
}

.usage-error-content {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    gap: 1rem;
}

.usage-error-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.usage-error-text {
    flex: 1;
}

.usage-error-text strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #D84315;
}

.usage-error-text p {
    margin: 0.5rem 0;
    line-height: 1.4;
}

.upgrade-note {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 4px;
    border-left: 3px solid #FF6B35;
}

.upgrade-btn {
    background: linear-gradient(45deg, #FF6B35, #F7931E);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.2s ease;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

.usage-error-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #D84315;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.usage-error-close:hover {
    background-color: rgba(216, 67, 21, 0.1);
}

/* Disabled button styles for limits */
.disabled-by-limit {
    opacity: 0.5;
    cursor: not-allowed !important;
}

.disabled-by-limit:hover {
    background-color: #6c757d !important;
}

/* Responsive usage counter */
@media (max-width: 768px) {
    .usage-counter {
        position: static;
        margin-bottom: 1rem;
        width: 100%;
    }
}

/* Voice Selection Styles */

/* Compact voice selection for story creation */
.voice-selection-section {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(42, 42, 42, 0.9);
    border-radius: 8px;
    border: 1px solid #333;
}

.voice-selection-section h4 {
    margin-top: 0;
    color: #FF6B35;
    font-size: 1.1rem;
}

.voice-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.voice-option-compact {
    transition: transform 0.2s ease;
}

.voice-option-compact:hover {
    transform: translateY(-1px);
}

.voice-option-compact input[type="radio"] {
    display: none;
}

.voice-option-compact input[type="radio"]:checked+.voice-card-compact {
    border-color: #FF6B35;
    background: rgba(255, 107, 53, 0.1);
}

.voice-card-compact {
    border: 2px solid #555;
    border-radius: 6px;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.voice-card-compact:hover {
    border-color: #777;
    background: rgba(0, 0, 0, 0.5);
}

.voice-name {
    font-weight: bold;
    color: #eee;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.voice-meta-compact {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
}

.gender-badge-compact {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.gender-badge-compact.male {
    background: #2196F3;
}

.gender-badge-compact.female {
    background: #E91E63;
}

.accent-compact {
    font-size: 0.8rem;
    color: #bbb;
}

.voice-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #aaa;
    text-align: center;
}

.voice-note a {
    color: #FF6B35;
    text-decoration: none;
}

.voice-note a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .voice-grid-compact {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.5rem;
    }

    .voice-card-compact {
        padding: 0.75rem;
    }

    .voice-name {
        font-size: 0.85rem;
    }
}

/* AI Voice Actor Selection Dropdown */

.voice-actor-selection {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(42, 42, 42, 0.9);
    border-radius: 8px;
    border: 1px solid #333;
}

.voice-actor-selection h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #FF6B35;
    font-size: 1.1rem;
}

.voice-actor-selection p {
    margin: 0 0 1rem 0;
    color: #bbb;
    font-size: 0.9rem;
}

.voice-dropdown-wrap {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.voice-select {
    flex: 1;
    /* padding: 0.75rem; */
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #555;
    border-radius: 6px;
    color: #eee;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.voice-select:focus {
    outline: none;
    border-color: #FF6B35;
}

.voice-select optgroup {
    background: #2a2a2a;
    color: #FF6B35;
    font-weight: bold;
    font-size: 0.85rem;
}

.voice-select option {
    background: #1a1a1a;
    color: #eee;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.voice-select option:hover,
.voice-select option:focus {
    background: #333;
}

.btn-voice-preview {
    background: #666;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-voice-preview:hover {
    background: #777;
    transform: translateY(-1px);
}

.btn-voice-preview:disabled {
    background: #444;
    cursor: not-allowed;
    transform: none;
}

.voice-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #aaa;
}

#voice-description {
    font-style: italic;
}

.voice-browse-link {
    color: #FF6B35;
    text-decoration: none;
    font-weight: bold;
}

.voice-browse-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .voice-dropdown-wrap {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-voice-preview {
        width: 100%;
    }

    .voice-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Incognito Mode Styles - Hide logo and story text, show only audio */

/* Only hide logo/header on story pages in incognito mode */
.incognito-mode.story #logo,
.incognito-mode.story .logo-wrap,
.incognito-mode.story .header-wrap {
    display: none !important;
}

/* Only hide story content in incognito mode, not account page content */
.incognito-mode.story .story-content,
.incognito-mode.story .story-text,
.incognito-mode.story .story-description,
.incognito-mode.story .story-niches,
.incognito-mode.story .story-people,
.incognito-mode.story .story-title,
.incognito-mode.story h1,
.incognito-mode.story h2,
.incognito-mode.story h3,
.incognito-mode.story p:not(.audio-player p):not(.custom-audio-player p),
.incognito-mode.story .page-content>*:not(.audio-player):not(.custom-audio-player):not(.story-actions) {
    display: none !important;
}

/* Only show audio elements on story pages in incognito mode */
.incognito-mode.story .audio-player,
.incognito-mode.story .custom-audio-player,
.incognito-mode.story .audio-controls,
.incognito-mode.story .story-actions {
    display: block !important;
    visibility: visible !important;
}

/* Only apply special layout on story pages in incognito mode */
.incognito-mode.story #site-wrap {
    background: #000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.incognito-mode.story #page-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.incognito-mode.story body {
    background: #000 !important;
    color: #fff;
}

/* Show minimal story info in incognito mode - only on story pages */
.incognito-mode.story .story-actions {
    background: rgba(42, 42, 42, 0.8);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.incognito-mode.story .story-actions a {
    color: #FF6B35;
    text-decoration: none;
    margin-right: 1rem;
}

.incognito-mode.story .story-actions a:hover {
    text-decoration: underline;
}

/* Incognito mode notice - REMOVED by user request */

/* Something (Advertisement System) Styles */

#something-wrap {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 400px;
    width: 90%;
    animation: somethingSlideIn 0.5s ease-out;
}

#something-wrap.something-active {
    display: block !important;
}

#something {
    padding: 0;
    margin: 0;
    position: relative;
    transition: opacity 0.3s ease;
}

.something-content {
    padding: 2rem;
    color: white;
    text-align: center;
}

.something-header {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
}

.something-header h4 {
    margin: 0;
    font-size: 1.3rem;
    color: #FF6B35;
    font-weight: bold;
}

.something-body {
    margin-bottom: 1.5rem;
}

.something-body p {
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #eee;
}

.something-btn {
    display: inline-block;
    background: linear-gradient(45deg, #FF6B35, #F7931E);
    color: white;
    text-decoration: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.something-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    background: linear-gradient(45deg, #e55a2b, #e0851a);
}

.something-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.something-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

@keyframes somethingSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes somethingSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Loading overlay when something is active */
#something-wrap::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* Responsive design for something */
@media (max-width: 768px) {
    #something-wrap {
        max-width: 350px;
        width: 95%;
    }

    .something-content {
        padding: 1.5rem;
    }

    .something-header h4 {
        font-size: 1.1rem;
    }

    .something-body p {
        font-size: 0.9rem;
    }

    .something-btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.85rem;
    }

    h1 {
        font-size: 28px;
    }
}

/* Hide something when user is premium (if you want) */
.premium-user #something-wrap {
    display: none !important;
}

/* Privacy Settings Styling */
.privacy-settings {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.privacy-settings h4 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.privacy-checkbox .privacy-label strong {
    display: block;
    color: #495057;
    margin-bottom: 4px;
}

.privacy-checkbox .privacy-label small {
    color: #6c757d;
    font-size: 0.85em;
    line-height: 1.4;
}

/* Account Page Privacy Management */
.stories-privacy-list {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.story-privacy-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
}

.story-privacy-item:last-child {
    border-bottom: none;
}

.story-privacy-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-left: 15px;
}


/* Enhanced Premium Features Showcase */
.premium-features-showcase {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #000000;
    padding: 30px;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.current-tier-status {
    text-align: center;
    margin-bottom: 25px;
}

.current-tier-status h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.4em;
}

.tier-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-badge.tier-free {
    background: rgba(108, 117, 125, 0.2);
    border: 2px solid #6c757d;
    color: #ffffff;
}

.tier-badge.tier-tier2 {
    background: rgba(40, 167, 69, 0.2);
    border: 2px solid #28a745;
    color: #ffffff;
}

.tier-badge.tier-tier3 {
    background: rgba(0, 123, 255, 0.2);
    border: 2px solid #007bff;
    color: #ffffff;
}

.upgrade-benefits {
    text-align: center;
    margin-bottom: 30px;
}

.upgrade-benefits h4 {
    color: white;
    margin-bottom: 8px;
    font-size: 1.2em;
}

.upgrade-benefits p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1em;
}

.tier-comparison-enhanced {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.tier-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.tier-card.recommended {
    border-color: #28a745;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.4);
}

.tier-card.premium {
    border-color: #007bff;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.4);
}

.tier-header {
    padding: 20px;
    text-align: center;
    position: relative;
}

.tier-header.tier-free {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.tier-header.tier-2 {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.tier-header.tier-3 {
    background: linear-gradient(135deg, #007bff, #6610f2);
}

.tier-header h4 {
    color: white;
    margin: 0 0 8px 0;
    font-size: 1.3em;
    font-weight: bold;
}

.tier-price {
    color: white;
    font-size: 1.8em;
    font-weight: bold;
    display: block;
}

.tier-badge-small {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
}

.tier-features {
    padding: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    margin-bottom: 12px;
    /* color: white; */
    font-size: 0.95em;
}

.feature-item.disabled {
    opacity: 0.5;
    text-decoration: line-through;
}

.feature-icon {
    font-size: 1.2em;
    width: 24px;
    text-align: center;
}

.tier-status {
    background: rgba(108, 117, 125, 0.3);
    color: white;
    text-align: center;
    padding: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9em;
}

.tier-upgrade-btn {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px 20px;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.tier-status {
    margin-top: auto;
}

.tier-2-btn {
    background: #28a745;
    color: white;
}

.tier-2-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.tier-3-btn {
    background: #007bff;
    color: white;
}

.tier-3-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.upgrade-cta {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.upgrade-cta p {
    color: white;
    margin: 0;
    font-size: 1.1em;
}

/* Mobile responsiveness */
@media (max-width: 1200px) {
    .tier-comparison-enhanced {
        gap: 15px;
    }

    .tier-card {
        min-width: 0;
        /* Allow cards to shrink below their content width */
    }

    .tier-header h4 {
        font-size: 1.1em;
    }

    .tier-price {
        font-size: 1.5em;
    }

    .feature-item {
        font-size: 0.9em;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .tier-comparison-enhanced {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .premium-features-showcase {
        padding: 20px;
        margin: 20px 0;
        max-width: none;
    }

    .tier-price {
        font-size: 1.5em;
    }

    .current-tier-status h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .feature-item {
        font-size: 0.9em;
    }

    .tier-header h4 {
        font-size: 1.1em;
    }

    .upgrade-cta p {
        font-size: 1em;
    }
}


/* Welcome page specific styling */
#welcome-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

#welcome-wrap .premium-features-showcase {
    margin-bottom: 40px;
}

.welcome-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.welcome-actions .default-btn {
    padding: 12px 24px;
    font-size: 1.1em;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.welcome-actions .default-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .welcome-actions {
        flex-direction: column;
        align-items: center;
    }

    .welcome-actions .default-btn {
        width: 200px;
    }
}

/* Story Form Enhancements */
.input-group {
    margin-bottom: 25px;
}

.input-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.story-title-input,
.story-tags-input {
    width: 100%;
    /* padding: 12px 16px; */
    /* font-size: 16px; */
    /* border: 2px solid #e0e0e0; */
    /* border-radius: 8px; */
    background: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.story-title-input:focus,
.story-tags-input:focus {
    /* outline: none; */
    /* border-color: #667eea; */
    /* background: #fbfcff; */
    /* box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); */
}

.story-title-input::placeholder,
.story-tags-input::placeholder {
    color: #999;
    font-style: italic;
}

.input-help {
    margin-top: 6px;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Dark mode support for new fields */
.input-label {
    color: #e0e0e0;
}

.story-title-input,
.story-tags-input {
    background: #2a2a2a;
    border-color: #404040;
    color: #e0e0e0;
}

.story-title-input:focus,
.story-tags-input:focus {
    /* background: #333; */
    /* border-color: #667eea; */
}

.story-title-input::placeholder,
.story-tags-input::placeholder {
    color: #888;
}

.input-help {
    color: #aaa;
}

/* Story Tags Display */
.story-tags {
    margin: 10px 0 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.story-tags .tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.story-tags .tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Dark mode for tags */
@media (prefers-color-scheme: dark) {
    .story-tags .tag {
        background: linear-gradient(135deg, #4c63d2 0%, #5a52a2 100%);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .story-tags .tag:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    }
}

/* Browse Stories Page */
.browse-stories {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.browse-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.browse-header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 700;
}

.browse-header p {
    font-size: 1.1em;
    opacity: 0.9;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.browse-actions {
    margin-top: 20px;
}

.browse-actions .btn {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.browse-actions .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.story-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.story-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.story-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    margin-right: 15px;
}

.story-date {
    font-size: 0.9em;
    color: #888;
    white-space: nowrap;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.story-card .story-tags {
    margin: 15px 0;
}

.story-card .story-tags .tag {
    font-size: 0.8em;
    padding: 4px 10px;
    margin-right: 6px;
    margin-bottom: 6px;
}

.story-description p {
    color: #555;
    margin: 0;
    font-size: 0.95em;
}

.story-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.story-type {
    font-size: 0.85em;
    color: #667eea;
    font-weight: 600;
}

.story-privacy {
    font-size: 0.8em;
    color: #dc3545;
    font-weight: 600;
    margin-left: 10px;
    background: rgba(220, 53, 69, 0.1);
    padding: 2px 6px;
    border-radius: 12px;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.read-story-btn {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.story-card:hover .read-story-btn {
    color: #764ba2;
    transform: translateX(5px);
}

.no-stories {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 40px 0;
}

.no-stories-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.6;
}

.no-stories h3 {
    color: #555;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.no-stories p {
    color: #777;
    margin-bottom: 25px;
}

.browse-footer {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-top: 30px;
}

.browse-footer p {
    color: #666;
    margin: 0;
}

.browse-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.browse-footer a:hover {
    text-decoration: underline;
}

/* Dark mode support for browse page */
@media (prefers-color-scheme: dark) {
    .browse-stories {
        color: #e0e0e0;
    }

    .story-card {
        background: #2a2a2a;
        border-color: #404040;
    }

    .story-card:hover {
        border-color: #667eea;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    }

    .story-title {
        color: #e0e0e0;
    }

    .story-date {
        background: #404040;
        color: #ccc;
    }

    .story-description p {
        color: #ccc;
    }

    .story-card-footer {
        border-top-color: #404040;
    }

    .no-stories,
    .browse-footer {
        background: #2a2a2a;
    }

    .no-stories h3 {
        color: #e0e0e0;
    }

    .no-stories p,
    .browse-footer p {
        color: #aaa;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .story-content {
        margin: 0;
        border: none;
    }

    .browse-stories {
        padding: 15px;
    }

    .browse-header {
        padding: 25px 15px;
        margin-bottom: 30px;
    }

    .browse-header h1 {
        font-size: 2em;
    }

    .stories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .story-card {
        padding: 20px;
    }

    .story-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .story-title {
        margin-right: 0;
        margin-bottom: 8px;
    }

    .story-date {
        align-self: flex-end;
    }
}

/* Tag Browsing Features */
.tag-breadcrumb {
    margin-top: 15px;
    font-size: 0.9em;
    opacity: 0.8;
}

.tag-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
}

.tag-breadcrumb a:hover {
    text-decoration: underline;
}

.popular-tags-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
}

.popular-tags-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: 600;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.tag-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    border-radius: 20px;
    padding: 2px;
    position: relative;
}

.tag-link:hover {
    transform: translateY(-2px);
}

.tag-link .tag {
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag-link:hover .tag {
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.3);
    transform: scale(1.05);
}

.tag-count {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    font-size: 0.75em;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

.browse-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-left: 10px;
}

.browse-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.no-stories-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.no-stories-actions .btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.no-stories-actions .btn-primary {
    background: #667eea;
    color: white;
}

.no-stories-actions .btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

.no-stories-actions .btn-secondary {
    background: #f7f8fc;
    color: #667eea;
    border: 2px solid #667eea;
}

.no-stories-actions .btn-secondary:hover {
    background: #667eea;
    color: white;
}

/* Story card tag links */
.story-card .story-tags .tag-link {
    display: inline-block;
    margin-right: 6px;
    margin-bottom: 6px;
}

.story-card .story-tags .tag-link .tag {
    font-size: 0.8em;
    padding: 4px 10px;
    transition: all 0.3s ease;
}

.story-card .story-tags .tag-link:hover .tag {
    background: linear-gradient(135deg, #5a52a2 0%, #667eea 100%);
    transform: scale(1.1);
}

/* Dark mode for tag features */
@media (prefers-color-scheme: dark) {
    .popular-tags-section {
        background: #2a2a2a;
        border: 1px solid #404040;
    }

    .popular-tags-section h3 {
        color: #e0e0e0;
    }

    .tag-count {
        background: rgba(102, 126, 234, 0.2);
        color: #8fa4f3;
    }

    .tag-breadcrumb a {
        color: rgba(224, 224, 224, 0.9);
    }

    .no-stories-actions .btn-secondary {
        background: #2a2a2a;
        color: #8fa4f3;
        border-color: #8fa4f3;
    }

    .no-stories-actions .btn-secondary:hover {
        background: #8fa4f3;
        color: #2a2a2a;
    }

    .story-privacy {
        background: rgba(220, 53, 69, 0.2);
        border-color: rgba(220, 53, 69, 0.4);
        color: #ff8a95;
    }
}

/* Privacy Toggle Styles */
.privacy-toggle-group {
    margin: 20px 0;
}

.privacy-toggle-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-top: 10px;
}

.privacy-toggle-wrap {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Toggle Switch for Paying Users */
.privacy-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

.privacy-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.privacy-slider {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    background-color: #ccc;
    border-radius: 30px;
    transition: background-color 0.3s ease;
}

.privacy-slider:before {
    content: "";
    position: absolute;
    height: 24px;
    width: 24px;
    left: 3px;
    top: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.privacy-checkbox:checked+.privacy-slider {
    background-color: #667eea;
}

.privacy-checkbox:checked+.privacy-slider:before {
    transform: translateX(30px);
}

.privacy-label {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.privacy-help {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* Locked State for Non-Paying Users */
.privacy-locked {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    border-radius: 12px;
    border: 2px solid #e17055;
}

.privacy-locked-icon {
    font-size: 24px;
    opacity: 0.8;
}

.privacy-locked-content {
    flex: 1;
}

.privacy-locked-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 8px;
}

.privacy-locked-text {
    font-size: 14px;
    color: #636e72;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.privacy-upgrade-btn {
    display: inline-block;
    background: #e17055;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.privacy-upgrade-btn:hover {
    background: #d63031;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

/* Dark Mode Support for Privacy Toggle */
@media (prefers-color-scheme: dark) {
    .privacy-toggle-container {
        background: #2a2a2a;
        border-color: #3a3a3a;
    }

    .privacy-label {
        color: #e0e0e0;
    }

    .privacy-help {
        color: #b0b0b0;
    }

    .privacy-locked {
        background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
        border-color: #4a4a4a;
    }

    .privacy-locked-title {
        color: #ffa726;
    }

    .privacy-locked-text {
        color: #b0b0b0;
    }

    .privacy-upgrade-btn {
        background: #ff7043;
    }

    .privacy-upgrade-btn:hover {
        background: #ff5722;
    }
}

/* Mobile responsive for privacy toggle */
@media (max-width: 768px) {
    .privacy-toggle-container {
        padding: 15px;
    }

    .privacy-locked {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .privacy-locked-icon {
        align-self: center;
    }

    .privacy-toggle {
        gap: 10px;
    }

    .privacy-label {
        font-size: 14px;
    }
}

/* Mobile responsive for tag features */
@media (max-width: 768px) {
    .popular-tags-section {
        padding: 20px 15px;
        margin-bottom: 25px;
    }

    .tags-cloud {
        gap: 8px;
    }

    .tag-link .tag {
        font-size: 0.75em;
        padding: 3px 8px;
    }

    .tag-count {
        font-size: 0.7em;
        padding: 1px 4px;
    }

    .no-stories-actions {
        flex-direction: column;
        align-items: center;
    }

    .browse-actions .btn-secondary {
        margin-left: 0;
        margin-top: 10px;
    }

    .browse-header .tag-breadcrumb {
        font-size: 0.85em;
    }
}

/* Story Edit Page */
#outer-edit-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

#edit-wrap {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
}

.edit-header h1 {
    font-size: 2em;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.view-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background: #f8f9fa;
    color: #667eea;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.view-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#edit-story-form .form-group {
    margin-bottom: 25px;
}

#edit-story-form label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 1.1em;
}

#edit-story-form input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

#edit-story-form input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #fafbff;
}

#edit-story-form .input-help {
    display: block;
    font-size: 0.85em;
    color: #6c757d;
    margin-top: 6px;
    font-style: italic;
}

.form-actions {
    display: flex;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    margin-top: 30px;
}

.save-btn,
.audio-btn,
.download-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.save-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    flex: 1;
}

.save-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.save-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.audio-btn {
    background: #f8f9fa;
    color: #667eea;
    border: 2px solid #667eea;
    flex-shrink: 0;
}

.audio-btn:hover:not(:disabled) {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.audio-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.download-btn {
    background: #f8f9fa;
    color: #6f42c1;
    border: 2px solid #6f42c1;
    flex-shrink: 0;
}

.download-btn:hover:not(:disabled) {
    background: #6f42c1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
}

.download-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Edit Message System */
.edit-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInMessage 0.3s ease;
}

.edit-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.edit-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.edit-message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Turn Navigation Styles */
.turn-navigator {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.turn-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.turn-counter {
    font-weight: 600;
    color: #495057;
    font-size: 1.1em;
}

.fork-notice {
    font-size: 0.9em;
    color: #6c757d;
    font-style: italic;
}

.fork-indicator {
    font-size: 0.85em;
    color: #28a745;
    font-weight: 500;
}

.turn-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.turn-btn {
    padding: 8px 16px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.turn-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
    color: white;
    text-decoration: none;
}

.turn-btn.turn-prev,
.turn-btn.turn-next {
    background: #28a745;
}

.turn-btn.turn-prev:hover,
.turn-btn.turn-next:hover {
    background: #1e7e34;
}

.turn-btn.turn-latest {
    background: #ffc107;
    color: #212529;
}

.turn-btn.turn-latest:hover {
    background: #e0a800;
    color: #212529;
}

.turn-btn.turn-first {
    background: #6c757d;
}

.turn-btn.turn-first:hover {
    background: #545b62;
}

/* Fork Options Styles */
.fork-options {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #fff8e1 0%, #fff3c4 100%);
    border: 1px solid #ffc107;
    border-radius: 8px;
    text-align: center;
}

.fork-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.fork-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #ee5a52 0%, #dd4b42 100%);
}

.fork-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.fork-login-prompt {
    color: #6c757d;
    font-style: italic;
    margin: 0;
}

.fork-login-prompt a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.fork-login-prompt a:hover {
    text-decoration: underline;
}

/* Author Notice Styles */
.author-notice {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.author-notice p {
    margin: 0;
    color: #1565c0;
    font-weight: 500;
}

.author-notice a {
    color: #0d47a1;
    text-decoration: none;
    font-weight: 600;
}

.author-notice a:hover {
    text-decoration: underline;
}

/* Dark Mode Support for Turn Navigation */
@media (prefers-color-scheme: dark) {
    .turn-navigator {
        background: #2d3748;
        border-color: #4a5568;
    }

    .turn-counter {
        color: #e2e8f0;
    }

    .fork-notice {
        color: #a0aec0;
    }

    .fork-options {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
        border-color: #718096;
    }

    .fork-login-prompt {
        color: #a0aec0;
    }

    .author-notice {
        background: #2d3748;
        border-color: #4a5568;
    }

    .author-notice p {
        color: #90cdf4;
    }

    .author-notice a {
        color: #63b3ed;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .turn-navigator {
        flex-direction: column;
        text-align: center;
    }

    .turn-controls {
        justify-content: center;
    }

    .turn-btn {
        font-size: 0.85em;
        padding: 6px 12px;
    }

    .fork-btn {
        font-size: 0.9em;
        padding: 10px 20px;
    }
}

@keyframes slideInMessage {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Audio Generation Status */
.audio-status {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 15px;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Audio Player Container */
#story-audio-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.audio-player h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: 600;
}

/* Dark mode for edit page */
@media (prefers-color-scheme: dark) {
    #edit-wrap {
        background: #2a2a2a;
        border-color: #404040;
        color: #e0e0e0;
    }

    .edit-header {
        border-bottom-color: #404040;
    }

    .edit-header h1 {
        color: #e0e0e0;
    }

    .view-btn {
        background: #404040;
        color: #8fa4f3;
        border-color: #505050;
    }

    .view-btn:hover {
        background: #8fa4f3;
        color: #2a2a2a;
    }

    #edit-story-form label {
        color: #e0e0e0;
    }

    #edit-story-form input[type="text"] {
        background: #404040;
        border-color: #505050;
        color: #e0e0e0;
    }

    #edit-story-form input[type="text"]:focus {
        background: #454545;
        border-color: #8fa4f3;
        box-shadow: 0 0 0 3px rgba(143, 164, 243, 0.2);
    }

    #edit-story-form .input-help {
        color: #aaa;
    }

    .form-actions {
        border-top-color: #404040;
    }

    .audio-btn {
        background: #404040;
        color: #8fa4f3;
        border-color: #8fa4f3;
    }

    .audio-btn:hover:not(:disabled) {
        background: #8fa4f3;
        color: #2a2a2a;
    }

    .audio-status {
        background: #3d3d3d;
        border-color: #555;
        color: #e0e0e0;
    }

    .audio-player h3 {
        color: #e0e0e0;
    }

    #story-audio-container {
        border-top-color: #404040;
    }
}

/* Mobile responsive for edit page */
@media (max-width: 768px) {
    #outer-edit-wrap {
        padding: 15px;
    }

    #edit-wrap {
        padding: 20px;
    }

    .edit-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .edit-header h1 {
        font-size: 1.6em;
    }

    .form-actions {
        flex-direction: column;
    }

    .save-btn,
    .audio-btn,
    .download-btn {
        width: 100%;
        justify-content: center;
    }

    .edit-message {
        padding: 12px 16px;
        font-size: 0.9em;
    }
}

/* Story Content Help Text */
.story-content-help {
    margin: 15px 0 20px 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border: 1px solid #d6e9ff;
    border-radius: 10px;
    position: relative;
}

.story-content-help .input-help {
    display: block;
    font-size: 0.9em;
    color: #4a5568;
    margin: 0;
    line-height: 1.6;
    font-style: normal;
    font-weight: 500;
}

.story-content-help strong {
    color: #667eea;
    font-weight: 700;
}

/* Dark mode for story content help */
@media (prefers-color-scheme: dark) {
    .story-content-help {
        background: linear-gradient(135deg, #2d3748 0%, #1a2332 100%);
        border-color: #4a5568;
    }

    .story-content-help .input-help {
        color: #cbd5e0;
    }

    .story-content-help strong {
        color: #90cdf4;
    }
}

/* Mobile responsive for story content help */
@media (max-width: 768px) {
    .story-content-help {
        margin: 12px 0 18px 0;
        padding: 12px 16px;
    }

    .story-content-help .input-help {
        font-size: 0.85em;
        line-height: 1.5;
    }
}

/* Response Length Control */
.response-length-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.response-length-control label {
    font-size: 0.9em;
    font-weight: 500;
    color: #e0e6ed;
    white-space: nowrap;
}

.length-select {
    background: #2a3441;
    border: 1px solid #4a5568;
    border-radius: 4px;
    padding: 4px 8px;
    color: #e0e6ed;
    font-size: 0.9em;
    min-width: 140px;
}

.length-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.length-select option {
    background: #2a3441;
    color: #e0e6ed;
}

@media (max-width: 768px) {
    .response-length-control {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .length-select {
        width: 100%;
        min-width: unset;
    }
}

/* Welcome Page Features */
.features-highlight {
    border-radius: 8px;
    border: 1px solid #575757;
    width: 500px;
    margin: 25px auto;
    padding: 0 25px;
    background-color: #1c1c1c;
    max-width: 96%;
    box-sizing: border-box;
    display:inline-block;
}

.features-highlight ul {
    list-style: none;
    padding: 0;
}

.features-highlight li {
    padding: 8px 0;
    border-bottom: 1px solid #3f3f3f;
}

.features-highlight li:last-child {
    border-bottom: none;
}

/* About Page Steps */
.about-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.step {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step h3 {
    margin: 0 0 10px 0;
    color: #667eea;
}

.step p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.4;
}

/* Welcome Feature Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.feature-card strong {
    color: #667eea;
    display: block;
    margin-bottom: 5px;
}

.feature-card small {
    opacity: 0.8;
    line-height: 1.3;
}

/* Girlfriend Status Controls */
.girlfriend-status-controls {
    margin: 15px 0;
    text-align: center;
}

.break-up-btn {
    background: #67000a;
    border: 1px solid #c82333;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.break-up-btn:hover {
    background: #c82333;
    border-color: #bd2130;
}

.break-up-btn:disabled {
    background: #6c757d;
    border-color: #5a6268;
    cursor: not-allowed;
}

.broken-up-status {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    display: inline-block;
}

.reactivate-btn {
    background: #28a745;
    border: 1px solid #1e7e34;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
}

.reactivate-btn:hover {
    background: #1e7e34;
    border-color: #1c7430;
}

.girlfriend-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

.girlfriend-status.active {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.4);
}

.girlfriend-status.broken-up {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.4);
}

/* Girlfriend List Styles */
.girlfriend-list-wrap {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.girlfriend-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.girlfriend-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.girlfriend-item.broken-up {
    opacity: 0.7;
    background: rgba(220, 53, 69, 0.05);
    border-color: rgba(220, 53, 69, 0.2);
}

.girlfriend-info {
    flex-grow: 1;
}

.girlfriend-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.girlfriend-name {
    margin: 0;
    font-size: 18px;
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 10px;
}

.girlfriend-age {
    font-size: 14px;
    color: #aaa;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

.girlfriend-description {
    color: #ccc;
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.4;
}

.girlfriend-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #888;
    margin-top: 10px;
}

.girlfriend-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 120px;
}

.girlfriend-actions .default-btn {
    padding: 8px 12px;
    font-size: 12px;
    text-align: center;
    text-decoration: none;
}

.chat-btn {
    background: #667eea;
    border-color: #5a6fd8;
}

.chat-btn:hover {
    background: #5a6fd8;
}

.view-btn {
    background: #6c757d;
    border-color: #5a6268;
}

.view-btn:hover {
    background: #5a6268;
}

.no-girlfriends {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.no-girlfriends p {
    margin-bottom: 20px;
    color: #ccc;
}

@media (max-width: 768px) {
    .girlfriend-item {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .girlfriend-header {
        justify-content: center;
        flex-wrap: wrap;
    }

    .girlfriend-actions {
        flex-direction: row;
        justify-content: center;
        margin-top: 15px;
    }
}

/* GF Simulator Form Styling */
.gf-sim-form {
    max-width: 500px;
    margin: 0 auto 30px;
}

.form-message {
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.form-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    display: block;
}

#save-gf-sim-details:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}