/* Soupers of the world (/soupers/): a big painted map you can drag and zoom, soupers bobbing in the broth. */
.soupers-main{max-width:none;padding:118px clamp(14px,2.2vw,40px) 80px}
.soupers-head{max-width:1500px;margin:0 auto 26px;display:flex;justify-content:space-between;align-items:flex-end;gap:18px 50px;flex-wrap:wrap}
.soupers-title .inside-kicker{margin-bottom:14px}
.soupers-title h1{font-size:clamp(32px,4.2vw,60px);line-height:1.08;letter-spacing:-1.8px}
.soupers-title h1 span{color:var(--accent)}
.soupers-lede{margin:14px 0 0;max-width:660px;font-size:17px;line-height:1.7;color:#d5d7d3}
.soupers-cta{display:grid;gap:12px;justify-items:start}
.soupers-count{margin:0;max-width:340px;font:13px/1.6 var(--mono);color:#e8d3a8}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

/* The sheet of watercolor paper, taped to the page. The frame is the window you look through. */
.world-sheet{position:relative;max-width:1900px;margin:0 auto;background:#f9eac9;border-radius:3px;box-shadow:0 40px 90px #0b0f1a99}
.world-sheet:before,.world-sheet:after{content:'';position:absolute;top:-13px;width:110px;height:30px;background:#e7bf79a6;box-shadow:0 2px 4px #0003;z-index:6;pointer-events:none}
.world-sheet:before{left:6%;transform:rotate(-5deg)}.world-sheet:after{right:7%;transform:rotate(4deg)}
.world-frame{position:relative;overflow:hidden;width:100%;aspect-ratio:16/9;max-height:88svh;min-height:380px;background:#f9eac9;border-radius:3px;cursor:grab;touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
.world-frame.dragging{cursor:grabbing}
.world-frame:focus-visible{outline:2px solid var(--accent);outline-offset:6px}
.world{position:absolute;left:0;top:0;transform-origin:0 0;isolation:isolate;--inv:1}
.world-map{display:block;width:100%;height:100%;pointer-events:none}
.world-sharp{position:absolute;inset:0;opacity:0;transition:opacity .5s}
.world-sharp.in{opacity:1}
.world-people{position:absolute;inset:0;pointer-events:none}
.world-fx{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:3}
.world-hint{margin:0;padding:9px 0 11px;text-align:center;font:11px var(--mono);color:#7a6a4c}
.world-controls{position:absolute;right:14px;bottom:14px;z-index:5;display:grid;justify-items:end;gap:8px}
.world-controls button{min-width:44px;height:44px;padding:0 14px;border-radius:22px 20px 24px 19px;background:#fdf8ec;color:#25335e;font:500 24px/1 var(--sans);box-shadow:0 6px 16px #3b1d0a55,0 0 0 1.5px #25335e22 inset;transition:transform .2s cubic-bezier(.2,1.5,.4,1)}
.world-controls button:hover:not(:disabled){transform:scale(1.08) rotate(-3deg)}
.world-controls button:disabled{opacity:.45}
.world-controls .zoom-all{font:12px var(--mono);height:34px}

/* A souper: a painted ingredient, bobbing where they live. It keeps its size however far you zoom. */
.souper{position:absolute;width:46px;height:46px;padding:0;border:0;background:none;transform:translate(-50%,-50%) scale(var(--inv));cursor:pointer;pointer-events:auto;transition:transform .25s cubic-bezier(.2,1.5,.4,1)}
.souper-float{display:block;width:100%;height:100%;animation:souper-bob var(--dur,6s) ease-in-out var(--delay,0s) infinite}
.souper img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 2px #fff6e0) drop-shadow(0 4px 3px #3b1d0a66);pointer-events:none}
.souper:hover,.souper:focus-visible,.souper.open{transform:translate(-50%,-50%) scale(calc(var(--inv) * 1.3));z-index:999!important;outline:0}
.souper:focus-visible img{filter:drop-shadow(0 0 3px #fff) drop-shadow(0 0 8px #f4d599)}
.souper.arrive{animation:souper-in .55s cubic-bezier(.2,1.5,.4,1) backwards}
.souper.landed{animation:souper-land .7s cubic-bezier(.2,1.4,.4,1)}
.souper.pending:after,.souper.ghost:after{content:'';position:absolute;inset:-16%;border:2px dashed #fff8e4;border-radius:50%;filter:drop-shadow(0 1px 0 #b8651a88);animation:souper-ring 16s linear infinite}
.souper.pending,.souper.ghost{z-index:900!important}
.souper.ghost{pointer-events:none}
/* A bunch: up to three ingredients piled together, with how many soupers are in it. */
.souper.bunch{width:58px;height:58px}
.bunch .souper-float{position:relative}
.bunch img{position:absolute;width:66%;height:66%}
.bunch img:nth-child(1){left:-4%;top:22%;rotate:-16deg}
.bunch img:nth-child(2){left:38%;top:-2%;rotate:12deg}
.bunch img:nth-child(3){left:20%;top:36%;rotate:-4deg}
.bunch img:only-child,.bunch img:first-child:nth-last-child(2),.bunch img:nth-child(2):last-child{width:72%;height:72%}
.bunch-count{position:absolute;right:-9px;top:-9px;min-width:26px;height:26px;padding:0 7px;display:grid;place-items:center;border-radius:13px 12px 14px 11px;background:#fdf8ec;color:#9b2a20;font:italic 400 15px/1 Georgia,serif;box-shadow:0 3px 8px #3b1d0a77,0 0 0 1.5px #9b2a2033 inset}
.placing .world-frame{cursor:crosshair}
.placing .souper:not(.ghost){pointer-events:none;opacity:.5}
.dropping{position:absolute;width:46px;height:46px;object-fit:contain;transform:translate(-50%,-50%);animation:souper-drop .7s cubic-bezier(.55,0,.9,.45) forwards;filter:drop-shadow(0 20px 10px #3b1d0a55)}

/* Ripples in the broth: wobbly painted rings, and a few drops flying off. */
.broth-ripple{position:absolute;width:0;height:0;--size:96px}
.broth-ripple.big{--size:260px}
.broth-ripple i{position:absolute;left:calc(var(--size) / -2);top:calc(var(--size) / -2);width:var(--size);height:var(--size);border:3px solid #fffdf2;border-radius:50% 46% 52% 48%/48% 52% 46% 50%;box-shadow:0 3px 2px #a0500f99,inset 0 3px 2px #a0500f66,0 0 14px #fff6d955;opacity:0;filter:blur(.4px);animation:broth-ring 2.4s cubic-bezier(.2,.6,.3,1) forwards}
.broth-ripple.big i{border-width:5px}
.broth-ripple:before{content:'';position:absolute;left:calc(var(--size) / -4);top:calc(var(--size) / -4);width:calc(var(--size) / 2);height:calc(var(--size) / 2);border-radius:50%;background:radial-gradient(circle,#fffbe8 0,#fffbe800 70%);opacity:0;animation:broth-flash .7s ease-out forwards}
.broth-ripple i:nth-child(2){animation-delay:.28s;border-radius:47% 52% 48% 51%/52% 47% 51% 48%}
.broth-ripple i:nth-child(3){animation-delay:.56s}
.broth-drop{position:absolute;width:8px;height:8px;margin:-4px 0 0 -4px;border-radius:50%;background:#ffeeb8;box-shadow:inset -1px -1px 0 #c97a1e88;animation:broth-drop .8s cubic-bezier(.2,.7,.4,1) forwards}

/* The paper tag: one souper, or the list of a bunch. */
.souper-tag{position:absolute;z-index:2000;width:max-content;min-width:150px;max-width:240px;padding:14px 30px 13px 18px;--tx:-50%;--ty:calc(-100% - 36px);transform-origin:0 0;transform:scale(var(--inv)) translate(var(--tx),var(--ty)) rotate(-2deg);background:#fdf8ec;color:#2f3437;border-radius:4px 14px 4px 14px;box-shadow:0 14px 30px #0b0f1a66;text-align:left;pointer-events:auto;cursor:default}
.souper-tag[data-side=left]{--tx:-14%}.souper-tag[data-side=right]{--tx:-86%}.souper-tag[data-flip=below]{--ty:36px}
.souper-tag p{margin:0}
.tag-name{font:italic 400 22px/1.2 Georgia,serif;color:#9b2a20;overflow-wrap:anywhere}
.tag-place{margin-top:4px!important;font:12px/1.4 var(--mono);color:#4d4a42}
.tag-contact{margin-top:8px!important;font:14px/1.3 var(--sans);overflow-wrap:anywhere}
.tag-contact a{color:#25335e;text-decoration:underline;text-underline-offset:3px}
.tag-state{margin-top:8px!important;font:10px/1.5 var(--mono);color:#8a7c64}
.tag-close{position:absolute;right:6px;top:2px;width:28px;height:28px;font:20px/1 var(--sans);color:#8a7c64}
.tag-many-title{font:italic 400 19px/1.2 Georgia,serif;color:#9b2a20;margin-bottom:8px!important}
.tag-list{list-style:none;margin:0 -12px 0 0;padding:0 8px 0 0;display:grid;gap:2px;max-height:210px;overflow-y:auto;overscroll-behavior:contain}
.person{display:grid;grid-template-columns:28px minmax(0,1fr);column-gap:10px;align-items:center;width:100%;padding:5px 6px;border-radius:10px;text-align:left;color:inherit;transition:background .15s}
.person img{grid-row:span 2;width:28px;height:28px;object-fit:contain;filter:drop-shadow(0 2px 2px #3b1d0a44)}
.person-name{font:15px/1.25 var(--sans);overflow-wrap:anywhere}
.person-place{font:11px/1.3 var(--mono);opacity:.7}
.tag-list .person:hover,.tag-list .person:focus-visible{background:#f6d86a66;outline:0}

/* Who's afloat: everyone as a list, with a search box. Picking someone flies the map to them. */
.afloat{max-width:1500px;margin:60px auto 0}
.afloat-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px 30px;flex-wrap:wrap;margin-bottom:22px}
.afloat h2{font-size:clamp(28px,3.2vw,42px);letter-spacing:-1px}
.afloat-search{width:min(320px,100%);padding:11px 16px;background:#ffffff0d;border:1px solid #94988a66;border-radius:22px 18px 24px 16px;color:#f1e9d7;font:15px var(--sans)}
.afloat-search:focus{outline:2px solid var(--accent);outline-offset:2px;border-color:transparent}
.afloat-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px}
.afloat-list .person{padding:9px 12px;border:1px solid #94988a44;border-radius:14px 8px 14px 8px;background:#ffffff08;color:#f1e9d7}
.afloat-list .person:hover,.afloat-list .person:focus-visible{background:#e7bf7922;border-color:#e7bf79aa;outline:0}
.afloat-list .person img{width:30px;height:30px;filter:drop-shadow(0 0 2px #fff6e055) drop-shadow(0 2px 2px #0006)}
.afloat-empty{margin:10px 0 0;font:13px var(--mono);color:#c1c3c9}

/* Dropping yourself in: a hint, then a recipe card to fill. */
.placing-hint{position:fixed;left:50%;top:16px;z-index:60;margin:0;padding:10px 18px;transform:translateX(-50%);background:var(--accent);color:#292d3b;border-radius:22px 18px 24px 16px;font:13px var(--mono);box-shadow:0 10px 24px #0b0f1a80;white-space:nowrap;pointer-events:none}
.souper-card{position:fixed;right:24px;bottom:24px;z-index:70;width:min(390px,calc(100vw - 32px));max-height:calc(100svh - 48px);overflow:auto;padding:24px 24px 22px;color:#2f3437;background:#fdf8ec;border-radius:6px 18px 6px 18px;box-shadow:0 30px 70px #0b0f1acc;transform:rotate(.6deg);text-align:left}
.souper-card.waiting .card-rest{display:none}
.souper-card.left{right:auto;left:24px;transform:rotate(-.6deg)}
.card-kicker{margin:0 0 4px;font:11px var(--mono);letter-spacing:1.5px;color:#9b2a20}
.souper-card h2{font:italic 400 30px/1.15 Georgia,serif;letter-spacing:0;color:#2f3437}
.card-step{margin:10px 0 0;font:13px/1.5 var(--mono);color:#4d4a42}
.card-spot.done{color:#2f6b3a}
.card-rest{margin-top:16px;display:grid;gap:14px}
.card-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.souper-card label{display:grid;gap:5px;font:11px var(--mono);letter-spacing:.5px;color:#6b6253}
.souper-card label small{font-size:10px;color:#8a7c64}
.souper-card input:not([type=radio]){width:100%;padding:8px 2px 7px;background:none;border:0;border-bottom:1.5px solid #b8cde0;color:#2f3437;font:17px var(--sans);border-radius:0}
.souper-card input:not([type=radio]):focus{outline:0;border-bottom-color:#9b2a20}
.card-picker{border:0;margin:0;padding:0}
.card-picker legend{padding:0;margin-bottom:8px;font:11px var(--mono);letter-spacing:.5px;color:#6b6253}
.picks{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.pick{position:relative;display:block!important;aspect-ratio:1;padding:5px;border-radius:50%;cursor:pointer;transition:transform .2s cubic-bezier(.2,1.5,.4,1),background .2s}
.pick input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.pick img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 2px #3b1d0a44)}
.pick:hover{transform:scale(1.12) rotate(-4deg)}
.pick:has(input:checked){background:#f6d86a;transform:scale(1.14) rotate(3deg);box-shadow:0 0 0 2px #c9964e inset}
.pick:has(input:focus-visible){outline:2px solid #9b2a20;outline-offset:2px}
.card-turnstile{min-height:0}
.card-small{margin:0;font:10.5px/1.6 var(--mono);color:#8a7c64}
.souper-note{margin:0;min-height:1.4em;font:12.5px/1.5 var(--mono);color:#9b2a20}
.souper-submit{justify-self:start;background:#25335e;color:#fdf8ec}
.souper-submit:hover{background:#31427a}
.card-close{position:absolute;right:10px;top:8px;width:32px;height:32px;font:24px/1 var(--sans);color:#8a7c64}

@keyframes souper-bob{0%,100%{transform:translate(0,0) rotate(calc(var(--tilt,6deg) * -1))}33%{transform:translate(var(--dx,5px),-5px) rotate(var(--tilt,6deg))}66%{transform:translate(calc(var(--dx,5px) * -.7),4px) rotate(calc(var(--tilt,6deg) * .3))}}
@keyframes souper-in{from{opacity:0;scale:.2}}
@keyframes souper-land{0%{scale:1.5 .7}45%{scale:.85 1.15}100%{scale:1}}
@keyframes souper-ring{to{rotate:360deg}}
@keyframes souper-drop{0%{transform:translate(-50%,-50%) translateY(-340px) scale(1.9) rotate(-30deg);opacity:0}20%{opacity:1}100%{transform:translate(-50%,-50%) scale(1) rotate(0)}}
@keyframes broth-ring{0%{transform:scale(.1);opacity:1}55%{opacity:.8}100%{transform:scale(1);opacity:0}}
@keyframes broth-flash{0%{transform:scale(.3);opacity:.95}100%{transform:scale(1.5);opacity:0}}
@keyframes broth-drop{0%{transform:translate(0,0) scale(1);opacity:1}100%{transform:translate(var(--tx),var(--ty)) scale(.4);opacity:0}}
@media(max-width:700px){
.soupers-main{padding:104px 10px 60px}
.soupers-head{padding:0 10px;margin-bottom:22px}
.soupers-lede{font-size:16px}
.world-frame{aspect-ratio:auto;height:min(68svh,560px);max-height:none}
.souper{width:42px;height:42px}
.souper.bunch{width:54px;height:54px}
.world-controls{right:10px;bottom:10px}
.afloat{padding:0 10px;margin-top:44px}
.afloat-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.afloat-search{width:100%}
.afloat-find{flex:1 1 100%}
.souper-card,.souper-card.left{left:8px;right:8px;bottom:8px;width:auto;max-height:60svh;transform:none;padding:20px 18px 18px}
.picks{gap:4px}
.placing-hint{top:10px;font-size:12px}
/* room to scroll the map up above the card */
.placing .soupers-main{padding-bottom:66svh}
}

/* Searching on the map: a box in the corner, with the best matching cities and names under it. */
.world-search{position:absolute;left:14px;top:22px;z-index:5;width:min(300px,calc(100% - 28px))}
.world-search input{width:100%;padding:11px 16px;background:#fdf8ec;border:0;border-radius:22px 18px 24px 16px;color:#2f3437;font:15px var(--sans);box-shadow:0 6px 16px #3b1d0a55,0 0 0 1.5px #25335e22 inset}
.world-search input::placeholder{color:#8a7c64}
.world-search input:focus{outline:2px solid #25335e;outline-offset:2px}
.search-hits{list-style:none;margin:8px 0 0;padding:8px;display:grid;gap:2px;max-height:min(330px,50vh);overflow-y:auto;background:#fdf8ec;color:#2f3437;border-radius:6px 16px 6px 16px;box-shadow:0 14px 30px #0b0f1a66}
.search-hits .person:hover,.search-hits .person:focus-visible{background:#f6d86a66;outline:0}
.search-hits .town{width:100%;justify-content:space-between;border-color:transparent;background:none;color:#25335e;font:15px var(--sans)}
.search-hits .town:hover,.search-hits .town:focus-visible{background:#f6d86a66;outline:0}
.search-hits .town b{background:#25335e;color:#fdf8ec}
.no-hit{margin:0;padding:6px 8px;font:12px var(--mono);color:#8a7c64}
.town{display:inline-flex;align-items:center;gap:8px;padding:7px 9px 7px 13px;border:1px solid #e7bf7966;border-radius:16px 13px 17px 12px;background:#e7bf7912;color:#f4d599;font:13px var(--mono);transition:background .15s,transform .2s}
.town:hover,.town:focus-visible{background:#e7bf7929;outline:0;transform:rotate(-1.5deg)}
.town b{min-width:22px;padding:2px 6px;border-radius:10px;background:#e7bf79;color:#292d3b;font:500 11px var(--mono);text-align:center}
.afloat-cities{list-style:none;margin:0 0 22px;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.afloat-count{margin:0;font:13px var(--mono);color:#e8d3a8}
.placing .world-search{display:none}
@media(max-width:700px){.world-search{left:10px;top:20px;width:min(240px,calc(100% - 20px))}.world-search input{padding:10px 14px}}
