body {
    margin: 0;
    color: #e9e1d2;
    background: radial-gradient(1200px 600px at 20% 10%, rgba(85, 120, 170, 0.18), rgba(0, 0, 0, 0) 60%),
        radial-gradient(800px 500px at 80% 30%, rgba(220, 170, 100, 0.10), rgba(0, 0, 0, 0) 55%),
        linear-gradient(180deg, #0b0f14 0%, #07090c 100%);
    min-height: 100vh;
}

body.designer-page {
    overflow: hidden;
}

body.designer-page.dropdown-open {
    overflow: visible;
}

/* Top toolbar (map management) */
.container-fluid.mt-5 {
    padding: 0.5rem 1rem !important;
    margin-top: 0.5rem !important;
}

.container-fluid.mt-5 .btn {
    padding: 0.35rem 0.6rem !important;
    font-size: 0.85rem !important;
}

.container-fluid.mt-5 .form-select-sm {
    padding: 0.25rem 0.4rem !important;
}

.container-fluid.mt-5 .form-label {
    margin-bottom: 0 !important;
    font-size: 0.85rem;
    font-weight: 600;
}

.container-fluid.mt-5 .vr {
    height: 24px;
    margin-left: 0.75rem !important;
    margin-right: 0.75rem !important;
}

.container-fluid.mt-5 input[type="range"] {
    margin: 0 !important;
}

.container-fluid.mt-5 .gap-2 > * {
    margin-right: 0.25rem;
}

#toolbar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(16, 20, 26, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 8px;
    backdrop-filter: blur(6px);
    overflow-x: auto;
    overflow-y: visible;
    z-index: 1000;
}

#toolbar .dropdown-menu {
    z-index: 10000 !important;
    position: fixed !important;
}

#toolbar button, #toolbar .btn {
    margin: 0 !important;
    padding: 0.375rem 0.5rem !important;
    font-size: 0.85rem;
}

#toolbar .btn-sm {
    padding: 0.3rem 0.4rem !important;
    font-size: 0.8rem;
}

#toolbar .vr {
    height: 24px;
}

.color-btn {
    width: 28px;
    height: 28px;
    margin: 0 !important;
    border: 1px solid rgba(100, 100, 100, 0.3) !important;
    padding: 0 !important;
    cursor: pointer;
}

.color-btn.is-active {
    border: 2px solid rgba(242, 234, 223, 0.9);
    box-shadow: 0 0 0 2px rgba(106, 75, 42, 0.6);
}

.tool-btn.is-active,
.btn.is-active {
    background: rgba(106, 75, 42, 0.8);
    border-color: rgba(214, 195, 174, 0.9);
    color: #f7f1e7;
    box-shadow: 0 0 0 2px rgba(214, 195, 174, 0.2);
}

#bgOpacity:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
 
canvas {
    display: block;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    z-index: 1;
}

.mobile-toolbar {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 60px;
    background: rgba(16, 20, 26, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-toolbar button {
    background: none;
    border: none;
    font-size: 24px;
}

.changelog {
    margin: 20px;
}
.changelog-date {
    font-size: 1.5rem;
    color: #007bff;
}
.changelog-entry {
    margin-bottom: 20px;
}

/* Add these CSS rules */
#grid.pen,
#grid.rect,
#grid.rectOutline,
#grid.circleFill,
#grid.circleOutline,
#grid.lineDirect,
#grid.select,
#grid.paste {
    cursor: crosshair;
}

#grid.eraser {
    cursor: default; /* Replace 'eraser-cursor-url' with your eraser cursor URL */
}

#grid.hand {
    cursor: grab;
}

/* RimWorld-ish palette */
.navbar {
    background: rgba(16, 20, 26, 0.88) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
}

.card {
    background: rgba(15, 18, 24, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-primary {
    --bs-btn-bg: #6a4b2a;
    --bs-btn-border-color: #6a4b2a;
    --bs-btn-hover-bg: #7a5630;
    --bs-btn-hover-border-color: #7a5630;
    --bs-btn-active-bg: #5a3f23;
    --bs-btn-active-border-color: #5a3f23;
    --bs-btn-color: #f2eadf;
}

.btn-outline-primary {
    --bs-btn-color: #d6c3ae;
    --bs-btn-border-color: rgba(214, 195, 174, 0.5);
    --bs-btn-hover-bg: rgba(106, 75, 42, 0.25);
    --bs-btn-hover-border-color: rgba(214, 195, 174, 0.7);
    --bs-btn-hover-color: #f2eadf;
}

/* Landing page */
.landing-hero {
    background:
        radial-gradient(900px 480px at 18% 0%, rgba(110, 160, 210, 0.22), rgba(0, 0, 0, 0) 60%),
        radial-gradient(700px 420px at 90% 15%, rgba(220, 170, 100, 0.14), rgba(0, 0, 0, 0) 58%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-badge {
    background: rgba(106, 75, 42, 0.18);
    border: 1px solid rgba(214, 195, 174, 0.22);
    color: #e9e1d2;
    font-weight: 500;
}

.landing-panel {
    background: rgba(15, 18, 24, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.landing-card {
    transition: transform 120ms ease, border-color 120ms ease;
}

.landing-card:hover {
    transform: translateY(-2px);
    border-color: rgba(214, 195, 174, 0.22);
}

.landing-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(106, 75, 42, 0.20);
    border: 1px solid rgba(214, 195, 174, 0.18);
    color: #f2eadf;
}

.landing-checklist li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-checklist li:first-child {
    border-top: none;
}

.landing-checklist i {
    margin-top: 2px;
    opacity: 0.9;
}

.landing-steps li {
    padding: 8px 0;
}
