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

.navigation {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.home-link {
    display: inline-block;
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 16px;
    border: 2px solid #4CAF50;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.home-link:hover {
    background-color: #4CAF50;
    color: white;
    transform: translateY(-2px);
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1700px; /* Increased to accommodate larger canvas */
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2em;
    opacity: 0.9;
}

.controls {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.object-selection {
    display: flex;
    gap: 10px;
}

.object-btn {
    padding: 12px 20px;
    border: 3px solid #ddd;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 120px;
}

.object-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.object-btn.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.simulation-controls {
    display: flex;
    gap: 10px;
}

.simulation-controls button {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

#start-btn {
    background: #4CAF50;
    color: white;
}

#start-btn:hover:not(:disabled) {
    background: #45a049;
}

#pause-btn {
    background: #ff9800;
    color: white;
}

#pause-btn:hover:not(:disabled) {
    background: #e68900;
}

#reset-btn {
    background: #f44336;
    color: white;
}

#reset-btn:hover {
    background: #da190b;
}

.nuke-button {
    background: #dc143c !important;
    color: white !important;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(220, 20, 60, 0.3);
    animation: pulse-red 2s infinite;
}

.nuke-button:hover {
    background: #b91c3c !important;
    box-shadow: 0 6px 12px rgba(220, 20, 60, 0.5);
}

.hunting-button {
    background: #ff8c00 !important;
    color: white !important;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.3);
    animation: pulse-orange 2s infinite;
}

.hunting-button:hover {
    background: #e67e00 !important;
    box-shadow: 0 6px 12px rgba(255, 140, 0, 0.5);
}

.hunting-button.active {
    background: #228b22 !important;
    animation: pulse-green 2s infinite;
    box-shadow: 0 4px 8px rgba(34, 139, 34, 0.3);
}

.hunting-button.active:hover {
    background: #1e7d1e !important;
    box-shadow: 0 6px 12px rgba(34, 139, 34, 0.5);
}



@keyframes pulse-red {
    0% { box-shadow: 0 4px 8px rgba(220, 20, 60, 0.3); }
    50% { box-shadow: 0 6px 12px rgba(220, 20, 60, 0.6); }
    100% { box-shadow: 0 4px 8px rgba(220, 20, 60, 0.3); }
}

@keyframes pulse-orange {
    0% { box-shadow: 0 4px 8px rgba(255, 140, 0, 0.3); }
    50% { box-shadow: 0 6px 12px rgba(255, 140, 0, 0.6); }
    100% { box-shadow: 0 4px 8px rgba(255, 140, 0, 0.3); }
}

@keyframes pulse-green {
    0% { box-shadow: 0 4px 8px rgba(34, 139, 34, 0.3); }
    50% { box-shadow: 0 6px 12px rgba(34, 139, 34, 0.6); }
    100% { box-shadow: 0 4px 8px rgba(34, 139, 34, 0.3); }
}



@keyframes nukeFlash {
    0% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.8);
        background: linear-gradient(45deg, #ffff00, #ff8800);
    }
    20% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1.1);
        background: linear-gradient(45deg, #ffffff, #ffff00);
    }
    100% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1);
        background: linear-gradient(45deg, #ff4444, #cc0000);
    }
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
}

.stat-label {
    font-size: 1.1em;
}

#rock-count, #paper-count, #scissors-count {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    min-width: 30px;
    text-align: center;
    font-weight: bold;
    color: #333;
}

.game-area {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    width: 100%;
}

.game-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

#game-canvas {
    border: 4px solid white;
    border-radius: 15px;
    background: #f8f9fa;
    cursor: crosshair;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    max-width: 100%;
    height: auto;
    width: 1600px; /* Set explicit width for larger canvas */
}

/* Character Status Panel */
.character-status-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    min-width: 250px;
    flex-shrink: 0;
}

.character-status-panel h4 {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    font-weight: bold;
}

.character-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.character-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(128, 128, 128, 0.3);
    border: 2px solid rgba(128, 128, 128, 0.5);
    transition: all 0.3s ease;
    opacity: 0.5;
}

.character-card.active {
    opacity: 1;
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.character-card.batman.active {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    border-color: #ffdd44;
    color: white;
}

.character-card.spiderman.active {
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
    border-color: #1e90ff;
    color: white;
}

.character-card.venom.active {
    background: linear-gradient(135deg, #000000 0%, #2d2d2d 100%);
    border-color: #ffffff;
    color: white;
}

.character-card.hulk.active {
    background: linear-gradient(135deg, #228b22 0%, #006400 100%);
    border-color: #90ee90;
    color: white;
}

.character-card.loki.active {
    background: linear-gradient(135deg, #228b22 0%, #006400 100%);
    border-color: #ffd700;
    color: white;
}

.character-icon {
    font-size: 24px;
    width: 32px;
    text-align: center;
}

.character-name {
    flex: 1;
    font-weight: bold;
    font-size: 14px;
}

.character-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(128, 128, 128, 0.3);
    transition: all 0.3s ease;
}

.character-card.active .character-status {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
}

.character-card.dead {
    opacity: 0.3;
    background: rgba(64, 64, 64, 0.3);
    border-color: rgba(64, 64, 64, 0.5);
}

.character-card.dead .character-status {
    background: rgba(200, 50, 50, 0.8);
    color: white;
}

.instructions {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.instructions h3 {
    margin-bottom: 15px;
    color: #667eea;
    font-size: 1.4em;
}

.instructions ol {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Batman Info Section */
.batman-info {
    background: linear-gradient(135deg, #2F4F4F 0%, #1a1a1a 100%);
    color: #FFD700;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border: 2px solid #FFD700;
}

.batman-info h3 {
    margin-bottom: 10px;
    font-size: 1.6em;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.batman-subtitle {
    text-align: center;
    opacity: 0.9;
    margin-bottom: 20px;
    font-style: italic;
}

.batman-abilities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.ability {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 215, 0, 0.1);
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #FFD700;
}

.ability-icon {
    font-size: 1.5em;
    width: 30px;
    text-align: center;
}

.ability-text {
    flex: 1;
}

.ability-text strong {
    color: #fff;
}

.batman-visual {
    background: rgba(255, 215, 0, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.batman-visual p {
    margin-bottom: 10px;
    font-weight: bold;
    color: #fff;
}

.batman-visual ul {
    margin: 0;
    padding-left: 20px;
}

.batman-visual li {
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Spider-Man Info Section */
.spiderman-info {
    background: linear-gradient(135deg, #DC143C 0%, #0000FF 100%);
    color: #FFFFFF;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border: 2px solid #FFFFFF;
}

.spiderman-info h3 {
    margin-bottom: 10px;
    font-size: 1.6em;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.spiderman-subtitle {
    text-align: center;
    opacity: 0.9;
    margin-bottom: 20px;
    font-style: italic;
}

.spiderman-abilities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.spiderman-info .ability {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #FFFFFF;
}

.spiderman-info .ability-icon {
    font-size: 1.5em;
    width: 30px;
    text-align: center;
}

.spiderman-info .ability-text {
    flex: 1;
}

.spiderman-info .ability-text strong {
    color: #FFFFFF;
}

.spiderman-visual {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.spiderman-visual p {
    margin-bottom: 10px;
    font-weight: bold;
    color: #FFFFFF;
}

.spiderman-visual ul {
    margin: 0;
    padding-left: 20px;
}

.spiderman-visual li {
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Thanos Info Section */
.thanos-info {
    background: linear-gradient(135deg, #4B0082 0%, #8B008B 50%, #FFD700 100%);
    color: #FFFFFF;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    border: 2px solid #FFD700;
    position: relative;
    overflow: hidden;
}

.thanos-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="30" r="1.5" fill="rgba(255,215,0,0.2)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.15)"/><circle cx="70" cy="80" r="2.5" fill="rgba(255,215,0,0.1)"/><circle cx="10" cy="60" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: infinity-stones 10s linear infinite;
    pointer-events: none;
}

@keyframes infinity-stones {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.thanos-info h3 {
    margin-bottom: 10px;
    font-size: 1.6em;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    position: relative;
    z-index: 1;
}

.thanos-subtitle {
    text-align: center;
    opacity: 0.9;
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.thanos-abilities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.thanos-info .ability {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 215, 0, 0.15);
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #FFD700;
    backdrop-filter: blur(5px);
}

.thanos-info .ability-icon {
    font-size: 1.5em;
    width: 30px;
    text-align: center;
}

.thanos-info .ability-text {
    flex: 1;
}

.thanos-info .ability-text strong {
    color: #FFD700;
}

.thanos-visual {
    background: rgba(75, 0, 130, 0.3);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.5);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
}

.thanos-visual p {
    margin-bottom: 10px;
    font-weight: bold;
    color: #FFD700;
}

.thanos-visual ul {
    margin: 0;
    padding-left: 20px;
}

.thanos-visual li {
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Venom Info Section */
.venom-info {
    background: linear-gradient(135deg, #000000 0%, #333333 50%, #666666 100%);
    color: #FFFFFF;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    border: 2px solid #FFFFFF;
    position: relative;
    overflow: hidden;
}

.venom-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,20 Q50,10 80,20 Q90,50 80,80 Q50,90 20,80 Q10,50 20,20" fill="rgba(255,255,255,0.05)" stroke="rgba(255,255,255,0.1)" stroke-width="1"/><path d="M30,30 Q50,25 70,30 Q75,50 70,70 Q50,75 30,70 Q25,50 30,30" fill="rgba(255,255,255,0.03)"/></svg>') repeat;
    animation: symbiote-flow 15s linear infinite;
    pointer-events: none;
}

@keyframes symbiote-flow {
    0% { transform: translateX(0) translateY(0) scale(1); }
    25% { transform: translateX(-10px) translateY(-5px) scale(1.05); }
    50% { transform: translateX(10px) translateY(10px) scale(0.95); }
    75% { transform: translateX(-5px) translateY(-10px) scale(1.02); }
    100% { transform: translateX(0) translateY(0) scale(1); }
}

.venom-info h3 {
    margin-bottom: 10px;
    font-size: 1.6em;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    position: relative;
    z-index: 1;
    color: #FFFFFF;
}

.venom-subtitle {
    text-align: center;
    opacity: 0.9;
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
    z-index: 1;
    color: #CCCCCC;
}

.venom-abilities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.venom-info .ability {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #FFFFFF;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.venom-info .ability-icon {
    font-size: 1.5em;
    width: 30px;
    text-align: center;
    color: #FFFFFF;
}

.venom-info .ability-text {
    flex: 1;
}

.venom-info .ability-text strong {
    color: #FFFFFF;
}

.venom-visual {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
}

.venom-visual p {
    margin-bottom: 10px;
    font-weight: bold;
    color: #FFFFFF;
}

.venom-visual ul {
    margin: 0;
    padding-left: 20px;
}

.venom-visual li {
    margin-bottom: 5px;
    line-height: 1.4;
    color: #EEEEEE;
}

/* Hulk Info Section */
.hulk-info {
    background: linear-gradient(135deg, #1e4d1e 0%, #2d5a2d 50%, #3a6b3a 100%);
    color: #FFFFFF;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 8px 32px rgba(34, 139, 34, 0.4);
    border: 2px solid #4a7c4a;
    position: relative;
    overflow: hidden;
}

.hulk-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="3" fill="rgba(255,255,255,0.1)" opacity="0.8"><animate attributeName="r" values="3;6;3" dur="2s" repeatCount="indefinite"/></circle><circle cx="80" cy="30" r="2" fill="rgba(255,255,255,0.15)" opacity="0.6"><animate attributeName="r" values="2;4;2" dur="1.5s" repeatCount="indefinite"/></circle><circle cx="40" cy="70" r="4" fill="rgba(255,255,255,0.08)" opacity="0.7"><animate attributeName="r" values="4;7;4" dur="2.5s" repeatCount="indefinite"/></circle><circle cx="70" cy="80" r="2.5" fill="rgba(255,255,255,0.12)" opacity="0.9"><animate attributeName="r" values="2.5;5;2.5" dur="1.8s" repeatCount="indefinite"/></circle></svg>') repeat;
    animation: hulk-energy 8s linear infinite;
    pointer-events: none;
}

@keyframes hulk-energy {
    0% { transform: translateX(0) translateY(0) scale(1); opacity: 0.6; }
    25% { transform: translateX(-5px) translateY(-10px) scale(1.1); opacity: 0.8; }
    50% { transform: translateX(10px) translateY(5px) scale(0.9); opacity: 0.7; }
    75% { transform: translateX(-8px) translateY(-5px) scale(1.05); opacity: 0.9; }
    100% { transform: translateX(0) translateY(0) scale(1); opacity: 0.6; }
}

.hulk-info h3 {
    margin-bottom: 10px;
    font-size: 1.6em;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    position: relative;
    z-index: 1;
    color: #FFFFFF;
}

.hulk-subtitle {
    text-align: center;
    opacity: 0.9;
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
    z-index: 1;
    color: #F0FFF0;
}

.hulk-abilities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.hulk-info .ability {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #4a7c4a;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hulk-info .ability-icon {
    font-size: 1.5em;
    width: 30px;
    text-align: center;
    color: #FFFFFF;
}

.hulk-info .ability-text {
    flex: 1;
}

.hulk-info .ability-text strong {
    color: #FFFFFF;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hulk-visual {
    background: rgba(46, 90, 46, 0.4);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
}

.hulk-visual p {
    margin-bottom: 10px;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hulk-visual ul {
    margin: 0;
    padding-left: 20px;
}

.hulk-visual li {
    margin-bottom: 5px;
    line-height: 1.4;
    color: #F0FFF0;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .object-selection, .simulation-controls, .stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    #game-canvas {
        width: 100%;
        max-width: 1600px; /* Updated to match new canvas size */
        height: auto;
    }
    
    header h1 {
        font-size: 2em;
    }
}

/* Victory animation */
@keyframes victory {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.victory-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
    z-index: 1000;
    animation: victory 1s ease-in-out infinite;
}

.victory-message h2 {
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 15px;
}

.victory-message p {
    font-size: 1.3em;
    color: #666;
}

/* Loki Character Info Styles */
.loki-info {
    background: linear-gradient(135deg, #1e4d1e 0%, #4a7c29 25%, #ffd700 50%, #4a7c29 75%, #1e4d1e 100%);
    color: #FFFFFF;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.4);
    border: 2px solid #FFD700;
    position: relative;
    overflow: hidden;
}

.loki-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50,10 55,25 70,25 58,35 63,50 50,40 37,50 42,35 30,25 45,25" fill="rgba(255,215,0,0.2)" opacity="0.8"><animate attributeName="opacity" values="0.8;1;0.8" dur="2s" repeatCount="indefinite"/></polygon><polygon points="20,30 23,38 31,38 25,43 28,51 20,46 12,51 15,43 9,38 17,38" fill="rgba(255,215,0,0.15)" opacity="0.6"><animate attributeName="opacity" values="0.6;0.9;0.6" dur="1.5s" repeatCount="indefinite"/></polygon><polygon points="80,70 83,78 91,78 85,83 88,91 80,86 72,91 75,83 69,78 77,78" fill="rgba(255,215,0,0.18)" opacity="0.7"><animate attributeName="opacity" values="0.7;1;0.7" dur="2.2s" repeatCount="indefinite"/></polygon></svg>') repeat;
    animation: loki-magic 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes loki-magic {
    0% { transform: translateX(0) translateY(0) scale(1) rotate(0deg); opacity: 0.6; }
    25% { transform: translateX(-3px) translateY(-8px) scale(1.05) rotate(2deg); opacity: 0.8; }
    50% { transform: translateX(8px) translateY(3px) scale(0.95) rotate(-1deg); opacity: 0.9; }
    75% { transform: translateX(-5px) translateY(-3px) scale(1.02) rotate(1deg); opacity: 0.7; }
    100% { transform: translateX(0) translateY(0) scale(1) rotate(0deg); opacity: 0.6; }
}

.loki-info h3 {
    margin-bottom: 10px;
    font-size: 1.6em;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    position: relative;
    z-index: 1;
    color: #FFFFFF;
}

.loki-subtitle {
    text-align: center;
    opacity: 0.9;
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
    z-index: 1;
    color: #F5F5DC;
}

.loki-abilities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.loki-info .ability {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 215, 0, 0.2);
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #FFD700;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.loki-info .ability-icon {
    font-size: 1.5em;
    width: 30px;
    text-align: center;
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.loki-info .ability-text {
    flex: 1;
}

.loki-info .ability-text strong {
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.loki-visual {
    background: rgba(74, 124, 41, 0.4);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
}

.loki-visual p {
    margin-bottom: 10px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.loki-visual ul {
    list-style: none;
    padding-left: 0;
}

.loki-visual ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
}

.loki-visual ul li::before {
    content: '✨';
    position: absolute;
    left: 0;
    color: #FFD700;
    font-weight: bold;
    margin-right: 8px;
}

/* Dynamic System Info Styles */
.dynamic-system-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #FFFFFF;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
    border: 2px solid #667eea;
    position: relative;
    overflow: hidden;
}

.dynamic-system-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="20" r="2" fill="rgba(255,255,255,0.1)" opacity="0.8"><animate attributeName="cx" values="10;90;10" dur="10s" repeatCount="indefinite"/></circle><circle cx="50" cy="50" r="3" fill="rgba(255,255,255,0.15)" opacity="0.6"><animate attributeName="cy" values="50;10;50" dur="8s" repeatCount="indefinite"/></circle><circle cx="80" cy="80" r="2.5" fill="rgba(255,255,255,0.12)" opacity="0.9"><animate attributeName="r" values="2.5;5;2.5" dur="6s" repeatCount="indefinite"/></circle></svg>') repeat;
    animation: dynamic-flow 12s linear infinite;
    pointer-events: none;
}

@keyframes dynamic-flow {
    0% { transform: translateX(0) translateY(0) scale(1); opacity: 0.3; }
    25% { transform: translateX(-10px) translateY(-15px) scale(1.1); opacity: 0.6; }
    50% { transform: translateX(15px) translateY(10px) scale(0.9); opacity: 0.4; }
    75% { transform: translateX(-5px) translateY(-8px) scale(1.05); opacity: 0.7; }
    100% { transform: translateX(0) translateY(0) scale(1); opacity: 0.3; }
}

.dynamic-system-info h3 {
    margin-bottom: 10px;
    font-size: 1.6em;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    position: relative;
    z-index: 1;
    color: #FFFFFF;
}

.system-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.dynamic-system-info .feature {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #FFFFFF;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dynamic-system-info .feature-icon {
    font-size: 1.5em;
    width: 30px;
    text-align: center;
    color: #FFFFFF;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.dynamic-system-info .feature-text {
    flex: 1;
}

.dynamic-system-info .feature-text strong {
    color: #FFFFFF;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
/* Player Management Styles */
.player-management {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.player-management h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    text-align: center;
}

.player-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.player-input-group input {
    flex: 1;
    min-width: 150px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.player-input-group button {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

#add-player-btn {
    background: #4CAF50;
    color: white;
}

#add-player-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

#clear-players-btn {
    background: #f44336;
    color: white;
}

#clear-players-btn:hover {
    background: #da190b;
    transform: translateY(-2px);
}

.player-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 40px;
}

.player-tag {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 8px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.player-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.player-tag-remove {
    background: #ff5252;
    color: white;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    transition: all 0.2s ease;
}

.player-tag-remove:hover {
    background: #ff1744;
    transform: scale(1.1);
}

/* Player Leaderboard Panel */
.player-leaderboard-panel {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    margin-top: 15px;
}

.player-leaderboard-panel h4 {
    margin: 0 0 12px 0;
    text-align: center;
    color: #2c3e50;
    font-size: 16px;
}

.leaderboard-content {
    background: white;
    border-radius: 8px;
    padding: 12px;
    max-height: 250px;
    overflow-y: auto;
}

.leaderboard-empty {
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 10px 0;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.leaderboard-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.leaderboard-item.rank-1 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    box-shadow: 0 2px 12px rgba(255, 215, 0, 0.4);
}

.leaderboard-item.rank-2 {
    background: linear-gradient(135deg, #C0C0C0 0%, #A0A0A0 100%);
}

.leaderboard-item.rank-3 {
    background: linear-gradient(135deg, #CD7F32 0%, #B8792E 100%);
}

.leaderboard-rank {
    font-weight: bold;
    font-size: 18px;
    margin-right: 10px;
    min-width: 30px;
}

.leaderboard-name {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
}

.leaderboard-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
}

.leaderboard-time {
    font-weight: 600;
    color: #4CAF50;
}

.leaderboard-status {
    color: #666;
    font-style: italic;
}

.leaderboard-status.alive {
    color: #4CAF50;
    font-weight: 600;
}

.leaderboard-status.eliminated {
    color: #f44336;
}

/* Player name label on objects */
.player-name-label {
    position: absolute;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    transform: translate(-50%, -100%);
    margin-top: -5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .player-input-group {
        flex-direction: column;
    }
    
    .player-input-group input,
    .player-input-group button {
        width: 100%;
    }
    
    .leaderboard-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .leaderboard-stats {
        width: 100%;
        justify-content: space-between;
    }
}
