dialog#threshold{position:fixed;inset:0;margin:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;padding:0;border:0;border-radius:0;overflow:hidden;isolation:isolate;background:#272c32;color:#f1e9dd;font-family:var(--serif);--gate-metal:#d1b18a;--cut:clamp(44px,8vw,120px)}#threshold::backdrop{background:#26292c}.gate-city,.gate-wing:before,.gate-mist,.gate-seam,#gate-wings,.gate-wing{position:absolute;inset:0}.gate-city{background:linear-gradient(180deg,#22262edf,#444b5390 39%,#3a3e4390 64%,#1d1e23),url('../assets/fog-riverside.webp') center 54%/cover;filter:grayscale(.85)}
#gate-wings{z-index:1}.gate-wing{width:100%;height:100%;border-radius:0;border:0;padding:0;background:transparent;color:#eee9df;overflow:hidden;text-align:center;touch-action:manipulation}.gate-wing.wing-oc{clip-path:polygon(0 0,calc(50% + var(--cut)) 0,calc(50% - var(--cut)) 100%,0 100%)}.gate-wing.wing-klein{clip-path:polygon(calc(50% + var(--cut)) 0,100% 0,100% 100%,calc(50% - var(--cut)) 100%)}.gate-wing:before{content:'';background:radial-gradient(ellipse at 28% 53%,#c6cfd35c,transparent 48%),linear-gradient(120deg,#6077833d,transparent 70%)}.wing-klein:before{background:radial-gradient(ellipse at 72% 48%,#cac3be59,transparent 46%),linear-gradient(245deg,#93786b2b,transparent 65%)}
.gate-wing img{position:absolute;bottom:-10%;height:88%;width:49%;object-fit:contain;object-position:bottom;filter:brightness(.83) saturate(.67) drop-shadow(0 6px 12px #20212755);transition:transform .55s ease,filter .42s ease;transform-origin:50% 78%;pointer-events:none;user-select:none}.wing-oc img{left:5%}.wing-klein img{right:4%}.gate-wing[aria-pressed=true] img{transform:scale(1.09);filter:brightness(1.1) saturate(.88) drop-shadow(0 4px 16px #d1c5b344)}#threshold[data-selected] .gate-wing[aria-pressed=false] img{filter:brightness(.62) saturate(.43)}.gate-wing>span{position:absolute;bottom:19%;width:42%;z-index:1;text-shadow:0 2px 15px #12141b,0 1px 4px #151519}.wing-oc>span{left:3%}.wing-klein>span{right:3%}.gate-wing b{display:block;font:550 clamp(25px,3.1vw,52px)/1.4 var(--serif);letter-spacing:.14em}.gate-wing i{display:inline-flex;align-items:center;gap:8px;font:italic 15px Georgia;color:#e7d2b6}.gate-wing i:before,.gate-wing i:after{content:'';width:20px;height:1px;background:#c7b7a388}.gate-wing[aria-pressed=true] b,.gate-wing:focus-visible b{color:#ffe3b1}.gate-wing:focus-visible{outline:none}.gate-wing:focus-visible b{text-decoration:underline;text-underline-offset:.25em}
.gate-seam{z-index:2;pointer-events:none;background:linear-gradient(180deg,transparent 4%,#dbc9ac9c 25%,#e2ceaa 55%,#baa99077 80%,transparent 96%);clip-path:polygon(calc(50% + var(--cut)) 0,calc(50% + var(--cut) + 1.6px) 0,calc(50% - var(--cut) + 1.6px) 100%,calc(50% - var(--cut)) 100%)}
.gate-mist{pointer-events:none;z-index:3;inset:auto -15%;height:54%;background:url('../assets/threshold-mist.webp') center/100% 100% no-repeat;opacity:.82}.gate-mist.back{top:-24%;height:67%;transform:rotate(-8deg);opacity:.54}.gate-mist.fore{bottom:-7%;height:51%;mask-image:linear-gradient(0deg,black 40%,#000b)}#gate-wings:after{content:'';position:absolute;pointer-events:none;inset:73% 0 0;background:linear-gradient(transparent,#1e2229bf)}
.gate-head,.gate-foot{position:absolute;z-index:4;left:0;right:0;display:flex;justify-content:center;align-items:center;gap:16px}.gate-head{top:max(5vh,env(safe-area-inset-top));pointer-events:none}.gate-head h1{margin:0;font:500 clamp(23px,3vw,43px)/1.3 var(--serif);letter-spacing:.24em;text-shadow:0 1px 9px #24262c;text-indent:.24em}.gate-rule{width:min(11vw,125px);height:1px;background:linear-gradient(90deg,transparent,#cbbfa4)}.gate-rule:last-child{transform:rotate(180deg)}.gate-foot{bottom:max(6dvh,env(safe-area-inset-bottom));pointer-events:none}#threshold .gate-commit{display:inline-flex;pointer-events:auto;align-items:center;justify-content:space-between;gap:22px;min-height:43px;padding:9px 24px;border:1px solid #c4a98a;border-radius:2px;background:#302e30ed;color:#f5ead6;font:16px var(--serif)}#threshold .gate-commit:disabled{background:#34363a9c;border-color:#928d85;color:#c6c1bb}#threshold .gate-commit:not(:disabled):hover{background:#54463b}
#gate-details{position:absolute;z-index:5;right:12%;top:50%;transform:translateY(-42%);width:min(36%,380px);max-height:72dvh;overflow:auto;padding:22px clamp(17px,2vw,30px);border-block:1px solid #928475;background:linear-gradient(110deg,#27272aea,#29272bea);box-shadow:0 6px 40px #16151b38}#gate-back{border:0;background:none;padding:0;color:#c7baab;font:13px var(--serif);min-height:28px}#gate-details h2{margin:8px 0 20px;font:500 clamp(23px,2vw,33px) var(--serif)}#gate-details form>label,#gate-details legend{font-size:13px;color:#d3c6b5}#gate-details input:not([type=radio]),#gate-details select{margin:5px 0 12px;width:100%;color:#efe7d9;background:#26262a;border:1px solid #837969;min-height:41px;border-radius:2px;padding:6px 9px;font:16px var(--serif)}#gate-details fieldset{border:0;padding:0;margin:2px 0 17px}#gate-details fieldset label{display:inline-flex;align-items:center;gap:6px;min-height:38px;margin-right:20px}#gate-details input[type=radio]{width:16px;height:16px;margin:0}.gate-volume-preview{margin:2px 0 15px}.gate-volume-preview strong{font:18px var(--serif)}.gate-volume-preview p{font:13px/1.5 var(--serif);color:#cec4b7;margin:6px 0}#gate-error{color:#ffbbad}#threshold[data-phase=details] .gate-wing{clip-path:none;pointer-events:none}#threshold[data-phase=details] .gate-wing[aria-pressed=false],#threshold[data-phase=details] .gate-wing>span,#threshold[data-phase=details] .gate-seam{visibility:hidden}#threshold[data-phase=details] .gate-wing[aria-pressed=true] img{left:4%;right:auto;bottom:-7%;height:91%}
@media(prefers-reduced-motion:no-preference){.gate-mist.fore{animation:gate-drift 23s ease-in-out infinite alternate}.gate-mist.back{animation:gate-bank 30s ease-in-out infinite alternate}@keyframes gate-drift{to{transform:translate(6%,-5%) scale(1.08)}}@keyframes gate-bank{to{transform:translate(-6%,6%) rotate(-4deg)}}}@media(prefers-reduced-motion:reduce){.gate-wing img{transition:none}}
@media(max-width:620px){#threshold{--cut:12vw}.gate-head{top:max(6dvh,env(safe-area-inset-top))}.gate-wing img{width:69%;height:74%;bottom:1%;object-position:center bottom}.wing-oc img{left:-10%}.wing-klein img{right:-9%}.gate-wing>span{bottom:18.5%;width:48%}.wing-oc>span{left:0}.wing-klein>span{right:0}.gate-wing b{font-size:clamp(21px,5.8vw,32px)}#gate-details{right:4%;width:64%;top:53%;max-height:73dvh;padding:14px}.gate-volume-preview p{font-size:12px}#threshold[data-phase=details] .gate-wing[aria-pressed=true] img{left:-20%;height:78%;width:81%;bottom:0}#gate-details h2{margin-bottom:14px}.gate-mist.fore{height:55%}}@media(max-height:530px){.gate-head{top:8px}.gate-head h1{font-size:21px}#gate-details{max-height:80dvh;top:52%;transform:translateY(-48%);padding:10px 16px}.gate-wing img{height:92%}.gate-foot{bottom:3vh}.gate-wing>span{bottom:18%}}
#gate-title:focus{outline:0}
.gate-image-link{margin:0 0 14px;padding:0;border:0}.gate-image-link summary{width:fit-content;font:13px/1.8 var(--serif);color:#cebfaa;cursor:pointer}
#portrait-source{width:min(350px,calc(100vw - 32px));padding:20px;color:var(--mist);background:var(--iron);border:1px solid var(--rim);border-radius:5px}#portrait-source h2{margin:0 0 12px;font:22px var(--serif)}#portrait-url-form{display:grid;gap:7px;margin:13px 0 10px}#portrait-url-form label{font-size:13px;color:var(--muted)}#portrait-url{width:100%;min-height:40px;color:var(--mist);background:var(--iron-low);border:1px solid var(--rim);padding:6px 9px}#portrait-source-note{font-size:13px;color:var(--copper)}
