@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Caslon+Display&display=swap');
:root { color-scheme: dark; --bg: #161a18; --panel: #1d221f; --border: #353b32; --gold: #d7bb80; --text: #e8e7da; --muted: #98a294; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.55 'DM Sans', 'Segoe UI', sans-serif; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button, a.button { cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.masthead { height: 95px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 5vw; }
.brand { display: flex; align-items: center; gap: 13px; font: 32px/1 'Libre Caslon Display', Georgia, serif; letter-spacing: -.5px; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 44px; color: var(--gold); border: 1px solid #bda87480; border-radius: 50% 50% 4px 4px; font-size: 25px; }
.brand small { display: block; margin-top: 8px; font: 9px 'DM Sans', sans-serif; letter-spacing: 2px; color: var(--muted); }
.header-note { color: #a6ac9d; font-size: 12px; }
.tiny-star { color: var(--gold); margin-right: 7px; }
.docs-link { color: #c7cabb; font-size: 12px; border-bottom: 1px solid #636a57; padding-bottom: 3px; }
main { max-width: 1400px; margin: auto; padding: 43px 5vw 0; }
.page-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 34px; }
.eyebrow { color: #b1a382; font-size: 9px; letter-spacing: 2px; font-weight: 600; margin: 0 0 12px; }
h1 { font: 46px/1.1 'Libre Caslon Display', Georgia, serif; font-weight: 400; margin: 0 0 13px; letter-spacing: -.7px; }
.subtitle { color: var(--muted); margin: 0; font-size: 12px; }
.edition { text-align: right; color: #899181; font-size: 9px; letter-spacing: 1.5px; line-height: 2; }
.edition b { color: #c7bd9f; font-size: 12px; font-weight: 400; letter-spacing: 0; }
.workshop { display: grid; grid-template-columns: 306px minmax(0, 1fr); align-items: start; gap: 25px; }
.controls { border: 1px solid var(--border); border-radius: 9px; background: var(--panel); overflow: hidden; }
.control-section { padding: 23px 21px; border-bottom: 1px solid var(--border); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
h2 { font-size: 14px; font-weight: 500; margin: 0; }
h2 > span { font: 12px Georgia, serif; color: #9b9277; margin-right: 10px; }
.small-tag { font-size: 8px; color: #8f9788; letter-spacing: 1px; }
.segmented { display: flex; padding: 3px; background: #151a16; border: 1px solid #30372e; border-radius: 6px; margin-bottom: 19px; }
.segmented button { flex: 1; background: none; color: var(--muted); border: 0; padding: 7px; border-radius: 3px; font-size: 11px; }
.segmented button.selected { background: #374035; color: #ebe9d8; box-shadow: 0 1px 3px #0003; }
label { display: block; font-size: 11px; color: #c1c7b9; margin-bottom: 7px; }
input:not([type='checkbox']):not([type='range']), select, textarea { width: 100%; padding: 10px; color: #e6e9dd; background: #171c18; border: 1px solid #3b4437; border-radius: 5px; font-size: 11px; min-width: 0; }
input::placeholder, textarea::placeholder { color: #737f6f; }
input[type='url'] { font-family: Consolas, monospace; font-size: 10px !important; }
.password-row { display: flex; align-items: end; gap: 8px; margin-top: 13px; }
.password-row > div { min-width: 0; flex: 1; }
.optional { color: #7f8a79; font-size: 9px; margin-left: 4px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 37px; padding: 8px 13px; border-radius: 5px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.secondary { background: #2a3129; color: #d7dece; border: 1px solid #46513e; }
.primary { background: var(--gold); color: #252920; border: 1px solid var(--gold); }
.button:hover { filter: brightness(1.1); }
.help { color: #8d9886; font-size: 10px; line-height: 1.65; margin: 12px 0 0; }
.text-button { border: 0; background: none; color: #b9bdab; padding: 3px 0; font-size: 10px; }
.text-button:hover { color: var(--gold); }
.range-label { display: flex; justify-content: space-between; margin-bottom: 8px; }
output { color: var(--gold); font-size: 10px; }
input[type='range'] { width: 100%; margin: 0 0 19px; accent-color: var(--gold); height: 5px; cursor: pointer; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 15px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 0; font-size: 11px; }
input[role='switch'] { appearance: none; position: relative; width: 28px; height: 16px; border-radius: 20px; background: #4d5847; cursor: pointer; margin: 0; }
input[role='switch']::after { content: ''; position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; background: #d3d7c9; border-radius: 50%; transition: transform .15s; }
input[role='switch']:checked { background: #af9b6d; }
input[role='switch']:checked::after { transform: translateX(12px); background: #fff3d0; }
.connection-status { display: flex; gap: 10px; padding: 19px 21px; background: #191f1a; }
.connection-status b { font-size: 11px; font-weight: 500; }.connection-status p { font-size: 10px; color: #8b9684; line-height: 1.5; margin: 4px 0 0; }
.status-dot { width: 7px; height: 7px; background: #bda46c; border-radius: 50%; margin-top: 5px; flex: 0 0 auto; box-shadow: 0 0 0 4px #bda46c10; }
.status-dot[data-state='connected'] { background: #92b88c; box-shadow: 0 0 0 4px #92b88c10; }
.status-dot[data-state='error'] { background: #df8c77; }
.preview-column { min-width: 0; }
.preview-card { border: 1px solid #414839; border-radius: 9px; overflow: hidden; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 18px; background: #252c23; }
.preview-title { font-size: 9px; letter-spacing: 1.8px; color: #d8dccb; }
.preview-title > span:last-child { font-size: 7px; letter-spacing: 1px; color: #93a487; border: 1px solid #4b5941; padding: 3px 5px; margin-left: 10px; border-radius: 3px; }
.background-buttons { display: flex; gap: 3px; }
.background-buttons button { background: transparent; color: #9fa991; border: 0; padding: 4px 8px; border-radius: 3px; font-size: 9px; }
.background-buttons button.selected { background: #424d37; color: #e2e4cf; }
.scene { position: relative; height: 500px; background: #152a24; overflow: hidden; }
.scene-art { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(ellipse at 70% 0, #68827088, transparent 50%), linear-gradient(170deg, #25433a, #112d27 65%, #142b20); }
.scene-art::after { content: ''; position: absolute; inset: 0; opacity: .12; background: repeating-linear-gradient(0deg, transparent 0 3px, #bbd5ac15 3px 4px); }
.moon { position: absolute; width: 120px; height: 120px; right: 18%; top: 12%; border-radius: 50%; background: #c5cba526; box-shadow: 0 0 90px 30px #b8cda818; }
.hill { position: absolute; width: 150%; height: 70%; bottom: -28%; left: -20%; border-radius: 50% 40% 0 0; transform: rotate(-12deg); background: #122c26; }
.hill-back { bottom: -18%; left: 4%; background: #254435; transform: rotate(17deg); }
.hill-front { box-shadow: 0 -10px 60px #102e2420; }
.trail { position: absolute; right: 14%; bottom: -15%; width: 20%; height: 50%; background: #b9b0770d; transform: rotate(30deg); border-radius: 50%; }
.spark { position: absolute; color: #ddcc8e; }.s1 { top: 17%; left: 50%; font-size: 20px; opacity: .4; }.s2 { top: 41%; left: 70%; font-size: 36px; opacity: .5; }.s3 { top: 67%; left: 85%; opacity: .3; }
.scene-caption { position: absolute; top: 51px; left: 31px; color: #d2d5af; }
.scene-caption > span { font-size: 8px; letter-spacing: 3px; color: #9baa85; }
.scene-caption p { font: 37px/1.05 'Libre Caslon Display', Georgia, serif; margin: 13px 0; opacity: .86; }
.scene-caption i { font: italic 11px Georgia, serif; color: #95aa8f; }
@media (min-width: 1250px) { .scene-caption { left: auto; right: 31px; text-align: right; } }
iframe { position: absolute; border: 0; top: 8px; left: 18px; width: calc(100% - 36px); height: 450px; background: transparent; color-scheme: normal; }
.scene-footer { position: absolute; bottom: 16px; left: 21px; right: 21px; display: flex; justify-content: space-between; color: #95a78b; font-size: 7px; letter-spacing: 1.3px; pointer-events: none; }
.scene-dot { display: inline-block; width: 4px; height: 4px; background: #9db58a; border-radius: 50%; margin: 0 5px 1px 0; }
.scene[data-background='light'] { background: radial-gradient(ellipse at 85% 10%, #c4dfe1, transparent 70%), #ece6d0; }
.scene[data-background='grid'] { background: conic-gradient(#bbb 25%, #ddd 0 50%, #bbb 0 75%, #ddd 0) 0 / 22px 22px; }
.scene:not([data-background='forest']) .scene-art, .scene:not([data-background='forest']) .scene-caption { display: none; }
.scene:not([data-background='forest']) .scene-footer { color: #394633; }
.preview-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 18px; background: #20271f; font-size: 9px; color: #8f9d85; }
.event-panel { padding: 24px 0; }.event-panel h2 { font-size: 15px; }.event-panel .help { margin-top: 4px; }
.event-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.event-buttons button { display: inline-flex; align-items: center; gap: 6px; color: #c2caba; background: #222920; border: 1px solid #3b4635; border-radius: 5px; padding: 8px 12px; font-size: 10px; }
.event-buttons button:hover { border-color: #a8986b; color: #e8d6a7; background: #30372a; }
.event-dot { width: 6px; height: 6px; border-radius: 2px; }.twitch { background: #b287e0; }.youtube { background: #dd7872; }
.custom-event { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 13px; }
summary { cursor: pointer; font-size: 11px; color: #c5c8b8; }summary span { margin-left: 10px; color: #7e8a75; font-size: 9px; }
.custom-event form { margin-top: 17px; }.custom-event textarea { resize: vertical; margin-bottom: 12px; }
.raw-event { margin-top: 18px; }.raw-event summary { margin-bottom: 12px; }.raw-event textarea { font-family: Consolas, monospace; }.raw-event .text-button { margin-left: 14px; }
.event-feedback { min-height: 16px; font-size: 10px; color: #a7b39a; margin: 12px 0 0; }.event-feedback[data-error='true'] { color: #e4a590; }
.obs-panel { border: 1px solid #524e38; background: linear-gradient(100deg, #2b2e22, #20271e); border-radius: 7px; padding: 21px; }
.obs-panel .eyebrow { font-size: 8px; margin-bottom: 7px; }.obs-panel h2 { font: 25px 'Libre Caslon Display', Georgia, serif; }.obs-panel p { font-size: 10px; color: #a1ab95; margin: 8px 0 14px; }.obs-panel b { font-weight: 500; color: #d8d2b6; }
.url-row { display: flex; gap: 8px; }.url-row input { flex: 1; font-family: Consolas, monospace; }.obs-panel .help { margin-bottom: 0; font-size: 9px; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; padding: 27px 0; margin-top: 25px; border-top: 1px solid #30372d; color: #78826f; font-size: 8px; letter-spacing: 1px; }.page-footer .tiny-star { margin-inline: 9px; }
@media (min-width: 1600px) { main { padding-inline: 35px; }.workshop { grid-template-columns: 320px minmax(0, 1fr); } }
@media (max-width: 1000px) { .header-note { display: none; }.workshop { grid-template-columns: 270px minmax(0, 1fr); gap: 18px; }.control-section { padding: 19px 16px; } main { padding-inline: 24px; } .preview-title > span:last-child { display: none; } h1 { font-size: 39px; } .edition { display: none; } }
@media (max-width: 760px) { .masthead { height: 80px; padding-inline: 22px; }.brand { font-size: 27px; }main { padding: 30px 18px 0; }.page-heading { margin-bottom: 25px; }h1 { font-size: 36px; }.workshop { grid-template-columns: 1fr; }.controls { display: grid; grid-template-columns: 1fr 1fr; }.control-section { border-bottom: 0; }.control-section:first-child { border-right: 1px solid var(--border); }.connection-status { grid-column: 1 / -1; border-top: 1px solid var(--border); }.scene { height: 480px; }iframe { height: 430px; }.page-footer { flex-direction: column; gap: 9px; }.scene-caption { top: 40px; } }
@media (max-width: 480px) { .controls { display: block; }.control-section:first-child { border-right: 0; border-bottom: 1px solid var(--border); }.docs-link { font-size: 9px; }.brand small { font-size: 7px; }.url-row { flex-wrap: wrap; }.url-row input { flex-basis: 100%; }.preview-toolbar { padding: 11px; }.preview-bottom > span { max-width: 65%; }.scene-caption p { font-size: 33px; }.event-panel > .section-heading { align-items: start; }summary span { display: block; margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
