* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    color: #e0e0f0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#container {
    width: 100%;
    max-width: 1000px;
    background: rgba(25, 25, 40, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(100, 150, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 10, 30, 0.7);
    overflow: hidden;
    padding: 30px;
}

/* HEADER */
header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(100, 150, 255, 0.2);
}

.title-gradient {
    background: linear-gradient(90deg, #6ee7b7, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.8rem;
    font-weight: 800;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.subtitle {
    color: #a0a0f0;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.instruction {
    color: #b0b0d0;
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
}

/* CONTROL PANEL */
#control-panel {
    background: rgba(30, 30, 50, 0.6);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(100, 150, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.input-group {
    flex: 1;
    min-width: 200px;
}

label {
    display: block;
    color: #8b9fff;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

#wordInput {
    width: 100%;
    padding: 15px;
    background: rgba(10, 15, 30, 0.7);
    border: 1px solid rgba(100, 150, 255, 0.3);
    border-radius: 10px;
    color: #e0f0ff;
    font-size: 1.1rem;
    transition: all 0.3s;
}

#wordInput:focus {
    outline: none;
    border-color: #6ee7b7;
    box-shadow: 0 0 0 2px rgba(110, 231, 183, 0.2);
}

.pressure-buttons {
    display: flex;
    gap: 15px;
}

.pressure-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pressure-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#btnDesire {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

#btnDesire.active {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

#btnFear {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: #f0f0f0;
}

#btnFear.active {
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
}

.pressure-hint {
    margin-top: 8px;
    color: #94a3b8;
    font-size: 0.85rem;
    font-style: italic;
}

.grow-btn, .reset-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.grow-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.grow-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    transform: translateY(-3px);
}

.reset-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* CANVAS */
#canvas-container {
    background: rgba(10, 10, 20, 0.8);
    border-radius: 15px;
    border: 2px dashed rgba(100, 150, 255, 0.2);
    margin-bottom: 25px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

canvas {
    display: block;
    border-radius: 10px;
}

/* OUTPUT LOG */
#output-log {
    background: rgba(20, 25, 45, 0.7);
    border-radius: 15px;
    padding: 20px;
    border-left: 5px solid #8b5cf6;
}

#output-log h3 {
    color: #c4b5fd;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#logEntry {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
    color: #d1d5db;
    min-height: 60px;
}

.legend {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
}

.swatch {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.desire-swatch {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.fear-swatch {
    background: linear-gradient(90deg, #6b7280, #9ca3af);
}

/* FOOTER */
footer {
    margin-top: 30px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
    padding-top: 20px;
    border-top: 1px solid rgba(100, 150, 255, 0.1);
}