/* The street of menorahs: the street view, a stepped-into window, and the Send sheet. Uses the page's color variables. */
.st-open,.st-open body{overflow:hidden}
.st{position:fixed;inset:0;z-index:50;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;color:#eef2fb;
 background:linear-gradient(#050a1f 0%,#0b1538 55%,#16204a 100%);font:15px/1.45 Inter,system-ui,sans-serif;--glow:.5;--z:1;--lw:min(372px,calc(100vw - 40px));--cell0:calc((var(--lw) - 28px)/3);--cell:calc(var(--cell0)*var(--z));transform-origin:50% 50%}
.st[hidden]{display:none}
.st-sky{position:absolute;inset:0;pointer-events:none;background-size:600px 600px;opacity:.9}
.st-moon{position:absolute;top:70px;right:12%;width:46px;height:46px;border-radius:50%;background:radial-gradient(circle at 38% 38%,#fffbea,#e9e1c5 60%,#cfc6a6);box-shadow:0 0 40px 10px rgba(255,246,210,.18)}
.st-top{position:relative;z-index:2;display:flex;align-items:center;gap:10px;padding:10px 12px 8px max(14px,env(safe-area-inset-left,0px));background:linear-gradient(rgba(4,8,22,.85),rgba(4,8,22,0))}
.st-top h2{font-family:Fraunces,Georgia,serif;font-weight:600;font-size:24px;letter-spacing:-.02em;margin:0 auto 0 0;white-space:nowrap;color:#ffe9c4;text-shadow:0 0 18px rgba(255,160,60,.35)}
.st-night{display:flex;align-items:center;gap:6px;font-size:13px;color:#b9c4e2}
.st-night span{white-space:nowrap}
.st-night select{height:38px;max-width:46vw;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:rgba(10,18,44,.8);color:#eef2fb;padding:0 10px;font:inherit;font-size:14px}
.st-x{flex:none;width:40px;height:40px;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:rgba(10,18,44,.8);color:#eef2fb;cursor:pointer;font-size:16px}
@media(max-width:560px){.st-night span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}}

/* the road is a window onto the world: one rigid scene of buildings standing on the same ground, moved and zoomed as a
   whole by the camera (a transform set in street.js). Nothing inside it scrolls. */
.st-road{position:relative;z-index:1;overflow:hidden;overflow:clip;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.st-road.drag{cursor:grabbing}
@media(min-width:901px){.st{--lw:340px;--cell0:112px}}
.st-world{position:absolute;left:0;bottom:0;display:flex;align-items:flex-end;padding-bottom:46px;transform-origin:0 100%}
.st-world::after{content:"";position:absolute;z-index:-1;left:-500vw;right:-500vw;bottom:0;height:46px;background:linear-gradient(#e9eef9 0 22%,#9aa6c2 22% 28%,#2a3150 28%)}
.st-lot{flex:none;display:flex;flex-direction:column}
.st-bld{--h:226;position:relative;flex:none;box-sizing:border-box;width:calc(var(--cols,3)*var(--cell) + 16px*var(--z));margin:0 calc(7px*var(--z));align-self:center;padding:0 calc(8px*var(--z));border-radius:4px 4px 0 0;
 background:
  repeating-linear-gradient(0deg,rgba(0,0,0,.22) 0 2px,rgba(150,170,230,.045) 2px 4px,transparent 4px 34px),
  linear-gradient(90deg,rgba(0,0,0,.25),transparent 18%,transparent 82%,rgba(0,0,0,.3)),
  linear-gradient(hsl(var(--h),42%,15%),hsl(var(--h),48%,9%));
 box-shadow:0 0 0 1px rgba(0,0,0,.4),0 -10px 40px rgba(0,0,0,.25)}
.st-roof{height:calc(22px*var(--z));margin:0 calc(-14px*var(--z));border-radius:3px 3px 0 0;background:linear-gradient(hsl(var(--h),30%,24%),hsl(var(--h),35%,13%));box-shadow:0 6px 10px rgba(0,0,0,.4)}
.st-story{display:flex;justify-content:center;margin:0 calc(-8px*var(--z));padding:0 calc(8px*var(--z));border-bottom:max(1px,calc(3px*var(--z))) solid rgba(0,0,0,.28)}
.st-floor{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;width:var(--cell);padding:calc(16px*var(--z)) 0 calc(15px*var(--z))}
.st-door{height:calc(70px*var(--z));width:calc(56px*var(--z));margin:0 auto;border-radius:2px 2px 0 0;background:#2a1d10;box-shadow:inset 0 0 0 max(1px,calc(4px*var(--z))) #5e4d33}

/* a window: a plain rectangle of glass in a plain frame, with a plain sill; the menorah fills most of it */
.st-win{--ww:82%;position:relative;display:flex;flex-direction:column;align-items:center;width:var(--ww);padding:0;border:0;background:none;color:inherit;cursor:pointer;font:inherit;-webkit-tap-highlight-color:transparent}
.st-frame{display:block;width:100%;padding:max(2px,calc(5px*var(--z)));border-radius:2px;background:#cfc4aa;box-shadow:0 0 0 1px #2a2318}
.st-glass{position:relative;display:block;width:100%;aspect-ratio:1/1.04;overflow:hidden;border-radius:0;background:#050404}
.st-glass img{display:block;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .5s}
.st-win.drawn .st-glass img{opacity:1}
.st-sill{position:relative;display:block;width:112%;height:max(3px,calc(9px*var(--z)));margin-top:calc(2px*var(--z));border-radius:1px;background:#cfc4aa;box-shadow:0 4px 5px rgba(0,0,0,.4)}
.st-win[data-id]::before{content:"";position:absolute;left:-30%;right:-30%;top:-14%;bottom:-6%;z-index:-1;pointer-events:none;
 background:radial-gradient(ellipse at 50% 55%,rgba(255,178,92,calc(var(--glow)*.2)),rgba(255,150,70,calc(var(--glow)*.07)) 45%,rgba(255,140,60,0) 70%)}
.st-win.dark .st-glass{background:linear-gradient(#0a1024,#121a36);box-shadow:inset 0 0 0 1px rgba(0,0,0,.6)}
.st-win.dark .st-frame{filter:brightness(.42) saturate(.6)}
.st-win.dark .st-sill{filter:brightness(.5)}
.st-win.dark{cursor:default}
.st-win[data-id]:focus-visible{outline:none}
.st-win[data-id]:focus-visible .st-frame{outline:3px solid #6ea0ff;outline-offset:3px}
.st-win.own .st-frame,.st-win.hl .st-frame{box-shadow:0 0 0 1px #2a2318,0 0 0 4px rgba(255,214,140,.8),0 0 14px 2px rgba(255,190,100,.28)}
.st-name{margin-top:7px;max-width:96%;padding:1px 8px;border-radius:999px;background:rgba(5,10,28,.75);border:1px solid rgba(255,255,255,.18);font-size:13px;color:#eef2fb;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-name.own{background:#ffe2a8;border-color:#ffe2a8;color:#2a1a05;font-weight:600}
.st.st-far .st-name{display:none}
.st-tip{position:absolute;left:10px;right:10px;top:66px;z-index:3;margin:0;padding:9px 13px 10px;border-radius:14px;border:1.5px solid rgba(120,160,255,.7);background:rgba(5,10,28,.9);color:#eef2fb;font-size:15.5px;line-height:1.4;pointer-events:none;transition:opacity .9s}
.st-tip.st-fade{opacity:0}
.st-tip b{color:#fff}
@media(hover:hover){.st-win[data-id]:hover .st-frame{filter:brightness(1.08)}}

.st-msg{position:relative;z-index:2;margin:0;padding:0 16px;text-align:center;font-family:Fraunces,Georgia,serif;font-size:18px;line-height:1.3;color:#ffe9c4;overflow-wrap:anywhere}
.st-msg:empty{display:none}
.st-msg{padding-top:8px}
.st-acts{position:relative;z-index:2;display:flex;gap:8px;justify-content:center;flex-wrap:wrap;padding:10px 12px calc(12px + env(safe-area-inset-bottom,0px));background:linear-gradient(rgba(4,8,22,0),rgba(4,8,22,.9) 40%)}
.st-acts:empty{display:none}
.st-acts button,.st-inacts button{flex:1 1 0;max-width:260px;min-height:46px;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.08);color:#eef2fb;font:inherit;font-size:15px;cursor:pointer;padding:0 14px}
.st-acts .st-br{flex:0 0 100%;height:0}
.st-acts .st-small{flex:0 1 auto;max-width:none;padding:0 12px;min-height:30px;border:0;background:none;font-size:13.5px;text-decoration:underline;text-underline-offset:3px;color:#c9d3ee}
.st-acts .pri,.st-inacts .pri{background:var(--blue);border-color:var(--blue);color:var(--onblue)}
.st button:focus-visible,.st select:focus-visible,.st-in button:focus-visible{outline:2px solid #6ea0ff;outline-offset:2px}

/* a stepped-into window: the page's stage shows that menorah; no editing controls */
.app.stepin .dock,.app.stepin .dsheet,.app.stepin .stop,.app.stepin #read,.app.stepin .tpop,.app.stepin .hint,.app.stepin .light,.app.stepin .card-panel,.app.stepin .card-show{display:none!important}
.st-in{display:none;left:0;right:0;bottom:0;z-index:7;padding:12px 12px calc(12px + env(safe-area-inset-bottom,0px));background:linear-gradient(to top,rgba(4,8,22,.92) 62%,rgba(4,8,22,0));color:#eef2fb}
.app.stepin .st-in{display:block;opacity:1!important}
.st-line{max-width:520px;margin:0 auto 12px;text-align:center;font-family:Fraunces,Georgia,serif;font-size:22px;line-height:1.25;color:#ffe9c4;text-shadow:0 0 18px rgba(255,160,60,.3);overflow-wrap:anywhere}
.st-inacts{display:flex;gap:8px;justify-content:center;max-width:520px;margin:0 auto}
.st-inacts .pri{flex:1.4 1 0;font-weight:600;min-height:52px;font-size:16.5px}

/* the Send sheet and the first-name question */
.st-send{border:0;border-radius:18px;padding:0;width:min(94vw,440px);max-height:92dvh;background:var(--bg);color:var(--ink);box-shadow:0 20px 60px rgba(0,0,0,.35)}
.st-send::backdrop{background:rgba(0,0,0,.55)}
@media(max-width:900px){.st-send{margin:auto auto 0;width:100%;max-width:100%;border-radius:18px 18px 0 0;padding-bottom:env(safe-area-inset-bottom,0px)}}
.st-sform{position:relative;display:flex;flex-direction:column;gap:8px;padding:18px 16px 16px}
.st-sform h2{font-family:Fraunces,Georgia,serif;font-size:22px;margin:0 44px 4px 0}
.st-opt{display:flex;flex-direction:column;align-items:flex-start;gap:1px;min-height:58px;padding:9px 16px;border-radius:14px;border:1px solid var(--line);background:var(--panel);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.st-opt b{font-weight:600;font-size:16px}
.st-opt span{font-size:13px;color:var(--mute)}
.st-opt.pri{background:var(--blue);border-color:var(--blue);color:var(--onblue)}
.st-opt.pri span{color:inherit;opacity:.85}
.st-opt:disabled{opacity:.6;cursor:progress}
.st-opt[hidden]{display:none}
.st-sstatus{min-height:1.2em;margin:2px 0 0;font-size:14px}
.st-sstatus:empty{min-height:0}
.st-walk-link{align-self:center;min-height:40px;border:0;background:none;color:var(--blue);font:inherit;font-size:14.5px;text-decoration:underline;cursor:pointer}
.st-sx{position:absolute;top:12px;right:12px;width:38px;height:38px;border-radius:999px;border:1px solid var(--line);background:var(--bg);color:var(--ink);cursor:pointer;font-size:15px}
.st-send :focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.st-fine{margin:0;font-size:13.5px;color:var(--mute)}
.st-name-dlg input{width:100%;min-height:46px;border:1px solid var(--line);border-radius:10px;padding:8px 11px;background:var(--panel);font:inherit;font-size:16px;color:var(--ink)}
.st-row{display:flex;gap:8px;margin-top:6px}
.st-row button{flex:1;min-height:46px;border-radius:10px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;cursor:pointer}
.st-row .pri{background:var(--blue);border-color:var(--blue);color:var(--onblue)}
.st-vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

@media(prefers-reduced-motion:reduce){.st-glass img{transition:none}}
