* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background: #1a1512;
    color: #f0e6d8;
    font-family: 'Zen Maru Gothic', sans-serif;
    overflow: hidden;
    height: 100vh;
}

.app {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header {
    padding: 10px 14px 4px;
    flex-shrink: 0;
}

header h1 {
    margin: 0 0 2px;
    font-size: 1.05rem;
    color: #ffb703;
}

#status-text {
    margin: 0;
    font-size: 0.78rem;
    color: #cbb89a;
}

.seo-desc {
    margin: 3px 0 0;
    font-size: 0.7rem;
    color: #8a7a63;
    line-height: 1.4;
    max-width: 480px;
}

#canvas-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 6px;
}

#sim-canvas {
    background: #2a221c;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    touch-action: none;
    cursor: crosshair;
}

.controls {
    flex-shrink: 0;
    padding: 8px 12px 14px;
    background: #241d18;
    border-top: 1px solid #3a2f28;
}

.row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.row:last-child { margin-bottom: 0; }

.label {
    font-size: 0.72rem;
    color: #a89579;
    min-width: 40px;
}

.material-btn, .mode-btn, .icon-btn {
    background: #33291f;
    border: 1.5px solid #4a3d2f;
    color: #f0e6d8;
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 0.78rem;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.material-btn.active, .mode-btn.active {
    background: #ffb703;
    color: #241d18;
    border-color: #ffb703;
    font-weight: bold;
}

.swatch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}

input[type="range"] {
    flex: 1;
    min-width: 80px;
    accent-color: #ffb703;
}

#wind-arrow-wrap {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wind-arrow {
    font-size: 1.2rem;
    display: inline-block;
    transition: transform 0.2s, opacity 0.2s;
}

.back-btn {
    color: #cbb89a;
    text-decoration: none;
    font-size: 0.75rem;
}

.value-label {
    font-size: 0.72rem;
    color: #a89579;
    min-width: 32px;
    text-align: right;
}
