/* Rain-carved mountains (/gifts/rain-carved/): on top of the shared maker look (/gifts/globes/maker.css).
   The drawing and the 3D mountain side by side on a wide screen, one above the other on a narrow one. */

.rc [hidden] { display: none !important; }
.rc .rc-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; }
.rc .rc-draw { background: #121318; border-radius: 14px; padding: 10px 10px 12px; }
.rc .rc-3d { position: relative; top: 0; height: min(66vh, 600px); min-height: 380px; }
@media (min-width: 1280px) {
    .rc .rc-stage { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); position: sticky; top: 68px; }
    .rc .rc-3d { height: auto; min-height: 0; }
}

/* brushes */
.rc-tools { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.rc .rc-tool {
    display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0;
    background: transparent; border: 0; border-radius: 10px; padding: 6px 2px 5px; cursor: pointer;
    color: var(--muted); font: inherit; font-size: 0.74rem; line-height: 1.1;
}
.rc .rc-tool span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc .rc-tool:hover { color: var(--ink); background: #1c201e; }
.rc .rc-tool[aria-pressed="true"] { color: var(--ink); background: var(--field); box-shadow: inset 0 0 0 1.5px var(--accent); }
.rc .rc-ico { width: 28px; height: 26px; flex: none; display: block; }
.rc .rc-ico-ridge { background: #8a8178; clip-path: polygon(0 100%, 22% 48%, 36% 66%, 58% 12%, 76% 52%, 88% 38%, 100% 100%); }
.rc .rc-ico-peak { background: linear-gradient(180deg, #f4f3ee 0 32%, #8a8178 32%); clip-path: polygon(50% 4%, 100% 100%, 0 100%); }
.rc .rc-ico-valley { background: linear-gradient(180deg, #6f9e4f 0 55%, #4f86b8 55%); clip-path: polygon(0 10%, 30% 62%, 70% 62%, 100% 10%, 100% 100%, 0 100%); }
.rc .rc-ico-bx { display: grid; place-items: center; font-size: 20px; color: var(--ink); background: #262b29; border-radius: 50%; width: 26px; }
.rc-row { display: flex; align-items: center; gap: 12px; margin: 8px 0; flex-wrap: wrap; }
.rc-slide { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 120px; color: var(--muted); font-size: 0.78rem; }
.rc-slide input { flex: 1; min-width: 0; accent-color: var(--gold); }
.rc-acts { display: flex; gap: 2px; }
.rc .rc-act { width: 34px; height: 34px; border: 0; border-radius: 8px; background: var(--field); color: var(--ink); display: grid; place-items: center; cursor: pointer; font-size: 1.15rem; padding: 0; }
.rc .rc-act:hover:not(:disabled) { background: #2a302d; }
.rc .rc-act:disabled { opacity: 0.35; cursor: default; }

/* the paper: the land seen from above */
.rc-canvas-wrap {
    position: relative; width: 100%; aspect-ratio: 1 / 1; margin: 0 auto;
    max-width: min(100%, calc(100vh - 240px));
    border-radius: 8px; overflow: hidden; background: #6f9e4f; touch-action: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.rc-canvas, .rc-over { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rc-canvas { cursor: crosshair; touch-action: none; }
.rc-over { pointer-events: none; }
.rc-front {
    position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); pointer-events: none;
    font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75);
    background: rgba(20, 23, 22, 0.55); padding: 2px 8px; border-radius: 999px;
}

/* the rain bar */
.rc .rc-bar { gap: 8px; }
.rc .wm-stagebar .rc-rain { background: var(--gold); color: #1d1a10; font-weight: 600; }
.rc .wm-stagebar .rc-rain:hover:not(:disabled) { background: #e7c260; color: #1d1a10; }
.rc .rc-rain { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; font-size: 0.92rem; min-width: 118px; justify-content: center; }
.rc .rc-rain .bx { font-size: 1.15rem; margin: 0; }
.rc .rc-small { padding: 7px 10px; font-size: 1.05rem; line-height: 1; display: inline-grid; place-items: center; }
.rc .rc-small[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--accent); }
.rc-years { font-size: 0.86rem; color: var(--ink); min-width: 9.5em; }
.rc .rc-ba { margin-left: auto; }
.rc .rc-ba button { padding: 5px 10px; font-size: 0.8rem; }
.rc-yearbar { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; z-index: 2; pointer-events: none; }
.rc-yearbar i { display: block; height: 100%; width: 0; background: var(--accent); }

/* panel */
.rc .rc-label { display: block; font-size: 0.8rem; color: var(--muted); margin: 14px 0 6px; }
.rc .wm-sec > .rc-label:first-of-type { margin-top: 0; }
.rc .wm-seg button { white-space: normal; line-height: 1.2; }
.rc-seed { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 0.86rem; }
.rc-seed .wm-btn, .rc-name .wm-btn { font-weight: 500; font-size: 0.84rem; }
.rc-name { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.rc-name .wm-btn { white-space: nowrap; }
.rc .wm-colors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rc .wm-colors label[hidden] { display: none; }
.rc .wm-sec-out h3 { margin-top: 14px; }

@media (max-width: 560px) {
    .rc .rc-draw { padding: 8px 6px 10px; margin: 0 -6px; }
    .rc .rc-tool { font-size: 0.7rem; padding: 5px 1px; }
    .rc-canvas-wrap { max-width: 100%; }
    .rc .rc-3d { height: 60vh; min-height: 340px; }
    .rc .wm-colors { grid-template-columns: minmax(0, 1fr); }
    .rc .rc-ba { margin-left: 0; }
    .rc-years { min-width: 0; }
}
