:root{color-scheme:dark;font-family:Inter,"Segoe UI",sans-serif;--paper:#f1f0e7;--muted:#a8b1b9;--gold:#efd092;--edge:#38434a;--ground:#151c20;--dark:#0a1013;--panel:#131b1f;--ink:#11181d}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 42% -24%,#283637 0%,#11191d 40%,#0a1013 78%);color:var(--paper);font-size:16px;line-height:1.45;min-height:100vh}body [hidden]{display:none!important}a{color:inherit;text-decoration:none}button,select,input{font:inherit}button{cursor:pointer;border:1px solid var(--edge);color:var(--paper);background:#182226;border-radius:6px;padding:.56rem .73rem;white-space:nowrap}button:disabled{cursor:not-allowed;opacity:.52}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible{outline:2px solid var(--gold);outline-offset:3px}button:hover:not(:disabled),button[aria-pressed=true]{border-color:#ad8d5c;color:var(--gold)}
.nav{max-width:1600px;margin:auto;padding:0 clamp(1rem,5vw,4rem);height:70px;border-bottom:1px solid #344147;display:flex;align-items:center;gap:1.3rem}.wordmark img{display:block;max-height:35px;object-fit:contain}.nav-label{padding-left:1.3rem;border-left:1px solid var(--edge);font-size:.72rem;font-weight:800;letter-spacing:.15em;color:var(--muted)}.nav>a:last-child{margin-left:auto}.site-link{color:var(--gold);font-weight:620}.site-link:hover{text-decoration:underline}
main{max-width:1600px;margin:auto;padding:clamp(1.3rem,3vw,2.6rem) clamp(1rem,5vw,4rem) 2rem}.title{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;margin-bottom:1.4rem}.kicker{color:var(--gold);font-size:.74rem;font-weight:750;letter-spacing:.15em;margin:0 0 .62rem;display:flex;gap:.55rem;align-items:center}.kicker span{width:12px;border-bottom:1px solid #cfa977}.title h1{font-family:"Arial Narrow","Bahnschrift SemiCondensed","Segoe UI",sans-serif;font-weight:850;letter-spacing:-.045em;line-height:.93;font-size:clamp(2.55rem,4.65vw,4.7rem);margin:0}.title h1 em{font-style:normal;color:var(--gold)}.subhead{color:#c6cdcd;font-size:clamp(.95rem,1.7vw,1.35rem);white-space:nowrap;margin:0 0 .22em}
.studio{display:grid;grid-template-columns:minmax(0,1fr) minmax(295px,355px);gap:1rem;align-items:start}.viewer,.config{border:1px solid var(--edge);border-radius:10px;background:var(--panel);overflow:hidden}.stage{height:clamp(370px,45vw,665px);position:relative;isolation:isolate;background:radial-gradient(ellipse at 50% 39%,#40515b 0%,#26333d 34%,#0e171e 76%);display:grid;place-items:center}.stage:after{content:"";position:absolute;z-index:-1;bottom:9%;width:76%;height:22%;background:radial-gradient(ellipse,#090c0d9e,transparent 70%);filter:blur(12px)}.stage img,.stage canvas{width:100%;height:100%;object-fit:contain;position:absolute;inset:0;display:block}.stage img{object-fit:contain;padding:18px 5% 40px;filter:drop-shadow(0 18px 19px #0009)}.stage canvas{touch-action:pan-y;cursor:grab}.stage canvas.touch-orbit{touch-action:none}.stage canvas.orbit-dragging{cursor:grabbing}.stage-label{position:absolute;left:15px;top:15px;z-index:2;pointer-events:none;background:#0d1419c9;border:1px solid #6776808a;padding:.45rem .64rem;border-radius:4px;color:#dce2de;font-weight:730;font-size:.7rem;letter-spacing:.12em;display:flex;gap:.52rem;align-items:center}.stage-label span{height:7px;width:7px;border-radius:50%;background:var(--gold)}.launch{position:absolute;bottom:22px;z-index:2}.stage-status{position:absolute;bottom:3rem;text-align:center;max-width:80%;font-weight:700;background:#0d1419e0;border:1px solid var(--edge);border-radius:6px;padding:.7rem .9rem}
.camera,.angles,.camera-tools{display:flex;gap:.38rem;flex-wrap:wrap;align-items:center}.camera{justify-content:space-between;border-top:1px solid var(--edge);padding:.65rem}.camera button{font-size:.78rem}.camera-tools button:first-child,.camera-tools button:nth-child(2){min-width:36px}.touch{display:none}
.config{padding:1.13rem}.config h2,.config h3,.config p{margin:0}.config h2{font-size:1.45rem;letter-spacing:-.04em}.config h3{font-size:1rem}.config-top,.edit-row{display:flex;align-items:center;justify-content:space-between;gap:.45rem}.text-btn{border:none;color:var(--gold);background:none;padding:.25rem;font-weight:650;font-size:.76rem}.text-btn:hover:not(:disabled){text-decoration:underline}
.form-label{display:block;font-size:.875rem;font-weight:750;color:#d3d9d8;letter-spacing:.025em;margin:.77rem 0 .35rem}.config select,.config input:not([type=color]):not([type=checkbox]):not([type=range]){width:100%;padding:.58rem .65rem;min-height:39px;border:1px solid #465258;border-radius:5px;color:var(--paper);background:#0d151a}.theme-sample{display:flex;gap:.28rem;margin-top:.55rem}.theme-sample span{height:5px;flex:1;border-radius:2px}.config-line{height:1px;background:var(--edge);margin:.87rem 0}.config .help{color:var(--muted);font-size:.81rem;margin:.32rem 0}.swatches{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.35rem;margin:.6rem 0}.swatches button{padding:0;aspect-ratio:1;min-height:29px;border:2px solid #4d565c;border-radius:50%;background:var(--swatch);color:white}.swatches button[aria-pressed=true]{outline:2px solid var(--gold);outline-offset:2px;border-color:#14181a}.custom{display:flex;align-items:center;color:#d5dcdd;gap:.35rem;font-size:.79rem}.custom input{width:32px;height:30px;background:none;border:0;cursor:pointer;padding:1px}.gear{display:flex;align-items:center;gap:.35rem;color:#d5dcdd;font-size:.78rem;margin-top:.55rem}.gear input{accent-color:#d4ad70}
.primary{background:var(--gold);color:var(--ink);border-color:var(--gold);font-weight:810}.primary:hover:not(:disabled){background:#fff0bf;color:var(--ink)}.export-row{display:flex;gap:.45rem;margin-top:.67rem}.export-row .primary{flex:1}.export-row button{font-size:.86rem}.export-row button span,.launch span{margin-left:.25rem}
footer{max-width:1600px;margin:0 auto;padding:.8rem clamp(1rem,5vw,4rem) 1.4rem;border-top:1px solid #28353c;display:flex;gap:1rem;justify-content:space-between;color:var(--muted);font-size:.78rem}
.color-entry{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:end;gap:.7rem;margin-bottom:.5rem}
.color-entry .form-label{margin-top:0}
.color-entry>label{margin-bottom:0}
.color-entry input[type=color]{display:block;width:100%;min-width:76px;height:39px;margin-top:.35rem;padding:3px;border:1px solid #465258;border-radius:5px;background:#0d151a;cursor:pointer}
.hex-entry{display:flex;gap:.35rem}
.hex-entry input{min-width:0;font-family:ui-monospace,Cascadia Mono,Consolas,monospace}
.hex-entry button{padding:.35rem .55rem;font-size:.8rem}
#hexError{color:#ffb5a3}
.swatches button:focus-visible{outline-offset:4px}
@media (pointer:coarse){.touch{display:inline-block}}
@media(max-width:850px){.title{display:block}.subhead{margin-top:.66rem}.studio{grid-template-columns:minmax(0,1fr)}.stage{height:clamp(340px,63vw,530px)}.config{max-width:none}.touch{display:inline-block}.title h1{font-size:clamp(2.65rem,8.05vw,4.2rem)}.stage img{padding:22px 4% 30px}}
@media(max-width:480px){.nav{height:58px;gap:.5rem}.nav-label{display:none}.wordmark img{width:93px;max-height:25px}.site-link{font-size:.75rem}.stage{height:325px}.camera{align-items:stretch}.camera button{min-height:37px}.kicker{font-size:.65rem}.title h1{font-size:clamp(2rem,8.25vw,2.8rem)}.title{margin-bottom:.9rem}main{padding-top:1rem}}
.viewer{position:sticky;top:.75rem}
.region-swatches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem;margin:.62rem 0}
.region-swatches button{display:flex;align-items:center;gap:.34rem;padding:.52rem .38rem;font-size:.7rem;text-align:left;white-space:normal;line-height:1.15;min-height:38px}
.region-swatches button[aria-pressed=true]{background:#252925}
.region-chip{width:15px;height:15px;flex:none;border:1px solid #8b979f;border-radius:50%;background:var(--chip)}
.live-color{padding:.63rem;background:#0e171b;border:1px solid var(--edge);border-radius:7px;margin:.66rem 0}
.live-color-heading{display:flex;justify-content:space-between;gap:.5rem;align-items:center;margin-bottom:.46rem;font-size:.78rem;font-weight:730}
.live-color-heading output{color:var(--gold);font-family:ui-monospace,Cascadia Mono,Consolas,monospace;white-space:nowrap;font-size:.72rem}
.color-plane{position:relative;height:130px;margin:0 3px;border:1px solid #465258;border-radius:5px;background:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,transparent),hsl(var(--hue,0),100%,50%);cursor:crosshair;touch-action:none}
.color-plane:focus-visible,.hue-range:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
#colorIndicator{position:absolute;width:15px;height:15px;transform:translate(-50%,-50%);border:2px solid white;border-radius:50%;box-shadow:0 0 0 1px #080c10;pointer-events:none}
.hue-label{display:block;color:#d3d9d8;font-size:.74rem;margin:.48rem 0 .25rem}
.hue-range{display:block;width:100%;height:15px;margin:0 0 .14rem;appearance:none;cursor:ew-resize;touch-action:pan-y;border-radius:5px;background:linear-gradient(90deg,red,#ff0,lime,cyan,blue,magenta,red)}
.hue-range::-webkit-slider-thumb{appearance:none;width:15px;height:21px;border-radius:4px;border:2px solid white;background:#182226;box-shadow:0 0 0 1px #131b1f}
.hue-range::-moz-range-thumb{width:12px;height:18px;border-radius:4px;border:2px solid white;background:#182226;box-shadow:0 0 0 1px #131b1f}
.extra-swatches{font-size:.78rem;margin:.55rem 0}
.extra-swatches summary{cursor:pointer;color:var(--gold);padding:.3rem 0}
@media(max-width:850px){.viewer{top:0;z-index:3}.stage{height:clamp(150px,30svh,280px)}}
@media(max-width:850px) and (max-height:500px){.viewer{position:static}}


