.dynamic-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: default;
}

.dynamic-view-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.dynamic-view-container h1 {
    font-size: 2.5em;
    margin: 0;
}
.dynamic-view .selection-name {
    display: flex;
}

.dynamic-view .content-wrapper {
    flex-grow: 1;
    flex-shrink: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.dynamic-view .dynamic-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 100%;
    flex-grow: 1;
}

.dynamic-view .button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.dynamic-view .dynamic-button {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    border-radius: 5px;
    transition: background 0.3s;
}

.dynamic-view .dynamic-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.dynamic-view .back-button {
    font-size: 32px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    border-radius: 5px;
    position: absolute;
    bottom: 25px;
    right: 25px;
    transform: rotate(-12deg);
    transition: background 0.3s;
}

.dynamic-view .back-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.dynamic-view .save-slots {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dynamic-view .save-slot {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    border-radius: 5px;
    transition: background 0.3s;
}

.dynamic-view .save-slot:hover {
    background: rgba(255, 255, 255, 0.3);
}

.dynamic-view .party-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.dynamic-view .party-member {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 5px;
}

.dynamic-view .party-member .portrait {
    width: 130px;
    height: 50vh;
    object-fit: cover;
}

.dynamic-view .member-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.dynamic-view .battle-summary {
    margin-top: 20px;
    font-size: 1.2em;
}

.dynamic-view .character-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dynamic-view .form-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dynamic-view .form-field label {
    flex: 0 0 150px;
    text-align: right;
}

.dynamic-view .form-field input[type="text"],
.dynamic-view .form-field textarea {
    flex: 1;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid white;
    border-radius: 5px;
    color: white;
}

.dynamic-view .form-field textarea {
    min-height: 60px;
    resize: vertical;
}

.dynamic-view .form-field input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.dynamic-view .class-selection {
    align-items: flex-start;
}

.dynamic-view .class-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.dynamic-view .class-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: border-color 0.3s;
}

.dynamic-view .class-image:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.dynamic-view .class-image.selected {
    border-color: white;
}

.dynamic-view .custom-select {
    position: relative;
    flex: 1;
}

.dynamic-view .select-selected {
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid white;
    border-radius: 5px;
    color: white;
    display: flex;
    align-items: center;
}

.dynamic-view .select-selected::after {
    content: '▼';
    font-size: 12px;
    color: white;
    margin-left: 10px;
}

.dynamic-view .select-selected.select-active::after {
    content: '▲';
}

.dynamic-view .select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid white;
    border-radius: 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
}

.dynamic-view .select-option {
    padding: 8px;
    color: white;
    transition: background 0.3s;
}

.dynamic-view .select-option:hover {
    background: rgba(255, 255, 255, 0.2);
}
.dynamic-view .selection-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.dynamic-view .selection-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 600px;
}

.dynamic-view .selection-item {
    font-size: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 5px;
    transition: border-color 0.3s, background 0.3s;
}

.dynamic-view .selection-item:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.dynamic-view .selection-item.selected {
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

.dynamic-view .selection-item .class-image {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 5px;
    object-position: top;
}

.dynamic-view .selection-name {
    font-size: 1em;
    text-align: center;
}

.dynamic-view .party-row .selection-item {
    width: 140px;
    height: 140px;
}

.dynamic-view .management-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.dynamic-view .management-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 80vw;
}

.dynamic-view .management-image-container {
    position: relative;
}
.dynamic-view .management-image-container .selection-name {
    position: absolute;
    bottom: -40px;
}
 
.dynamic-view .management-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 5px;
    transition: border-color 0.3s, background 0.3s;
    margin-bottom: 20px;
}

.dynamic-view .management-item.selected {
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}
.dynamic-view .management-item .class-image {
    object-fit: cover;
    border-radius: 5px;
    object-position: top;
}
.dynamic-view .equipment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    gap: 5px;
    max-width: 300px;
}
.dynamic-view .equipment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70px;
    gap: 5px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 5px;
    transition: border-color 0.3s, background 0.3s;
}
.dynamic-view .equipment-item:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}
.dynamic-view .equipment-item .class-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

.dynamic-view .character-status {
    position: relative;
    width: 100%;
    height: 100%;
    font-family: 'Press Start 2P', monospace;
    color: #fff;
    background: url('character-status-bg.jpg') no-repeat center center/cover;
    overflow: hidden;
}
.dynamic-view .character-status .character-art {
    position: absolute;
    top: -40px;
    right: 100px;
    transform: rotate(5deg);
    height: 130vh;
    z-index: 0;
    filter: drop-shadow(4px 4px 4px #000);
}
.dynamic-view .character-status .name-plate {
    position: absolute;
    top: 10px;
    left: 20px;
    transform: rotate(-5deg);
    font-size: 72px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
}
.dynamic-view .character-status .resistances-container {
    position: absolute;
    top: 140px;
    left: 20px;
    transform: rotate(-3deg);
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
}
.dynamic-view .character-status .resistance-row {
    width: 96px;
    font-size: 14px;
    position: relative;
    display: inline-block;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
.dynamic-view .character-status .resistance-label {
    position: absolute;
    bottom: 0;
    text-align: center;
    font-size: 48px;
    font-family: 'Impact', sans-serif;
    transform: rotate(8deg) translate(12px, 25px);
}
.dynamic-view .character-status .stats-container {
    position: absolute;
    bottom: 0%;
    right: 0%;
    transform: translate(-50%, -50%) rotate(3deg);
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
}
.dynamic-view .character-status .stat-row {
    display: flex;
    justify-content: flex-end;
    margin: 2px 0;
    font-size: 24px;
    position: relative;
    font-family: 'Arial Black', sans-serif;
}
.dynamic-view .character-status .stat-value {
    position: absolute;
    left: 60px;
    bottom: 6px;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    z-index: 2;
}
.dynamic-view .character-status .stat-label {
    width: 50px;
    text-align: right;
    margin-right: 10px;
    z-index: 2;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
.dynamic-view .character-status .stat-button {
    position: absolute;
    left: -15px;
    color: #ff0;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
.dynamic-view .character-status .stat-button:hover {
    color: #fff;
    text-shadow: 0 0 5px #ffff00, 0 0 10px #ffff00;
}
.dynamic-view .character-status .stat-bar {
    width: 200px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
}
.dynamic-view .character-status .stat-fill {
    height: 100%;
    background: #f00;
}
.dynamic-view .character-status .skills-container {
    position: absolute;
    bottom: 40px;
    left: 20px;
    transform: rotate(-7deg);
    display: grid;
    grid-template-columns: repeat(2, 420px);
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px;
}
.dynamic-view .character-status .queued-container {
    position: absolute;
    bottom: 440px;
    left: 60px;
    transform: rotate(-7deg);
    background: rgba(0, 0, 0, 0.7);
    padding: 5px;
}
.dynamic-view .character-status .skill-item {
    position: relative;
    width: 420px;
    height: 90px;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-family: 'Verdana', sans-serif;
    font-size: 20px;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
.dynamic-view .character-status .skill-item img {
    height: 70px;
    margin-right: 10px;
}
.dynamic-view .character-status .skill-button {
    position: absolute;
    right: 0px;
    font-size: 75px;
    margin-left: 5px;
    color: #f00;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
.dynamic-view .character-status .skill-button:hover {
    color: #fff;
    text-shadow: 0 0 5px #ff0000, 0 0 10px #ff0000;
}


        .dynamic-view .character-customization {
            position: relative;
            width: 100%;
            height: 100%;
            font-family: 'VT323', monospace;
            color: #fff;
            background: url('customization-bg.jpg') no-repeat center center/cover;
            overflow: hidden;
        }
        .dynamic-view .character-customization .character-art {
            position: absolute;
            top: -50px;
            left: 60%;
            transform: translateX(-50%) rotate(10deg);
            height: 110vh;
            z-index: 1;
        }
        .dynamic-view .character-customization .options-container {
            position: absolute;
            top: 160px;
            left: 145px;
            transform: rotate(-10deg);
            background: rgba(0, 0, 0, 0.8);
            padding: 15px;
            font-size: 18px;
        }
        .dynamic-view .character-customization .option-item {
            margin: 15px 0;
            text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff;
        }
        .dynamic-view .character-customization .edit-field {
            background: transparent;
            border: 2px solid #00ffff;
            color: #fff;
            padding: 5px;
            margin-left: 10px;
        }
        .dynamic-view .character-customization .confirm-button {
            margin-left: 10px;
            padding: 5px 10px;
            background: #00ffff;
            border: none;
            color: #000;
            text-shadow: none;
        }
        .dynamic-view .character-customization .regenerate-button {
            position: absolute;
            top: 150px;
            left: 120px;
            transform: rotate(-8deg);
            padding: 10px 20px;
            background: #ff00ff;
            color: #fff;
            font-size: 16px;
            text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
        }

        .dynamic-view .party-management {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        .dynamic-view .party-management h1 {
            position: absolute;
            top: 40px;
            transform: rotate(8deg);
            right: 20px;
        }
        .dynamic-view .load-game-container {
            min-height: 100%;
            display: flex;
            flex-direction: column;
            background: rgba(0, 0, 0, 0.7);
        }
        .dynamic-view .main-activity-container h1 {
            position: absolute;
            top: 40px;
            left: 20px;
            transform: rotate(-8deg);
        }

        .dynamic-view .hold-up-container {
    position: relative;
    width: 100%;
    height: 100%;
    font-family: 'Press Start 2P', monospace;
    color: #fff;
    overflow: hidden;
}

.dynamic-view .hold-up-title .outlined-text {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    font-size: 28px;
    text-transform: uppercase;
    text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000;
    background: rgba(255, 0, 0, 0.8);
    padding: 10px 20px;
    border: 3px solid #fff;
    z-index: 10;
}

.dynamic-view .enemy-character {
    position: absolute;
    top: 50%;
    left: var(--position-x, 50%);
    transform: translate(-50%, -50%) rotate(var(--angle, 0deg));
    z-index: 5;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.dynamic-view .enemy-character:hover {
    transform: translate(-50%, -50%) rotate(var(--angle, 0deg)) scale(1.05);
    filter: drop-shadow(0 0 10px #ff0000);
}

.dynamic-view .enemy-art {
    height: 60vh;
    object-fit: cover;
}

.dynamic-view .enemy-name {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border: 2px solid #fff;
    white-space: nowrap;
}

.dynamic-view .mass-attack-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) rotate(3deg);
    padding: 15px 30px;
    background: linear-gradient(45deg, #ff0000, #cc0000);
    border: 4px solid #fff;
    font-size: 20px;
    text-transform: uppercase;
    cursor: pointer;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    z-index: 10;
    transition: all 0.2s ease;
}

.dynamic-view .mass-attack-button:hover {
    background: linear-gradient(45deg, #ff4444, #ff0000);
    box-shadow: 0 0 20px #ff0000;
    transform: translateX(-50%) rotate(3deg) scale(1.1);
}

.rumor-container .button {
    margin-bottom: 0px;
}

.rumor-container .rumor-teaser {
    z-index: 0;
    transform: translateY(-5px);
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.7);
    transition: background 0.3s, transform 0.2s ease;
}

.rumor-container .rumor-teaser .rumor-teaser-image img {
    width: 140px;
    height: 100px;
    object-fit: cover;
    object-position: top;
}

.rumor-container .rumor-teaser .rumor-teaser-text {
    min-height: 80px;
    align-content: center;
    font-size: 18px;
    flex: 1;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.shop-container {
    display: flex;
    flex-direction: column;
    margin-left: 30;
}

.shop-container .main-character {
    position: absolute;
    left: 0;
    top: 0;
    transform: translateX(-35%);
}
.shop-container .main-character img {
    height: 200vh;
    object-fit: cover;
}
.shop-container .selected-character {
    position: absolute;
    right: 0;
    top: 0;
    transform: translateX(35%);
}
.shop-container .selected-character img {
    height: 200vh;
    object-fit: cover;
}

.shop-flex-container {
    display: flex;
    gap: 32px;
    justify-content: center;
    align-items: flex-start;
}

.shop-container .shop-list,
.shop-container .sell-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 90vh;
    max-width: 500px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.7);
}

.shop-container .shop-item,
.shop-container .sell-item {
    display: flex;
    flex-direction: column;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid black;
    padding-left: 100px;
    padding-right: 80px;

}

.shop-container .shop-item:hover,
.shop-container .sell-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.shop-container .shop-item .item-icon,
.shop-container .sell-item .item-icon {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
    position: absolute;
    left: 0;
}
.shop-container .shop-item .item-name,
.shop-container .sell-item .item-name {
    font-size: 20px;
    margin-bottom: 5px;
    background: rgba(0, 0, 0, 0.8);
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
.shop-container .shop-item .buy-button,
.shop-container .sell-item .sell-item-button {
    position: absolute;
    right: 0;
}

.shop-container .shop-title {
    position: absolute;
    font-size: 48px;
    top: 0;
    left: 30px;
    transform: rotate(-18deg);
}

.shop-container .money-display {
    position: absolute;
    font-size: 48px;
    top: 80px;
    left: 50px;
    transform: rotate(-18deg);
    z-index: 20;
    text-shadow: 4px 4px 1px black;
}

.record-log-container .tabs-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.record-log-container .tab-button {
    font-size: 32px;
    background: #222;
    border: 1px solid #444;
    user-select: none;
    transition: background 0.3s, color 0.3s;
}

.record-log-container .tab-button.active,
.record-log-container .tab-button:hover {
    background: #555;
}

.record-log-container .character-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    flex-basis: 33.33%;
}

.record-log-container .grid-item {
    display: flex;
    position: relative;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #444;
}
.record-log-container .character-image {
    overflow: hidden;
    width: 30vw;
}
.record-log-container .character-image img {
    width: 30vw;
    object-fit: cover;
}
.record-log-container .character-name {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 5px;
    position: absolute;
    right: 10px;
    bottom: 20px;
    rotate: -12deg;
}
.record-log-container .character-relationship {
    font-size: 18px;
    color: #ccc;
    position: absolute;
    right: 0;
    bottom: 40px;
}
.record-log-container .regenerate-button {
    position: absolute;
    top: 20px;
    left: 10px;
    padding: 10px 20px;
    background: #222;
    border: 1px solid #444;
    color: #ccc;
}