/* Fonts are served from this site (no calls to Google), cut down to Latin characters.
   Bricolage Grotesque, Instrument Sans and Rozha One are under the SIL Open Font License; see /fonts. */
@font-face{font-family:"Bricolage Grotesque";src:url(/fonts/bricolage-grotesque.woff2) format("woff2");font-weight:500 800;font-display:swap}
@font-face{font-family:"Instrument Sans";src:url(/fonts/instrument-sans.woff2) format("woff2");font-weight:400 700;font-display:swap}
@font-face{font-family:"Rozha One";src:url(/fonts/rozha-one.woff2) format("woff2");font-weight:400;font-display:swap}

/* Stout & brass: a dark pub at night. Everything is quiet except the beer mat: it is the PICK ONE button,
   and your pick lands on it (gold sign-writer's lettering, printed rim). */
:root{
  --stout:#130D09;      /* page background */
  --wood:#1F1610;       /* controls */
  --wood-2:#2B1F16;     /* raised: the result card */
  --line:rgba(255,226,180,.11);
  --line-2:rgba(255,226,180,.2);
  --amber:#F7A93A;
  --amber-hi:#FFC764;
  --amber-deep:#E5841B;
  --cream:#F8EDD8;      /* text: the colour of a stout's head */
  --malt:#BFAB91;       /* secondary text */
  --err:#FF9E80;
  --display:"Bricolage Grotesque",ui-sans-serif,system-ui,sans-serif;
  --ui:"Instrument Sans",ui-sans-serif,system-ui,sans-serif;
  --gold:#E8B85A;       /* the printed gold on the beer mat */
  --card:#E9DBBF;       /* raw cardboard */
  --sign:"Rozha One",Georgia,serif;
  --ease-out:cubic-bezier(.2,.9,.25,1);
}
*{box-sizing:border-box}
html{background:var(--stout)}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
html,body{margin:0}
body{color:var(--cream);font:400 1rem/1.5 var(--ui);-webkit-font-smoothing:antialiased;background:var(--stout)}
/* The first screen is a column so the data note sits at the bottom when there's room; "How it works" follows below it.
   svh = the visible height on phones, so nothing hides behind the browser's toolbar. */
.screen{
  display:flex;flex-direction:column;min-height:100vh;min-height:100svh;
  padding:clamp(1.1rem,4vw,2.5rem) clamp(1rem,4.5vw,3rem) .8rem;
  position:relative;isolation:isolate;--lamp-x:50%;--lamp-y:64%;
}
/* The bar at night: one lamp hangs over the mat. In its light the wood of the bar shows; the rest stays dark.
   --lamp-x/--lamp-y put the light where the mat lies (set per layout). The grain is drawn by the browser (no image file). */
.screen::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(ellipse 30rem 22rem at var(--lamp-x) var(--lamp-y),rgba(255,196,110,.09),rgba(247,169,58,.035) 48%,transparent 72%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='3200' height='480'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0018 .06' numOctaves='3' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .26 0 0 0 0 .14 0 0 0 .75 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E") 50% 50%/3200px 480px;
  -webkit-mask-image:radial-gradient(ellipse 36rem 26rem at var(--lamp-x) var(--lamp-y),#000 15%,rgba(0,0,0,.35) 50%,transparent 78%);
          mask-image:radial-gradient(ellipse 36rem 26rem at var(--lamp-x) var(--lamp-y),#000 15%,rgba(0,0,0,.35) 50%,transparent 78%);
}
main{width:100%;max-width:30rem;margin:0 auto}
a{color:inherit}
button{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--amber-hi);outline-offset:3px}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.ico{width:1.1rem;height:1.1rem;flex:none}

/* ---------- hero ---------- */
.hero{margin-bottom:1.5rem}
h1{
  margin:0;font:800 clamp(2.35rem,11vw,3.7rem)/.9 var(--display);font-variation-settings:"opsz" 96;
  letter-spacing:-.035em;text-transform:uppercase;color:var(--cream);
}
.ask{margin:.6rem 0 .25rem;font:700 clamp(1.3rem,5.7vw,1.75rem)/1.15 var(--display);letter-spacing:-.015em;color:var(--amber-hi)}
.lede{margin:0;color:var(--malt);font-size:1rem}

/* ---------- the three choices, as one sentence: A pub · within 5 km · of me ---------- */
.pickline{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .45rem;margin:0;font:700 clamp(1.2rem,5.4vw,1.45rem)/1.2 var(--display);letter-spacing:-.01em;color:var(--cream)}
/* "within 5 km" and "of me" wrap as a whole, never between the word and its button */
.phrase{display:inline-flex;align-items:center;gap:inherit;min-width:0;max-width:100%}
.chip{
  display:inline-flex;align-items:center;gap:.25rem;min-width:0;max-width:100%;min-height:2.75rem;padding:0 .5rem 0 .7rem;
  border:1px solid rgba(255,199,100,.38);border-radius:14px;background:rgba(247,169,58,.1);cursor:pointer;
  font:inherit;letter-spacing:inherit;color:var(--amber-hi);transition:background-color .18s,border-color .18s,color .18s;
}
.chip .val{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:9em}
.chip .chev{width:1rem;height:1rem;transition:transform .2s}
.chip:hover{background:rgba(247,169,58,.17);border-color:rgba(255,199,100,.6)}
.chip[aria-expanded="true"]{background:var(--cream);border-color:var(--cream);color:var(--stout)}
.chip[aria-expanded="true"] .chev{transform:rotate(180deg)}
/* the options for one choice, opened right under the sentence */
.editor{border:0;margin:.6rem 0 0;padding:0;min-width:0}
.editor[hidden]{display:none}
.editor:not([hidden]){animation:rise .25s var(--ease-out)}
.where,.seg{display:flex;gap:4px;padding:4px;background:var(--wood);border:1px solid var(--line);border-radius:16px}
.where{transition:border-color .18s}
.where:focus-within{border-color:rgba(255,199,100,.7)}
#city{
  flex:1;min-width:0;border:0;border-radius:12px;outline:none;padding:.7rem .5rem .7rem 2.35rem;
  font:500 1rem/1.2 var(--ui);color:var(--cream);
  background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BFAB91' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-5.6-6.5-11a6.5 6.5 0 0 1 13 0c0 5.4-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") no-repeat .75rem 50%/1.1rem;
}
#city::placeholder{color:var(--malt);opacity:1}
#city::-webkit-search-cancel-button{display:none}
#near{
  flex:none;display:inline-flex;align-items:center;gap:.4rem;min-height:2.75rem;padding:0 .8rem;
  border:1px solid var(--line-2);border-radius:12px;background:transparent;cursor:pointer;
  font:600 .9rem/1 var(--ui);color:var(--malt);transition:background-color .18s,border-color .18s,color .18s;
}
#near .ico{width:1rem;height:1rem}
#near:hover{color:var(--cream)}
#near[aria-pressed="true"]{background:rgba(247,169,58,.15);border-color:rgba(255,199,100,.45);color:var(--amber-hi)}
.seg label{flex:1;position:relative;min-width:0}
.seg input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.seg span{
  display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:2.75rem;padding:.3rem .2rem;
  border-radius:12px;font-weight:600;font-size:.97rem;line-height:1.15;color:var(--malt);cursor:pointer;
  transition:background-color .18s,color .18s,box-shadow .18s;
}
.seg label:hover span{color:var(--cream)}
.seg input:checked+span{background:var(--cream);color:var(--stout);box-shadow:0 3px 12px rgba(0,0,0,.4)}
.seg input:focus-visible+span{outline:2px solid var(--amber-hi);outline-offset:2px}
.seg small{display:block;margin-top:.1rem;font-size:.72rem;font-weight:500;opacity:.8}

/* ---------- the beer mat is the button ----------
   It fills the room left under the choices (a size container), up to --go-max. Same print as the mat the pick lands on. */
.go-wrap{display:flex;flex-direction:column;align-items:center}
.go-room{width:100%;display:grid;place-items:center;container-type:size}
#go{
  --mat:min(100cqw,100cqh,var(--go-max,19rem));
  position:relative;width:var(--mat);height:var(--mat);padding:0;border:0;border-radius:50%;cursor:pointer;
  background:radial-gradient(75% 75% at 38% 28%,#2A1E15,#100B08 72%);
  box-shadow:inset 0 0 0 calc(var(--mat)*.024) var(--card),0 18px 30px -8px rgba(0,0,0,.85);
  transform:rotate(-4deg);transition:transform .25s var(--ease-out),box-shadow .25s;
}
#go::after{
  content:"";position:absolute;inset:0;border-radius:50%;pointer-events:none;opacity:.22;mix-blend-mode:overlay;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .38 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#go:hover{transform:rotate(-2deg) translateY(-3px);box-shadow:inset 0 0 0 calc(var(--mat)*.024) var(--card),0 26px 36px -10px rgba(0,0,0,.9)}
#go:active{transform:rotate(-3deg) scale(.97);transition-duration:.08s}
#go:focus-visible{outline:3px solid var(--cream);outline-offset:5px}
#go[disabled]{cursor:progress}
#go.loading .rim{animation:spin 1.4s linear infinite}
.go-print{position:absolute;inset:22%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--mat)*.035);text-align:center}
.go-word{
  font:400 calc(var(--mat)*.19)/.95 var(--sign);
  background:linear-gradient(180deg,#F9DE95 8%,#E8B85A 48%,#C38A33 62%,#EFCB76 92%) 0 0/100% .95em repeat-y;
  -webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;
  filter:drop-shadow(.05em .06em 0 #050302);
}
.go-tap{font:600 calc(var(--mat)*.056)/1 var(--ui);letter-spacing:.08em;text-transform:uppercase;color:rgba(232,184,90,.8)}
.loading .ico-wheel{animation:spin .7s linear infinite}
.go-wrap .more{flex:none}

/* Ko-fi: a quiet pill in the house colours. The link is 44px tall to tap; the pill drawn inside it is smaller,
   and the negative margin keeps the layout as if only the pill were there. */
.kofi{--inset:.35rem;position:relative;display:flex;align-items:center;justify-content:center;gap:.45rem;width:max-content;min-height:2.75rem;margin:calc(1rem - var(--inset)) auto calc(var(--inset) * -1);padding:0 1rem;font-size:.86rem;font-weight:600;line-height:1.2;color:var(--malt);text-decoration:none;transition:color .18s}
.kofi::before{content:"";position:absolute;inset:var(--inset) 0;border:1px solid var(--line-2);border-radius:999px;background:rgba(248,237,216,.03);transition:border-color .18s,background-color .18s}
.kofi>*{position:relative}
.kofi .ico{width:1rem;height:1rem;color:var(--amber)}
.kofi .via{font-weight:500;color:rgba(191,171,145,.75)}
.kofi:hover{color:var(--cream)}
.kofi:hover::before{border-color:rgba(255,199,100,.5);background:rgba(247,169,58,.08)}
.kofi:focus-visible{outline:none}
.kofi:focus-visible::before{outline:2px solid var(--amber-hi);outline-offset:2px}
#status{min-height:1.35rem;margin:.65rem 0 0;color:var(--malt);font-size:.88rem;line-height:1.4;text-align:center}
#status.error,.nojs{color:var(--err);text-align:left;background:rgba(255,158,128,.08);border:1px solid rgba(255,158,128,.32);padding:.6rem .8rem;border-radius:12px}
/* with JavaScript off nothing can be picked, so the page says so where the messages go */
.nojs{margin:.65rem 0 0;font-size:.88rem;line-height:1.4}
/* the way out of an error: one or two buttons right under the message */
.fixes{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.5rem}
.fixes[hidden]{display:none}
.fix.btn{flex:0 1 auto;min-height:2.75rem;padding:.55rem 1rem;font-size:.93rem;color:var(--amber-hi);border-color:rgba(255,199,100,.42)}

/* ---------- the result: a beer mat, tossed onto the bar ---------- */
.results{outline:none}
.pick{position:relative;--mat:min(250px,64vw,36svh)}
.pick[hidden]{display:none}
.mat-wrap{display:grid;place-items:center;padding:.5rem 0 .25rem;perspective:1000px}
.mat{position:relative;width:var(--mat);aspect-ratio:1;transform:rotate(var(--tilt,-4deg));transition:transform .5s var(--ease-out)}
/* the shadow stays on the bar while the mat flips */
.mat::before{content:"";position:absolute;inset:5%;border-radius:50%;box-shadow:0 18px 30px -6px rgba(0,0,0,.85);pointer-events:none}
.mat-flip{position:absolute;inset:0;transform-style:preserve-3d}
.mat-face{position:absolute;inset:0;border-radius:50%;overflow:hidden;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.mat-face::after{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.22;mix-blend-mode:overlay;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .38 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* printed side: black ink to a cream cardboard edge */
.mat-front{background:radial-gradient(75% 75% at 38% 28%,#2A1E15,#100B08 72%);box-shadow:inset 0 0 0 calc(var(--mat)*.024) var(--card)}
/* plain cardboard back, seen for a moment while the mat flips */
.mat-back{transform:rotateY(180deg);display:grid;place-items:center;background:radial-gradient(75% 75% at 38% 28%,#F2E8D4,#D8C6A4 80%);color:#3A2717}
.mat-back svg{width:42%;height:auto}
.rim{position:absolute;inset:0;width:100%;height:100%;transform-origin:50% 50%}
.rim .ring{fill:none;stroke:var(--gold);stroke-width:1.1}
.rim text{font:700 8.2px var(--display);letter-spacing:.2em;fill:var(--gold)}
.rim .dot{fill:var(--gold)}
#sign.reeling .rim{animation:spin 1.4s linear infinite}
.mat-print{position:absolute;left:15%;right:15%;top:19%;bottom:19%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--mat)*.03);text-align:center}
.kind{font:600 calc(var(--mat)*.056)/1 var(--ui);letter-spacing:.06em;color:rgba(232,184,90,.85)}
/* the pub's name in gold sign-writer's lettering with a dark drop shade; size is fitted by script */
#name{
  margin:0;max-width:100%;font:400 calc(var(--mat)*.13)/1.04 var(--sign);letter-spacing:.005em;outline:none;overflow-wrap:normal;
  background:linear-gradient(180deg,#F9DE95 8%,#E8B85A 48%,#C38A33 62%,#EFCB76 92%) 0 0/100% 1.04em repeat-y;
  -webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;
  filter:drop-shadow(.06em .07em 0 #050302);
}
#name.squeeze{overflow-wrap:anywhere}
#name.reel{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:calc(var(--mat)*.11)}
#name.tick{animation:tick var(--tick,.1s) ease-out}
.mat-addr{margin:0;max-width:80%;font:500 calc(var(--mat)*.047)/1.3 var(--ui);color:rgba(233,219,191,.8);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#sign.spinning .mat-addr{visibility:hidden}
/* while we look: the rim spins and the mat says what for */
.mat-wait{display:none;margin:0;flex-direction:column;align-items:center;gap:calc(var(--mat)*.04)}
#sign.waiting .mat-wait{display:flex}
#sign.waiting #name,#sign.waiting .mat-addr,#sign.waiting .kind,#sign.waiting .details{display:none}
#wait-text{font:700 calc(var(--mat)*.085)/1.15 var(--display);letter-spacing:-.01em;color:var(--cream);text-wrap:balance}
#wait-sub{font:500 calc(var(--mat)*.05)/1.3 var(--ui);color:var(--malt);text-wrap:balance}
#wait-sub:empty{display:none}
#sign.landed .mat{animation:thud .5s var(--ease-out)}
/* the only glow on the page: a brief flash as the mat lands */
.mat::after{content:"";position:absolute;inset:-4%;border-radius:50%;pointer-events:none;opacity:0;box-shadow:0 0 70px 8px rgba(247,169,58,.5)}
#sign.landed .mat::after{animation:flash 1.2s ease-out}
#close{display:none}
.details{max-width:24rem;margin:.85rem auto 0}
#sign.spinning .details{visibility:hidden}
#sign.landed .details>*{animation:rise .42s var(--ease-out) both}
#sign.landed .details>:nth-child(2){animation-delay:.06s}
#sign.landed .details>:nth-child(3){animation-delay:.12s}
.row{display:flex;gap:.55rem;align-items:flex-start;justify-content:center;margin:0;color:var(--malt);font-size:.95rem;line-height:1.38}
.row[hidden]{display:none}
.row .ico{width:1rem;height:1rem;margin-top:.17rem;color:var(--amber)}
/* Open now and distance, just under the mat */
.badges{display:flex;flex-wrap:wrap;justify-content:center;gap:.4rem .5rem;margin:0 0 .7rem}
.badge{display:inline-flex;align-items:center;gap:.35rem;padding:.3rem .65rem;border-radius:999px;font-size:.86rem;white-space:nowrap;font-weight:600;line-height:1.25;background:rgba(248,237,216,.06);color:var(--malt)}
.badge[hidden]{display:none}
.badge .ico{width:.95rem;height:.95rem}
.badge.open{color:var(--amber-hi);background:rgba(247,169,58,.13)}
.badge.open::before{content:"";width:.5rem;height:.5rem;border-radius:50%;background:currentColor}
.badge.closed{color:var(--err);background:rgba(255,158,128,.1)}
button.badge{border:0;font-family:inherit;cursor:pointer}
button.badge:hover{filter:brightness(1.15)}
.badge .chev{width:.9rem;height:.9rem;margin-left:-.1rem;transition:transform .2s}
.badge[aria-expanded="true"] .chev{transform:rotate(180deg)}
#hours{margin-bottom:.65rem}
.tz-note{margin:.35rem 0 0;max-width:17rem;font-size:.76rem;line-height:1.35;color:var(--malt)}
/* Opening hours: one line per set of days, today's line in amber */
.hours-table{border-collapse:collapse;line-height:1.35}
.hours-table th{padding:.06rem 1.1rem .06rem 0;text-align:left;vertical-align:top;white-space:nowrap;font-weight:500;color:var(--malt)}
.hours-table td{padding:.06rem 0;vertical-align:top;color:var(--cream);font-variant-numeric:tabular-nums}
.hours-table td[colspan]{color:var(--malt)}
.hours-table .today th,.hours-table .today td{color:var(--amber-hi);font-weight:600}
.today-tag{display:inline-block;margin-left:.45rem;padding:.04rem .45rem;border-radius:999px;background:rgba(247,169,58,.15);font-size:.72rem;font-weight:600;line-height:1.35;vertical-align:.08em}
.actions{display:grid;gap:.5rem;margin-top:.9rem}
.actions-2{display:flex;gap:.5rem}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:3rem;padding:.7rem 1rem;
  border-radius:15px;font:600 1rem/1.1 var(--ui);text-decoration:none;cursor:pointer;
  transition:background-color .15s,border-color .15s,color .15s,transform .12s;
}
.btn[hidden]{display:none}
.btn{white-space:nowrap}
.btn:active{transform:translateY(1px)}
.btn-primary{width:100%;border:0;background:var(--cream);color:var(--stout)}
.btn-primary:hover{background:#fff}
.btn-ghost{flex:1;min-width:0;border:1px solid var(--line-2);background:rgba(248,237,216,.04);color:var(--cream)}
.btn-ghost:hover{border-color:rgba(255,199,100,.5);background:rgba(247,169,58,.09)}
#again{color:var(--amber-hi);border-color:rgba(255,199,100,.42)}
#again[disabled]{cursor:progress;opacity:.75}
.meta{display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:.2rem 1rem;margin-top:.8rem}
.left{margin:0;font-size:.82rem;line-height:1.35;color:var(--malt);text-align:center}
/* 44px tall to tap, without taking more room */
.site-link{--pad:.75rem;display:inline-flex;align-items:center;gap:.3rem;padding:var(--pad) 0;margin:calc(var(--pad) * -1) 0;font-size:.85rem;font-weight:600;color:var(--cream);text-underline-offset:3px;text-decoration-color:rgba(248,237,216,.4)}
.site-link[hidden]{display:none}
/* "Pick an open one" under a closed place: a link-like button that rolls again (amber, like Roll again). It runs on
   in the line with the count, so it takes no extra row on small phones. */
button.site-link{--pad:.8rem;border:0;background:none;cursor:pointer;color:var(--amber-hi);text-decoration:underline;text-decoration-color:rgba(255,199,100,.5);vertical-align:baseline}
/* short screens (phones and laptops): it takes the count's place, so the result still fits without scrolling */
@media (max-height:760px){.left:has(#open-next:not([hidden])) #left{display:none}}
.site-link .ico{width:.85rem;height:.85rem}
#share.done{color:var(--cream);border-color:var(--line-2)}
/* "Open now only": a small switch under the sentence. The label is 44px tall to tap;
   the negative margin below keeps the room it takes as small as the switch. */
.open-only{--below:.35rem;display:flex;width:max-content;align-items:center;gap:.45rem;min-height:2.75rem;margin:.3rem 0 calc(var(--below) * -1);font-size:.82rem;font-weight:600;color:var(--malt);cursor:pointer}
.open-only input{position:absolute;opacity:0;width:1px;height:1px}
.open-only .track{position:relative;width:2rem;height:1.15rem;border-radius:999px;background:var(--wood);border:1px solid var(--line-2);transition:background-color .18s,border-color .18s}
.open-only .track::after{content:"";position:absolute;top:.12rem;left:.14rem;width:.8rem;height:.8rem;border-radius:50%;background:var(--malt);transition:transform .18s,background-color .18s}
.open-only input:checked+.track{background:rgba(247,169,58,.3);border-color:rgba(255,199,100,.6)}
.open-only input:checked+.track::after{transform:translateX(.82rem);background:var(--amber-hi)}
.open-only input:checked~.lbl{color:var(--amber-hi)}
.open-only input:focus-visible+.track{outline:2px solid var(--amber-hi);outline-offset:2px}

/* "How it works" link, under the mat */
.more{display:inline-flex;align-items:center;justify-content:center;gap:.3rem;min-height:2.75rem;font-size:.88rem;font-weight:600;color:var(--amber-hi);text-decoration:none;text-underline-offset:3px}
.more:hover{text-decoration:underline}
.more .ico{width:.95rem;height:.95rem;transition:transform .18s}
.more:hover .ico{transform:translateY(2px)}

/* ---------- tonight: how many places there are, once known ---------- */
.tonight{margin:.55rem 0 0;font-size:.86rem;line-height:1.4;color:var(--malt);text-wrap:balance}
.tonight[hidden]{display:none}

/* ---------- the chalkboard: tonight's numbers, a tap picks from one group ----------
   Slate in a wooden frame, chalk letters. Phones get a small one on one row (see the phone block below). */
.board{display:none;position:relative;margin-top:1.1rem;padding:1rem 1.1rem;border-radius:6px;color:#ECEAE3;
  background:radial-gradient(120% 90% at 30% 15%,#2C3532,#181E1C 72%);
  box-shadow:inset 0 0 40px rgba(0,0,0,.5),0 0 0 7px #5B3B22,0 0 0 8px #2E1C10,0 16px 28px -10px rgba(0,0,0,.85)}
/* chalk dust */
.board::after{content:"";position:absolute;inset:0;border-radius:6px;opacity:.13;pointer-events:none;mix-blend-mode:screen;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
.board-title{margin:0;font:700 1.2rem/1.2 var(--display);color:#F3F1EA;text-shadow:0 0 1px rgba(255,255,255,.55),0 0 6px rgba(255,255,255,.08)}
.board-sub{margin:.15rem 0 0;font-size:.86rem;line-height:1.4;color:rgba(236,234,227,.68)}
.board-list{display:none;grid-template-columns:1fr 1fr;gap:.15rem .9rem;list-style:none;margin:.55rem 0 0;padding:0}
.board.known .board-list{display:grid}
.board-list li[hidden]{display:none}
.board-item{display:flex;align-items:baseline;gap:.45rem;width:100%;min-height:2.75rem;padding:.2rem .4rem;border:0;border-radius:999px;background:none;color:inherit;cursor:pointer;text-align:left;transition:box-shadow .15s,transform .15s}
.board-item .n{font:800 1.6rem/1 var(--display);color:#F7F5EF;text-shadow:0 0 1px rgba(255,255,255,.65)}
.board-item .l{font:500 .92rem/1.2 var(--ui);color:rgba(236,234,227,.84)}
.board-item:hover:not(:disabled){box-shadow:0 0 0 1px rgba(236,234,227,.3)}
.board-item:focus-visible{outline:2px solid var(--amber-hi);outline-offset:2px}
.board-item[aria-pressed="true"]{box-shadow:0 0 0 2px rgba(255,199,100,.8);transform:rotate(-1deg)}
.board-item[aria-pressed="true"] .n{color:var(--amber-hi)}
.board-item:disabled{cursor:default;opacity:.45}
.board-note{display:flex;flex-wrap:wrap;align-items:baseline;gap:.2rem .5rem;margin:.5rem 0 0;font-size:.84rem;color:var(--amber-hi)}
.board-note[hidden]{display:none}
.board-clear{min-height:2.75rem;margin:-.9rem 0;padding:0;border:0;background:none;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:2px;cursor:pointer}

/* ---------- earlier tonight: picks you rolled past, as small mats left on the bar ---------- */
.earlier{margin-top:1.2rem}
.earlier[hidden]{display:none}
.earlier-title{margin:0 0 .6rem;font:600 .85rem/1.2 var(--ui);color:var(--malt)}
.minis{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.6rem .45rem}
.mini{
  --size:5.6rem;display:grid;place-items:center;width:var(--size);height:var(--size);padding:calc(var(--size) * .17);
  border:0;border-radius:50%;cursor:pointer;transform:rotate(var(--tilt,0deg));transition:transform .2s var(--ease-out);
  background:radial-gradient(75% 75% at 38% 28%,#2A1E15,#100B08 72%);
  box-shadow:inset 0 0 0 3px var(--card),inset 0 0 0 7px #100B08,inset 0 0 0 8px rgba(232,184,90,.65),0 10px 18px -8px rgba(0,0,0,.9);
}
.mini span{font:400 calc(var(--size) * .145 * var(--fit,1))/1.05 var(--sign);color:var(--gold);text-align:center;overflow-wrap:break-word;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.mini:hover{transform:rotate(var(--tilt,0deg)) translateY(-3px)}
.mini:focus-visible{outline:2px solid var(--amber-hi);outline-offset:3px}
/* in the phone panel: one row, smaller */
#earlier-sheet{margin-top:.9rem;text-align:center}
#earlier-sheet .minis{justify-content:center;flex-wrap:nowrap}
#earlier-sheet .mini{--size:4.4rem}

/* ---------- the map mat (wide laptops): tonight's places as gold dots on a second, smaller beer mat ----------
   Printed like the big mat (gold on black, cardboard edge). Bright dots can come up next; the pick is a cross,
   earlier picks are rings. Only from 1280 px wide, where there's a column for it. */
.mapmat{display:none;margin:0;text-align:center}
.mapmat-mat{--mm:15rem;position:relative;width:var(--mm);height:var(--mm);margin:0 auto;border-radius:50%;transform:rotate(-4deg);
  background:radial-gradient(75% 75% at 38% 28%,#2A1E15,#100B08 72%);
  box-shadow:inset 0 0 0 5px var(--card),inset 0 0 0 10px #100B08,inset 0 0 0 11px rgba(232,184,90,.7),0 18px 30px -12px rgba(0,0,0,.9)}
.mapmat svg{position:absolute;inset:0;width:100%;height:100%}
.mapmat text{font:700 9.5px var(--display);letter-spacing:.2em;fill:var(--gold)}
.mapmat .ring{fill:none;stroke:rgba(232,184,90,.55);stroke-width:.8}
.mapmat .stud{fill:var(--gold)}
.mapmat .rose{fill:rgba(232,184,90,.1);stroke:rgba(232,184,90,.4);stroke-width:.7}
.mapmat .dots{fill:var(--gold);opacity:.75}
.mapmat .dots.faded{opacity:.16}
.mapmat .centre{display:none;fill:none;stroke:rgba(243,208,138,.8);stroke-width:1.1}
.mapmat.known .centre{display:inline}
.mapmat.known .rose{display:none}
.mapmat .earlier-ring{fill:none;stroke:var(--gold);stroke-width:1.2}
/* the pick: a dark patch first, so the cross reads even in the busy middle of a city */
.mapmat .halo{fill:#100B08;opacity:.8}
.mapmat .cross{fill:none;stroke:#FFE7B3;stroke-width:1.6;stroke-linecap:round}
.mapmat .spot{fill:#FFE7B3}
/* a ring that goes out from the pick as it lands (none with reduced motion: the animation ends at once, faded) */
.mapmat .ping{fill:none;stroke:#F3D08A;stroke-width:1.2;opacity:0;vector-effect:non-scaling-stroke;transform-box:fill-box;transform-origin:center;animation:mm-ping 1.4s var(--ease-out) .1s both}
@keyframes mm-ping{from{opacity:.9;transform:scale(1)}to{opacity:0;transform:scale(6)}}
.mapmat figcaption{display:grid;gap:.25rem;margin-top:1.1rem}
.mapmat-name{font:400 1.35rem/1.1 var(--sign);color:var(--gold);overflow-wrap:break-word}
.mapmat-name:empty{display:none}
.mapmat-sub{font-size:.84rem;line-height:1.4;color:var(--malt)}

/* ---------- fun fact ---------- */
.fact{margin-top:.75rem;padding:.85rem 1rem;border-radius:18px;background:rgba(248,237,216,.045);border:1px solid var(--line);font-size:.9rem;line-height:1.45;color:rgba(248,237,216,.9)}
.fact[hidden]{display:none}
.fact p{margin:0}
.fact strong{color:var(--amber-hi);font-weight:600;margin-right:.25rem}
.fact-foot{display:flex;justify-content:space-between;align-items:center;gap:.75rem;margin-top:.55rem;font-size:.8rem}
.fact-foot a{color:var(--malt);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-underline-offset:2px}
.fact-foot button{flex:none;min-height:2.25rem;padding:.35rem .75rem;font-weight:600;font-size:.8rem;background:transparent;border:1px solid var(--line-2);border-radius:10px;cursor:pointer}
.fact-foot button:hover{border-color:var(--malt)}
.fact-foot button[hidden]{display:none}

/* ---------- data note at the bottom ---------- */
.note{margin-top:auto;padding-top:1.25rem}
.note p{max-width:30rem;margin:0 auto;font-size:.75rem;line-height:1.45;color:var(--malt);text-align:center;text-wrap:balance}
.note a{text-decoration:underline;text-decoration-color:rgba(191,171,145,.55);text-underline-offset:2px}
.note a:hover{color:var(--cream)}
.scrim{display:none}

@keyframes spin{to{transform:rotate(360deg)}}
@keyframes tick{from{transform:translateY(-40%);opacity:.2}}
@keyframes thud{0%{transform:rotate(var(--tilt,-4deg)) scale(1.07)}55%{transform:rotate(var(--tilt,-4deg)) scale(.985)}100%{transform:rotate(var(--tilt,-4deg))}}
@keyframes flash{15%{opacity:1}100%{opacity:0}}
@keyframes rise{from{opacity:0;transform:translateY(8px)}}

/* ---------- phones: the result slides up as a panel over the controls ---------- */
@media (max-width:759px){
  /* the mat fills the room between the sentence and the Ko-fi line */
  main{flex:1;display:flex;flex-direction:column}
  .hero{margin-bottom:1.1rem}
  .lede{display:none}
  .go-wrap{flex:1 1 0;min-height:8rem;margin-top:.7rem}
  .go-room{flex:1 1 0;min-height:0}
  #earlier-side{display:none}
  /* the wood grain at about half strength: on a phone the lamp's pool covers most of the screen, and at full
     strength the grain read as a texture rather than a dark bar (chosen from previews on 14 Nov 2026) */
  .screen::before{background:radial-gradient(ellipse 30rem 22rem at var(--lamp-x) var(--lamp-y),rgba(255,196,110,.09),rgba(247,169,58,.035) 48%,transparent 72%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='3200' height='480'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0018 .06' numOctaves='3' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .26 0 0 0 0 .14 0 0 0 .4 -.11'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E") 50% 50%/3200px 480px}
  /* Tonight's board, small: once the places are known, the four counts on one row under the sentence, in place of
     the tonight line (chosen from previews on 14 Nov 2026). A tap picks only from that line, as on laptops. */
  #tonight{display:none}
  /* a board with nothing to tap stays away; the tonight line says how many places there are instead */
  .board.known.idle{display:none}
  .controls:has(+ .board.idle) #tonight:not([hidden]){display:block}
  .board.known{display:block;margin:.8rem 6px 0;padding:.4rem .5rem .45rem;border-radius:5px;box-shadow:inset 0 0 30px rgba(0,0,0,.5),0 0 0 5px #5B3B22,0 0 0 6px #2E1C10,0 12px 22px -10px rgba(0,0,0,.85)}
  .board-title{font-size:.92rem;padding-left:.3rem}
  /* the count and the hint stay for screen readers; "Next pick: only…" is the pressed line itself */
  .board-sub{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .board-note{display:none}
  .board.known .board-list{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:0 .15rem;margin-top:.1rem}
  .board-item{flex-direction:column;align-items:center;justify-content:center;gap:.2rem;min-height:3.2rem;padding:.25rem .1rem;border-radius:10px;text-align:center}
  .board-item .n{font-size:1.3rem}
  .board-item .l{font-size:.66rem;line-height:1.1}
  .note{padding-top:1rem}
  .note p{font-size:.72rem;line-height:1.4}
  .results{
    position:fixed;left:0;right:0;bottom:0;z-index:20;max-height:calc(100svh - .75rem);overflow-y:auto;overscroll-behavior:contain;
    padding:.75rem .75rem 1rem;border-radius:28px 28px 0 0;
    background:#1B130D;border-top:1px solid var(--line-2);
    box-shadow:0 -24px 60px rgba(0,0,0,.65);
    transform:translateY(105%);visibility:hidden;transition:transform .42s var(--ease-out),visibility 0s .42s;
  }
  .sheet-open .results{transform:none;visibility:visible;transition:transform .42s var(--ease-out)}
  .scrim{display:block;position:fixed;inset:0;z-index:15;background:rgba(10,6,3,.62);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);opacity:0;pointer-events:none;transition:opacity .3s}
  .sheet-open .scrim{opacity:1;pointer-events:auto}
  .sheet-open{overflow:hidden}
  #close{position:absolute;top:-.25rem;right:-.25rem;z-index:2;display:grid;place-items:center;width:2.75rem;height:2.75rem;border:0;border-radius:14px;background:transparent;color:var(--malt);cursor:pointer}
  #close:hover{color:var(--cream);background:rgba(248,237,216,.06)}
  #close .ico{width:1.3rem;height:1.3rem}
}
@media (max-width:359px){
  .btn{gap:.4rem;padding-inline:.6rem;font-size:.95rem}
  #near{padding:0 .6rem}
}
/* Short phone screens: tighten so everything fits without scrolling. */
@media (max-width:759px) and (max-height:720px){
  /* no room for the earlier picks in the panel on shorter phones */
  #earlier-sheet{display:none}
  .tonight{margin-top:.35rem;font-size:.8rem}
  /* while options are open there's no room for the tonight line too; it comes back when they close */
  .controls:has(.editor:not([hidden])) #tonight:not([hidden]),.controls:has(.editor:not([hidden])) + .board{display:none}
  .board.known{margin-top:.6rem;padding:.3rem .45rem .35rem}
  .board-title{font-size:.85rem}
  .board-item{min-height:2.75rem;gap:.1rem;padding:.15rem .1rem}
  .board-item .n{font-size:1.15rem}
  /* an error and its buttons need the room under the mat */
  main:has(#status.error) .board{display:none}
  .screen{padding-top:.9rem;padding-bottom:.5rem}
  .hero{margin-bottom:.9rem}
  h1{font-size:clamp(2.1rem,10vw,2.6rem)}
  .ask{margin-top:.45rem;font-size:1.25rem}
  .pickline{font-size:1.22rem}
  #city{padding-top:.6rem;padding-bottom:.6rem}
  .go-wrap{margin-top:.5rem}
  .kofi{--inset:.5rem;margin-top:calc(.75rem - var(--inset));font-size:.82rem}
  #status{margin-top:.45rem;min-height:1.25rem;font-size:.84rem}
  .note{padding-top:.7rem}
  .note p{font-size:.72rem;line-height:1.35}
  .pick{--mat:min(235px,62vw,33svh)}
  .mat-wrap{padding:.2rem 0 0}
  .details{margin-top:.6rem}
  .hours-table{line-height:1.27}
  .actions{margin-top:.7rem}
  .meta{margin-top:.55rem}
  .site-link{--pad:.5rem}
  .open-only{margin-top:.15rem}
  .fact{margin-top:.6rem}
}
@media (max-width:759px) and (max-height:610px){
  .screen{padding-top:.7rem;padding-bottom:.4rem}
  .hero{margin-bottom:.7rem}
  h1{font-size:2rem}
  .ask{margin:.35rem 0 .15rem;font-size:1.12rem}
  .pickline{font-size:1.12rem;gap:.3rem .4rem}
  .chip{min-height:2.6rem}
  .editor{margin-top:.45rem}
  .where,.seg{padding:3px}
  .seg span{font-size:.92rem}
  .seg small{font-size:.68rem;margin-top:0}
  #city{padding-top:.5rem;padding-bottom:.5rem}
  .go-wrap{margin-top:.4rem}
  .go-wrap .more{display:none}
  /* the longest error with its two buttons: the mat makes room (it stays at least 100 px, still easy to tap) */
  main:has(#status.error) .go-wrap{min-height:6rem}
  .kofi{--inset:.55rem;margin-top:calc(.6rem - var(--inset));font-size:.8rem}
  #status{margin-top:.35rem;min-height:1.15rem;font-size:.8rem}
  .note{padding-top:.5rem}
  .note p{font-size:.72rem;line-height:1.3}
  .results{padding:.55rem .55rem .7rem}
  .pick{--mat:min(205px,58vw,31svh)}
  .details{margin-top:.5rem}
  .row{font-size:.9rem}
  .actions{margin-top:.7rem;gap:.4rem}
  .actions-2{gap:.4rem}
  .btn{min-height:2.7rem;padding-block:.55rem}
  .meta{margin-top:.5rem}
  .site-link{--pad:.45rem}
  .open-only{margin-top:0;min-height:2.6rem}
  .left{font-size:.78rem}
  .badges{margin-bottom:.5rem}
  .badge{font-size:.82rem;padding:.22rem .6rem}
  .fact{margin-top:.55rem;padding:.65rem .85rem;font-size:.84rem;line-height:1.4}
  .fact-foot{margin-top:.35rem}
  .fact-foot button{min-height:2rem}
}

/* ---------- laptops and tablets: controls left, the mat right ---------- */
@media (min-width:760px){
  /* the lamp hangs over the right column, where the mat lies: the page centre + half the grid - half a column */
  .screen{padding-top:2rem;padding-bottom:1rem;--gap:clamp(2.5rem,6vw,5.5rem);--lamp-x:calc(50% + 15rem + var(--gap) / 2);--lamp-y:46%}
  /* left: the hero and the sentence, with the status and Ko-fi under them; right: the mat, where the pick lands.
     Before a pick, a fun fact that's already loaded (Near me preloads) sits under the mat, never behind it;
     once picking starts, the result takes the whole right column. */
  main{max-width:62rem;margin:auto;display:grid;grid-template-columns:minmax(0,30rem) minmax(0,26rem);grid-template-areas:"controls mat" "board mat" "foot mat" "foot fact";justify-content:center;column-gap:clamp(2.5rem,6vw,5.5rem);align-items:center}
  .controls{grid-area:controls;align-self:end}
  .foot{grid-area:foot;align-self:start}
  .go-wrap{grid-area:mat}
  .results{grid-area:fact}
  .picked .results{grid-row:1/-1;grid-column:2}
  .go-wrap{--go-max:18rem;height:22rem}
  .go-room{flex:1 1 0;min-height:0}
  .picked .go-wrap{display:none}
  h1{font-size:clamp(2.8rem,5.6vw,4.1rem)}
  .hero{margin-bottom:1.4rem}
  .note{margin-top:0;padding-top:2rem}
  .pick{--mat:18rem}
  #status{text-align:left}
  .foot .kofi{margin-left:0}
}
@media (min-width:760px) and (max-height:760px){
  .screen{padding-top:1.25rem}
  .hero{margin-bottom:1.1rem}
  h1{font-size:3rem}
  .go-wrap{--go-max:15rem;height:18rem}
  .pick{--mat:12.5rem}
  .mat-wrap{padding:.15rem 0 0}
  /* the whole column and slightly smaller badges: with open/closed, Terrace and distance the page still fits */
  .details{margin-top:.6rem;max-width:26rem}
  .badges{gap:.35rem .4rem}
  .badge{font-size:.8rem;padding:.26rem .55rem}
  .hours-table{line-height:1.25}
  .actions{margin-top:.65rem}
  .btn{min-height:2.75rem}
  .note{padding-top:1.4rem}
  .left{margin-top:.6rem}
  .fact{margin-top:.6rem}
  .mini{--size:4.8rem}
}
/* laptops: the earlier picks sit in the left column, so the panel copy isn't needed;
   the chalkboard fills the left column and says what the tonight line would */
@media (min-width:760px){
  #earlier-sheet{display:none}
  .board{display:block;grid-area:board}
  #tonight{display:none}
}
/* short laptops: a tighter board and smaller earlier picks, and no tagline, so all of it fits */
@media (min-width:760px) and (max-height:760px){
  .lede{display:none}
  .board{margin-top:.8rem;padding:.6rem .9rem .65rem}
  .board-title{font-size:1.05rem}
  .board-sub{font-size:.8rem}
  .board-list{margin-top:.3rem}
  .board-item{min-height:2.5rem}
  .board-item .n{font-size:1.3rem}
  .board-note{margin-top:.3rem}
  .earlier{margin-top:.7rem}
  .earlier-title{margin-bottom:.4rem}
  .mini{--size:4.3rem}
}
/* big screens: everything a size up, so the page doesn't float small in the dark */
@media (min-width:1500px) and (min-height:900px){
  .screen{--gap:6.5rem;--lamp-x:calc(50% + 17rem + var(--gap) / 2)}
  main{max-width:72rem;grid-template-columns:minmax(0,34rem) minmax(0,30rem);column-gap:var(--gap)}
  h1{font-size:5.3rem}
  .ask{font-size:2.05rem}
  .lede{font-size:1.15rem}
  .pickline{font-size:1.8rem}
  .chip{min-height:3.3rem;border-radius:16px}
  .tonight{font-size:.95rem}
  .go-wrap{--go-max:23rem;height:28rem}
  .pick{--mat:21rem}
  .details{max-width:27rem}
  .mini{--size:6.4rem}
}
/* Wide laptops and screens: a third column on the left for the map mat. Three columns: map, text, mat; the result
   stays in the mat's column and the lamp moves along to stay over the mat
   (page centre + half the grid − half the mat column = 50% + 21.5rem + one gap). */
@media (min-width:1280px){
  .screen{--gap:clamp(2rem,3.5vw,3.5rem);--lamp-x:calc(50% + 21.5rem + var(--gap))}
  main{max-width:82rem;grid-template-columns:minmax(0,15rem) minmax(0,28rem) minmax(0,26rem);grid-template-areas:"side controls mat" "side board mat" "side foot mat" "side foot fact";column-gap:var(--gap)}
  .picked .results{grid-column:3}
  .mapmat{display:block;grid-area:side;align-self:center}
}
@media (min-width:1280px) and (max-height:760px){
  .mapmat-mat{--mm:13rem}
  .mapmat figcaption{margin-top:.8rem}
  .mapmat-name{font-size:1.15rem}
  .mapmat-sub{font-size:.8rem}
}
/* big screens: the three columns a size up (17 + 34 + 30 rem: the lamp sits at 50% + 25.5rem + one gap) */
@media (min-width:1500px) and (min-height:900px){
  .screen{--gap:clamp(2.5rem,3.5vw,4rem);--lamp-x:calc(50% + 25.5rem + var(--gap))}
  main{max-width:92rem;grid-template-columns:minmax(0,17rem) minmax(0,34rem) minmax(0,30rem)}
  .mapmat-mat{--mm:17rem}
  .mapmat-name{font-size:1.55rem}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* ---------- How it works and questions, below the first screen ----------
   A darker band of wood: three steps on numbered beer mats, then the questions folded up so only they show. */
.about{background:linear-gradient(180deg,#0E0906,#160F0A 18rem);border-top:1px solid var(--line);color:var(--malt);font-size:.98rem;line-height:1.55}
.about-in{max-width:62rem;margin:0 auto;padding:3rem clamp(1rem,4.5vw,3rem) 3.5rem}
.about h2{margin:0;font:800 clamp(1.6rem,6vw,2.2rem)/1.1 var(--display);letter-spacing:-.02em;color:var(--cream)}
.about p{margin:0}
.about a{color:var(--cream);text-underline-offset:3px}
.about .intro{max-width:34rem;margin-top:.6rem;font-size:1.02rem}

/* the three steps */
.how{list-style:none;margin:1.8rem 0 0;padding:0;display:grid;gap:.75rem;counter-reset:none}
.how li{position:relative;display:grid;grid-template-columns:auto 1fr;column-gap:1rem;align-items:start;padding:1rem 1.1rem;border-radius:20px;background:rgba(248,237,216,.035);border:1px solid var(--line)}
.how h3{grid-column:2;margin:.2rem 0 .15rem;font:700 1.08rem/1.25 var(--display);color:var(--cream)}
.how p{grid-column:2;font-size:.94rem;line-height:1.45;text-wrap:pretty}
/* a small beer mat with the step number in gold sign-writer's lettering */
.coaster{grid-row:1/span 2;display:grid;place-items:center;width:2.9rem;height:2.9rem;border-radius:50%;
  background:radial-gradient(75% 75% at 38% 28%,#2A1E15,#100B08 72%);
  box-shadow:inset 0 0 0 2px var(--card),inset 0 0 0 5px #100B08,inset 0 0 0 6px var(--gold),0 6px 14px -6px rgba(0,0,0,.9);
  font:400 1.35rem/1 var(--sign);color:var(--gold);padding-top:.15rem;transform:rotate(-6deg)}
.how li:nth-child(2) .coaster{transform:rotate(5deg)}
.how li:nth-child(3) .coaster{transform:rotate(-2deg)}

/* questions: tap one to open it */
.about .faq-title{margin-top:3rem}
.faq{margin-top:1rem;border-radius:20px;border:1px solid var(--line);background:rgba(248,237,216,.03);overflow:hidden}
.faq details+details{border-top:1px solid var(--line)}
.faq summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:3.4rem;padding:.75rem 1.1rem;cursor:pointer;list-style:none;transition:background-color .15s}
.faq summary::-webkit-details-marker{display:none}
.faq summary:hover{background:rgba(248,237,216,.04)}
.faq summary:focus-visible{outline-offset:-3px;border-radius:18px}
.faq h3{margin:0;font:600 1rem/1.35 var(--ui);color:var(--cream)}
.faq .chev{width:1.1rem;height:1.1rem;color:var(--amber);transition:transform .2s}
.faq details[open] .chev{transform:rotate(180deg)}
.faq details[open] summary h3{color:var(--amber-hi)}
.faq details p{padding:0 1.1rem 1.05rem;max-width:40rem;font-size:.95rem;line-height:1.55}
.faq details[open] p{animation:rise .3s var(--ease-out)}

.about .back{display:flex;width:max-content;margin:2.2rem auto 0;padding-inline:1.4rem;color:var(--amber-hi);border-color:rgba(255,199,100,.42);text-decoration:none}

@media (min-width:760px){
  .about-in{padding-top:4rem;padding-bottom:4.5rem}
  .about-in>h2,.about .intro{text-align:center;margin-inline:auto}
  .how{grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:2.4rem}
  .how li{grid-template-columns:1fr;justify-items:center;align-content:start;text-align:center;padding:1.6rem 1.4rem 1.5rem}
  .how h3,.how p{grid-column:1}
  .coaster{grid-row:auto;width:3.6rem;height:3.6rem;font-size:1.7rem;margin-bottom:.6rem}
  .faq{max-width:44rem;margin-inline:auto}
}

/* ---------- 404 page ---------- */
/* A beer mat lying blank side up under the lamp: plain cardboard, the small printed logo, a ring from a glass. */
.screen.screen-lost{--lamp-x:50%;--lamp-y:42%}
.lost{display:block;flex:none;margin:auto;max-width:28rem;text-align:center}
.lost-mark{margin:0}
.lost-mark a{font:800 1.5rem/1 var(--display);letter-spacing:-.03em;text-transform:uppercase;text-decoration:none;color:var(--cream)}
.lost-mark a:hover{color:var(--amber-hi)}
.lost-mat{
  position:relative;width:min(15rem,62vw);aspect-ratio:1;margin:2rem auto 1.8rem;border-radius:50%;overflow:hidden;
  display:grid;place-items:center;color:#3A2717;transform:rotate(-8deg);
  background:radial-gradient(75% 75% at 38% 28%,#F2E8D4,#D8C6A4 80%);
  box-shadow:inset 0 0 0 1px rgba(58,39,23,.18),0 18px 30px -8px rgba(0,0,0,.85);
}
.lost-mat svg{width:38%;height:auto;opacity:.8}
/* the ring a wet glass left, a little off centre */
.lost-mat::before{content:"";position:absolute;width:56%;aspect-ratio:1;left:30%;top:24%;border-radius:50%;border:solid rgba(120,74,32,.2);border-width:5px 3px 4px 2px;box-shadow:inset 0 0 6px rgba(120,74,32,.12);filter:blur(.6px);transform:rotate(20deg)}
/* cardboard grain, as on the mat */
.lost-mat::after{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.25;mix-blend-mode:multiply;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .38 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.lost h1{margin:0;font:700 clamp(1.4rem,6vw,1.9rem)/1.15 var(--display);letter-spacing:-.015em;text-transform:none;color:var(--amber-hi)}
.lost .lede{display:block;margin-top:.6rem}
.lost .btn{margin-top:1.5rem;width:auto;min-height:2.75rem;padding-inline:1.6rem}
