html, body {
    margin: 0;
    padding: 0;
    background-color: #101010;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
#main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}
h1 {
    color: #654321;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    font-size: 2.5rem;
}
#app-layout {
    display: flex;
    gap: 30px;
    align-items: stretch;
}
canvas {
    display: block;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    border: 8px solid #4a3728;
    border-radius: 4px;
}
#sidebar {
    width: 220px;
    background: #e8dccb;
    border-radius: 8px;
    border-right: 12px solid #654321;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}
#legend {
    padding: 25px 20px;
    color: #4a3728;
}
#legend h3 {
    margin-top: 0;
    color: #654321;
    border-bottom: 2px solid #654321;
    padding-bottom: 10px;
    text-align: center;
}
#legend ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
#legend li {
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.2;
}
#legend .icon {
    font-size: 1.4rem;
    margin-right: 10px;
    vertical-align: middle;
}
#legend small {
    color: #8b4513;
    font-weight: bold;
    margin-left: 32px;
}
hr {
    border: 0;
    border-top: 1px dashed #654321;
    margin: 20px 0;
}
.quote {
    font-size: 0.8rem;
    color: #8b4513;
    text-align: center;
    line-height: 1.4;
}
