.chaos-auction {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Arial', sans-serif;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background: #2c3e50;
    color: white;
    border-radius: 8px;
}

.time-bank {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
}

.round-info {
    font-size: 1.2em;
}

.auction-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 20px 0;
    position: relative;
    transition: transform 0.3s ease;
}

.auction-item:hover {
    transform: translateY(-2px);
}

.auction-item.cursed {
    background: linear-gradient(45deg, #ff6b6b 0%, #ff8e8e 100%);
    color: white;
}

.cursed-badge {
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 10px;
}

.bidding-interface {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.current-bid-info {
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #666;
}

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

#bid-amount {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

#submit-bid {
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#submit-bid:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.bid-feedback {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.bid-feedback.error {
    background: #ffe6e6;
    color: #dc3545;
}

.bid-feedback.success {
    background: #e6ffe6;
    color: #28a745;
}

.bid-feedback.warning {
    background: #fff3cd;
    color: #856404;
}

.power-ups {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.power-up {
    position: relative;
    padding: 10px 15px;
    background: #6c5ce7;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.power-up:hover {
    background: #8e44ad;
}

.power-up .tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    white-space: nowrap;
    z-index: 1000;
}

.power-up:hover .tooltip {
    display: block;
}

.timer {
    text-align: center;
    font-size: 1.5em;
    color: #e67e22;
    margin-top: 20px;
}

.round-result {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    z-index: 1000;
}

.animate-result {
    animation: popIn 0.5s ease-out;
}

.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes popIn {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.tie-notice {
    color: #e67e22;
    font-weight: bold;
    margin-top: 10px;
}

.chaos-event-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    z-index: 1000;
}

.animate-chaos {
    animation: chaosShake 0.5s ease-in-out infinite;
}

@keyframes chaosShake {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    25% { transform: translate(-50%, -50%) rotate(-5deg); }
    75% { transform: translate(-50%, -50%) rotate(5deg); }
}

.chaos-active {
    animation: chaosBackground 3s ease-in-out;
}

@keyframes chaosBackground {
    0%, 100% { background: transparent; }
    50% { background: rgba(255,0,0,0.1); }
}

.chaos-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(45deg, 
        rgba(255,0,0,0.2) 0%,
        rgba(255,255,0,0.2) 50%,
        rgba(0,0,255,0.2) 100%
    );
    mix-blend-mode: overlay;
    animation: chaosEffect 2s linear infinite;
}

@keyframes chaosEffect {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
} 