@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Poppins:wght@400;500;700&display=swap');

:root {
    --part1-color: #5D4037; /* Phantom Blood - Brown */
    --part2-color: #E53935; /* Battle Tendency - Red */
    --part3-color: #673AB7; /* Stardust Crusaders - Purple */
    --part4-color: #1E88E5; /* Diamond is Unbreakable - Blue */
    --part5-color: #FFD600; /* Golden Wind - Gold */
    --part6-color: #43A047; /* Stone Ocean - Green */
    --part7-color: #FB8C00; /* Steel Ball Run - Orange */
    --part8-color: #EC407A; /* JoJolion - Pink */
    --part9-color: #0097A7; /* JoJolands - Teal */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: #f5f5f5;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    font-family: 'Bebas Neue', sans-serif;
    text-align: center;
    font-size: 3rem;
    margin-bottom: 30px;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #f6d365 0%, #fda085 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.form-container {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ddd;
}

.input-group small {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #999;
    font-style: italic;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #333;
    border-radius: 6px;
    background-color: #2a2a2a;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #fda085;
    box-shadow: 0 0 0 2px rgba(253, 160, 133, 0.2);
}

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

.part-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.part-btn {
    padding: 10px;
    border: none;
    border-radius: 6px;
    background-color: #333;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.part-btn:hover {
    background-color: #444;
}

.part-btn.active {
    background-color: #fda085;
    color: #111;
    font-weight: 500;
}

#generate-btn {
    display: block;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(90deg, #f6d365 0%, #fda085 100%);
    color: #111;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 30px;
}

#generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(246, 211, 101, 0.4);
}

#generate-btn:disabled {
    animation: loadingPulse 1.5s infinite;
    background: linear-gradient(90deg, #aaa 0%, #ccc 100%);
    transform: none;
    cursor: wait;
}

@keyframes loadingPulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.status-selector {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-label input {
    width: auto;
    margin-right: 8px;
}

.user-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1rem;
}

.user-status {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.user-status.alive {
    background-color: #43A047;
}

.user-status.dead {
    background-color: #E53935;
}

.requiem-container {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

#requiem-btn {
    background: linear-gradient(90deg, #9C27B0 0%, #E040FB 100%);
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#requiem-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(224, 64, 251, 0.4);
}

#requiem-content {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
    line-height: 1.5;
    border-left: 3px solid #E040FB;
}

.hidden {
    display: none;
}

.result-container {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.stand-card {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stand-card.reveal {
    animation: cardReveal 1.5s forwards;
}

@keyframes cardReveal {
    0% {
        transform: rotateY(90deg) translateZ(100px);
        opacity: 0;
    }
    100% {
        transform: rotateY(0) translateZ(0);
        opacity: 1;
    }
}

.stand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.stand-header h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    letter-spacing: 1px;
}

.part-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    background-color: var(--part3-color);
}

.stand-icon {
    height: 150px;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stand-icon svg {
    width: 100%;
    height: 100%;
}

.stand-stats {
    margin-bottom: 20px;
}

.stat-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.stat {
    display: flex;
    align-items: center;
}

.stat span {
    width: 100px;
    font-size: 0.9rem;
    color: #ddd;
}

.stat-bar {
    height: 15px;
    flex-grow: 1;
    background-color: #333;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.stat-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #f6d365 0%, #fda085 100%);
    transition: width 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.stand-description {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
    line-height: 1.5;
}

.stand-description strong {
    color: #f6d365;
}

.stand-description br {
    margin-bottom: 10px;
}

.stand-images {
    margin-top: 20px;
}

.generated-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.generated-image:hover {
    transform: scale(1.02);
}

.image-loading, .image-error {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #ddd;
}

.image-loading {
    animation: pulse 1.5s infinite;
}

.image-error {
    border-left: 3px solid #E53935;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.nav-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.nav-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(90deg, #673AB7 0%, #9C27B0 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(156, 39, 176, 0.4);
}

#share-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(90deg, #673AB7 0%, #3F51B5 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
}

#share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(63, 81, 181, 0.4);
}

.share-container {
    margin-top: 20px;
}

.exhibition-container {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.exhibition-container h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #9C27B0 0%, #673AB7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.exhibition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.exhibition-card {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #333;
}

.exhibition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.exhibition-card h3 {
    margin-bottom: 5px;
    font-size: 1.5rem;
    color: #f6d365;
}

.exhibition-card p {
    margin-bottom: 10px;
    color: #ddd;
    font-size: 0.9rem;
}

.exhibition-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #999;
}

.exhibition-user {
    display: flex;
    align-items: center;
}

.exhibition-user span {
    margin-left: 5px;
}

.exhibition-card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #333;
}

.like-container {
    display: flex;
    align-items: center;
}

.like-button, .super-like-button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 5px;
}

.like-button:hover, .super-like-button:hover {
    transform: scale(1.2);
}

.like-button.liked {
    animation: pulse 0.5s;
}

.like-count {
    margin-left: 5px;
    font-size: 0.9rem;
    color: #ddd;
}

.super-like-badge {
    margin-left: 10px;
    background-color: rgba(255, 215, 0, 0.2);
    color: gold;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.super-like-button {
    color: #666;
    font-size: 1rem;
}

.modal-like-container {
    display: flex;
    align-items: center;
    margin: 10px 0 15px;
}

.modal-like-btn, .modal-super-like-btn {
    font-size: 1.5rem;
    margin-right: 5px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #f6d365;
}

.battle-text {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.5;
    border-left: 3px solid #673AB7;
    font-size: 0.95rem;
}

#battle-content h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #673AB7 0%, #3F51B5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#battle-section .form-container h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #673AB7 0%, #3F51B5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#generate-battle-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(90deg, #673AB7 0%, #3F51B5 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
}

#generate-battle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(103, 58, 183, 0.4);
}

#generate-battle-btn:disabled {
    animation: loadingPulse 1.5s infinite;
    background: linear-gradient(90deg, #aaa 0%, #ccc 100%);
    transform: none;
    cursor: wait;
}

.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    z-index: 100;
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.language-selector label {
    margin-right: 10px;
    color: #ddd;
    font-size: 0.9rem;
}

.language-selector select {
    padding: 5px 10px;
    border: 2px solid #333;
    border-radius: 4px;
    background-color: #2a2a2a;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    outline: none;
}

.language-selector select:focus {
    border-color: #fda085;
}

.changelog-btn-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
}

#changelog-btn {
    background-color: #1e1e1e;
    color: #f5f5f5;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

#changelog-btn:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.changelog-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}

.changelog-content {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.changelog-entry {
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

.changelog-date {
    font-weight: bold;
    color: #fda085;
    margin-bottom: 5px;
}

.battle-mode-selector {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.battle-mode-selector input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
}

.spinoff-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.spinoff-btn {
    padding: 10px;
    border: none;
    border-radius: 6px;
    background-color: #333;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    border: 2px solid transparent;
}

.spinoff-btn:hover {
    background-color: #444;
}

.spinoff-btn.active {
    background-color: #9C27B0;
    color: #fff;
    font-weight: 500;
    border-color: #E040FB;
}

.asbr-quote {
    font-style: italic;
    color: #fda085;
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    border-left: 3px solid #fda085;
    background-color: rgba(253, 160, 133, 0.1);
}

.ai-status-container {
    margin-top: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ai-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #2a2a2a;
    border-radius: 20px;
    border: 1px solid #444;
    font-size: 0.9rem;
}

.status-indicator {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

.status-indicator.working {
    color: #4CAF50;
    animation: none;
}

.status-indicator.not-working {
    color: #F44336;
    animation: none;
}

.status-indicator.checking {
    color: #FFC107;
    animation: pulse 2s infinite;
}

.check-ai-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    background-color: #333;
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.check-ai-btn:hover {
    background-color: #444;
    transform: translateY(-1px);
}

.check-ai-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#interactive-battle-container {
    margin-top: 30px;
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.interactive-battle-header {
    margin-bottom: 20px;
}

.interactive-battle-header h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #673AB7 0%, #3F51B5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.battle-participants {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #2a2a2a;
    border-radius: 8px;
}

#player-stand-info, #opponent-stand-info {
    flex: 1;
}

#player-stand-name, #opponent-stand-name {
    margin-bottom: 8px;
    font-weight: 600;
    text-align: center;
}

.battle-vs {
    padding: 0 15px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: #fda085;
}

.battle-hp-bar {
    height: 20px;
    background-color: #333;
    border-radius: 10px;
    position: relative;
    margin: 5px 0;
    overflow: hidden;
}

.hp-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #4CAF50;
    transition: width 0.5s ease, background-color 0.5s ease;
}

#opponent-hp-fill {
    width: 100%;
}

#player-hp-fill {
    width: 100%;
}

.battle-hp-bar span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 0 0 3px rgba(0,0,0,0.8);
    z-index: 1;
}

.battle-log {
    max-height: 150px;
    overflow-y: auto;
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    border-left: 3px solid #673AB7;
}

.log-message {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
    line-height: 1.4;
}

.log-message:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.battle-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.battle-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.battle-action-btn {
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(90deg, #673AB7 0%, #3F51B5 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.battle-action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(103, 58, 183, 0.4);
}

.battle-action-btn:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.7;
}

.battle-action-btn.requiem-action {
    grid-column: span 2;
    background: linear-gradient(90deg, #9C27B0 0%, #E040FB 100%);
}

.battle-status {
    text-align: center;
    padding: 10px;
    background-color: #2a2a2a;
    border-radius: 8px;
    font-weight: 500;
}

.battle-restart-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: linear-gradient(90deg, #f6d365 0%, #fda085 100%);
    border: none;
    border-radius: 4px;
    color: #111;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.battle-restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(246, 211, 101, 0.4);
}

#start-interactive-battle-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(90deg, #673AB7 0%, #3F51B5 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
}

#start-interactive-battle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(103, 58, 183, 0.4);
}

/* Mobile optimization */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .part-selector {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .part-btn {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    .stand-card {
        padding: 20px;
    }
    
    .stand-header h2 {
        font-size: 1.8rem;
    }
    
    .exhibition-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .modal-content {
        width: 95%;
    }
    
    .nav-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .language-selector {
        top: 10px;
        right: 10px;
        padding: 6px 10px;
    }
    
    .language-selector label {
        font-size: 0.8rem;
    }
    
    .language-selector select {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .changelog-btn-container {
        top: 10px;
        left: 10px;
    }
    
    #changelog-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .spinoff-selector {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .spinoff-btn {
        padding: 8px;
        font-size: 0.9rem;
    }
}

/* Mobile optimization for battle interface */
@media (max-width: 768px) {
    .battle-actions {
        grid-template-columns: 1fr;
    }
    
    .battle-action-btn.requiem-action {
        grid-column: span 1;
    }
    
    .battle-arena-image {
        height: 180px;
    }
    
    .battle-participants {
        flex-direction: column;
        gap: 15px;
    }
    
    .battle-vs {
        margin: 5px 0;
    }
}