body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: transparent;
    color: #cdd6f4;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0;
    width: 100%;
    margin-top: -40px;
    /* Aggressive upward shift */
}

h2 {
    margin-top: 10px;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #89b4fa, #cba6f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    margin-bottom: 2px;
}

#puzzle-date-div,
#difficulty-div {
    margin: 2px 0;
    /* Tighten vertical space */
    display: flex;
    align-items: center;
    gap: 12px;
}

label {
    font-size: 0.85rem;
    color: #bac2de;
}

#puzzle-date,
#difficulty-select {
    background: rgba(30, 30, 46, 0.6);
    border: 1px solid #313244;
    color: #cdd6f4;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    outline: none;
}

.controls-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
    width: 100%;
    justify-content: center;
}

button {
    background: #313244;
    border: 1px solid #45475a;
    color: #cdd6f4;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

button:hover:not(:disabled) {
    background: #45475a;
    border-color: #89b4fa;
    transform: translateY(-1px);
}

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

#solve-button {
    flex-grow: 0;
    width: 220px;
    height: 48px;
    background: linear-gradient(135deg, #89b4fa, #cba6f7);
    color: #11111b;
    border: none;
    font-weight: 750;
    font-size: 1rem;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(137, 180, 250, 0.2);
}

#pause-button {
    height: 48px;
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    padding: 0;
    border-radius: 14px;
}

#solve-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

#puzzle-canvas {
    background: #0f111a;
    border-radius: 20px;
    margin-top: 5px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 98%;
    height: auto;
}

#timer-span {
    font-size: 0.75rem;
    color: #89b4fa;
    margin-top: 8px;
    opacity: 0.8;
}

#footer {
    display: none;
}