/* Overlay maker page */
.mk { padding-block: 44px 24px; display: flex; flex-direction: column; gap: 22px; }
.mk h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.02em; margin: 8px 0 6px; }
.mk h2 { font-size: 17px; font-weight: 700; }
.mk p { margin: 0; }
.small { font-size: 13px; }
.mk-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: 18px; align-items: start; }
.mk-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.mk-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mk-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mk-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mk-field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--muted); min-width: 0; }
.mk-field small, .mk small { font-size: 12px; color: #8b8498; }
.mk-field b { color: var(--fg); }
.mk-field input[type="text"] { min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: #0f0d15; color: var(--fg); font: 700 16px var(--mono); letter-spacing: .06em; text-transform: uppercase; outline: none; }
.mk-field input[type="text"]:focus-visible, .mk-url input:focus-visible { border-color: rgba(224, 70, 209, .75); box-shadow: 0 0 0 3px rgba(224, 70, 209, .18); }
.mk-field input[type="range"] { width: 100%; accent-color: #e046d1; min-height: 28px; }
.mk-seg { display: flex; flex-wrap: wrap; gap: 4px; background: var(--sub); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.mk-seg button { flex: 1 1 auto; min-height: 38px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: 600 13px var(--body); cursor: pointer; white-space: nowrap; }
.mk-seg button[aria-pressed="true"] { background: var(--grad); color: #fff; }
/* a stand-in for a game on stream, so the overlay is seen the way viewers see it */
.mk-stage { position: relative; height: 250px; border-radius: 14px; overflow: hidden; display: flex; align-items: center; padding: 16px;
  background: linear-gradient(160deg, #20324a 0%, #152033 45%, #0c1320 100%); border: 1px solid var(--line2); }
.mk-stage::before { content: ''; position: absolute; inset: 0; background: radial-gradient(40% 60% at 70% 30%, rgba(255, 190, 120, .18), transparent 70%), repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 80px); }
.mk-stage[data-side="right"] { justify-content: flex-end; }
.mk-stage { min-height: 300px; height: auto; }
.mk-stage[data-style="ticker"] { align-items: flex-end; padding: 0; }
.mk-stage[data-style="ticker"] #preview { width: 100%; }
.mk-group { font-weight: 700; letter-spacing: .04em; color: var(--muted) !important; margin-top: 4px; }
#preview { position: relative; max-width: 100%; }
.mk-url { display: flex; gap: 10px; }
.mk-url input { flex: 1; min-width: 0; min-height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line2); background: #0f0d15; color: var(--fg); font: 500 13px var(--mono); outline: none; }
.mk-size { font-size: 14px; color: var(--muted); }
.mk-size b { color: var(--fg); margin-left: 6px; }
.mk-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: #d9d3e3; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
@media (max-width: 900px) { .mk-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .mk-row { grid-template-columns: 1fr; } .mk-url { flex-direction: column; } .mk-card { padding: 18px; } }
