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

body {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #e8e8e8;
    font-family: 'Crimson Text', serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0px, transparent 1px, transparent 2px, rgba(255,255,255,0.03) 3px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0px, transparent 1px, transparent 2px, rgba(255,255,255,0.03) 3px);
    pointer-events: none;
    z-index: 1;
}

.scandal-tape {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: repeating-linear-gradient(
        45deg,
        #ffd700,
        #ffd700 20px,
        #000 20px,
        #000 40px
    );
    z-index: 100;
    opacity: 0.15;
    pointer-events: none;
}

.scandal-tape-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: repeating-linear-gradient(
        -45deg,
        #ffd700,
        #ffd700 20px,
        #000 20px,
        #000 40px
    );
    z-index: 100;
    opacity: 0.15;
    pointer-events: none;
}

.container {
    margin-top: 80px;
    margin-bottom: 80px;
    position: relative;
    z-index: 10;
    max-width: 1200px;
}

.header-section {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    border: 2px solid #8b0000;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(139, 0, 0, 0.5), inset 0 0 60px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
}

.header-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 0, 0, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 215, 0, 0.6);
    letter-spacing: 3px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    animation: flicker 3s infinite alternate;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

.subtitle {
    font-size: 20px;
    color: #d4af37;
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.evidence-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
    position: relative;
    z-index: 2;
}

.evidence-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 3px solid #8b0000;
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    filter: brightness(0.85) contrast(1.2);
}

.evidence-img:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 12px 30px rgba(139, 0, 0, 0.6);
    filter: brightness(1) contrast(1.3);
}

.task-block {
    margin-bottom: 50px;
    border: 2px solid #5a5a5a;
    padding: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(10, 10, 10, 0.95));
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.task-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #8b0000, #ffd700);
}

.task-block h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: #d4af37;
    margin-bottom: 24px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

.task-block p {
    font-size: 18px;
    line-height: 1.8;
    color: #c9c9c9;
    margin-bottom: 20px;
}

.louvre-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    opacity: 0.08;
    background-size: cover;
    background-position: center;
    pointer-events: none;
    z-index: 0;
}

.jewelry-float {
    position: absolute;
    width: 80px;
    height: 80px;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.jewelry-float:nth-child(2) {
    animation-delay: 2s;
}

.jewelry-float:nth-child(3) {
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.form-control, textarea.form-control {
    background: rgba(20, 20, 30, 0.8);
    border: 2px solid #5a5a5a;
    color: #e8e8e8;
    font-family: 'Courier New', monospace;
    padding: 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.form-control:focus, textarea.form-control:focus {
    background: rgba(30, 30, 40, 0.9);
    border-color: #8b0000;
    color: #fff;
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.5);
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, #8b0000, #a00000);
    border: 2px solid #5a0000;
    color: #ffd700;
    padding: 12px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a00000, #c00000);
    border-color: #8b0000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.6);
}

.sql-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgba(10, 10, 10, 0.8);
    border-radius: 4px;
    overflow: hidden;
}

.sql-table th, .sql-table td {
    border: 1px solid #3a3a3a;
    padding: 10px;
    text-align: left;
}

.sql-table th {
    background: linear-gradient(135deg, #8b0000, #5a0000);
    color: #ffd700;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sql-table td {
    color: #c9c9c9;
    font-family: 'Courier New', monospace;
}

.sql-table tr:hover {
    background: rgba(139, 0, 0, 0.15);
}

#block2, #block3 {
    display: none;
}

label {
    display: block;
    font-size: 18px;
    color: #d4af37;
    margin-bottom: 10px;
    font-weight: 600;
}

.evidence-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(139, 0, 0, 0.9);
    color: #ffd700;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
}

.jewelry-container {
    position: relative;
    display: inline-block;
}

@keyframes shine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.spotlight {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: spotlight 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes spotlight {
    0%, 100% { top: 20%; left: 10%; }
    25% { top: 60%; left: 80%; }
    50% { top: 30%; left: 50%; }
    75% { top: 70%; left: 20%; }
}

@media (max-width: 768px) {
    h1 { font-size: 42px; }
    .evidence-gallery { grid-template-columns: 1fr; }
    .task-block { padding: 24px; }
}

.congratulation-block {
  border: 2px solid #10b981;
  padding: 24px;
  margin: 24px 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  font-weight: 400;
  color: #065f46;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
  animation: successBounce 0.6s ease-out;
}

@keyframes successBounce {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.incorrect-order-block {
  border: 2px solid #ef4444;
  padding: 24px;
  margin: 24px 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  font-weight: 400;
  color: #991b1b;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
  animation: shake 0.5s ease-out;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}