/* THE BOARD, AS A SHEET OVER THE MAP.
   It used to be board.html, a whole page: opening it threw the map away. This
   is a pop-up that leaves the map where it was. Phone: a bottom sheet that
   opens at ~45% height and drags to full or down to nothing. Desktop: a large
   floating panel with an expand button. Colours are the app's own (gold / glass). */
#bsheet{--g:#e9c46a;--gh:#ffe9b5;--bs-y:100%;position:fixed;inset:0;z-index:80;display:none;
  font-family:"Jost","Avenir Next","Helvetica Neue",-apple-system,sans-serif;color:rgba(255,255,255,.9)}
#bsheet.on{display:block}
#bsheet *{box-sizing:border-box}
#bsheet .bs-scrim{position:absolute;inset:0;background:rgba(3,6,5,0);transition:background .22s}
#bsheet.shown .bs-scrim{background:rgba(3,6,5,.34)}

#bsheet .bs-panel{position:absolute;left:0;right:0;bottom:0;top:calc(env(safe-area-inset-top) + 6px);
  display:flex;flex-direction:column;overflow:hidden;
  background:linear-gradient(180deg,rgba(24,30,27,.992),rgba(9,12,11,.996));
  border:1px solid rgba(233,196,106,.26);border-bottom:0;border-radius:22px 22px 0 0;
  box-shadow:0 -18px 60px -10px rgba(0,0,0,.8),0 1px 0 rgba(255,233,181,.14) inset;
  transform:translate3d(0,var(--bs-y),0);transition:transform .28s cubic-bezier(.2,.8,.2,1);
  will-change:transform;touch-action:none}
#bsheet.drag .bs-panel{transition:none}
#bsheet.full .bs-panel{touch-action:auto}
#bsheet .bs-head{flex:0 0 auto;position:relative;padding:8px 14px 8px 18px;touch-action:none;cursor:grab}
#bsheet .bs-grab{display:block;width:42px;height:4px;border-radius:2px;margin:0 auto 8px;background:rgba(255,255,255,.28)}
#bsheet .bs-row{display:flex;align-items:center;gap:10px}
#bsheet h2{margin:0;flex:1 1 auto;font:500 11px/1 "Jost",sans-serif;letter-spacing:.32em;text-transform:uppercase;
  background:linear-gradient(100deg,var(--g),var(--gh) 40%,var(--g));-webkit-background-clip:text;background-clip:text;color:transparent}
#bsheet .bs-btn{flex:0 0 auto;min-height:36px;min-width:36px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;
  border-radius:18px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);color:rgba(255,255,255,.88);
  font:500 10px/1 "Jost",sans-serif;letter-spacing:.2em;text-transform:uppercase;text-decoration:none;cursor:pointer}
#bsheet .bs-btn:hover{border-color:rgba(233,196,106,.6);color:var(--gh)}
#bsheet .bs-btn:focus-visible,#bsheet .bt:focus-visible{outline:2px solid var(--g);outline-offset:2px}
#bsheet .bs-x{font-size:18px;letter-spacing:0;padding:0;width:36px}
#bsheet .bs-exp{display:none}
#bsheet .bs-chips{display:flex;gap:7px;margin-top:9px;overflow-x:auto;scrollbar-width:none;touch-action:pan-x;padding-bottom:2px}
#bsheet .bs-chips::-webkit-scrollbar{display:none}
#bsheet .bs-chip{flex:0 0 auto;min-height:32px;padding:0 13px;border-radius:16px;border:1px solid rgba(255,255,255,.14);
  background:transparent;color:rgba(255,255,255,.74);font:500 10px/1 "Jost",sans-serif;letter-spacing:.18em;text-transform:uppercase;cursor:pointer}
#bsheet .bs-chip[aria-pressed=true]{background:linear-gradient(180deg,rgba(233,196,106,.28),rgba(233,196,106,.12));
  border-color:rgba(233,196,106,.7);color:var(--gh)}

#bsheet .bs-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;padding:6px 10px calc(24px + env(safe-area-inset-bottom));touch-action:pan-y}
#bsheet:not(.full) .bs-scroll{overflow-y:hidden;touch-action:none}
#bsheet .bs-lede{margin:2px 8px 12px;font:400 15px/1.5 "EB Garamond",Georgia,serif;color:rgba(255,255,255,.7);max-width:60ch}
#bsheet .bs-cols{display:flex;gap:8px;align-items:flex-start}
#bsheet .bs-col{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:8px}

/* A tile's height comes from its aspect-ratio, set before the media loads, so
   nothing moves when a poster or clip arrives. */
#bsheet .bt{text-transform:none;letter-spacing:0;font-weight:400;line-height:1.2;position:relative;display:block;width:100%;padding:0;border:1px solid rgba(255,255,255,.1);border-radius:16px;overflow:hidden;
  background:#10161a;color:inherit;text-align:left;cursor:pointer;font:inherit;isolation:isolate;
  box-shadow:0 10px 24px -12px rgba(0,0,0,.8),0 1px 0 rgba(255,255,255,.1) inset;
  transition:transform .18s,border-color .18s}
#bsheet .bt:hover{transform:translateY(-2px);border-color:rgba(233,196,106,.55)}
#bsheet .bt:active{transform:scale(.985)}
#bsheet .bt img,#bsheet .bt video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
#bsheet .bt::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;border-radius:inherit;
  background:linear-gradient(180deg,rgba(255,255,255,.14) 0,rgba(255,255,255,0) 26%,rgba(0,0,0,0) 48%,rgba(0,0,0,.74) 100%)}
#bsheet .bt .cap{position:absolute;left:11px;right:11px;bottom:9px;z-index:3;pointer-events:none}
#bsheet .bt .k{display:block;font:500 8px/1 "Jost",sans-serif;letter-spacing:.26em;text-transform:uppercase;color:var(--g);margin-bottom:5px}
#bsheet .bt .n{display:block;font:500 15px/1.15 "EB Garamond",Georgia,serif;color:#fff;text-shadow:0 1px 6px rgba(0,0,0,.7)}
#bsheet .bt .m{display:block;margin-top:3px;font:400 11px/1.25 "Jost",sans-serif;color:rgba(255,255,255,.72)}
#bsheet .bt .pl{position:absolute;right:10px;top:10px;z-index:3;width:26px;height:26px;border-radius:50%;
  background:rgba(0,0,0,.45);border:1px solid rgba(255,255,255,.25);display:grid;place-items:center;pointer-events:none}
#bsheet .bt .pl::before{content:"";margin-left:2px;border:5px solid transparent;border-left:8px solid #fff;border-right:0}
#bsheet .bt.live .pl{display:none}
#bsheet .bt-up{background:linear-gradient(135deg,#17251f,#0d1613)}
#bsheet .bt-park{background:radial-gradient(120% 90% at 20% 0,#2c5b44 0,#12281f 55%,#0a1511 100%)}
#bsheet .bt-park::after{background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(0,0,0,0) 40%,rgba(0,0,0,.4))}
#bsheet .bt-park img.gl{left:50%;top:14%;right:auto;bottom:auto;width:46%;max-width:96px;height:auto;aspect-ratio:1;transform:translateX(-50%);
  object-fit:contain;filter:drop-shadow(0 6px 14px rgba(0,0,0,.6))}
#bsheet .bt-sp img{object-fit:cover}
#bsheet .bt-sk{background:linear-gradient(110deg,#121a17 30%,#1b2823 50%,#121a17 70%);background-size:200% 100%;animation:bsk 1.2s linear infinite}
@keyframes bsk{to{background-position:-200% 0}}
#bsheet .bs-more{height:1px}
#bsheet .bs-empty{padding:30px 8px;color:rgba(255,255,255,.6);font:400 15px/1.5 "EB Garamond",Georgia,serif}

/* the expanded tile */
#bsheet .bs-view{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;background:rgba(5,8,7,.985);
  opacity:0;pointer-events:none;transition:opacity .16s;touch-action:auto}
#bsheet .bs-view.on{opacity:1;pointer-events:auto}
#bsheet .bs-vm{position:relative;flex:1 1 auto;min-height:0;display:grid;place-items:center;background:#000}
#bsheet .bs-vm img,#bsheet .bs-vm video{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;display:block}
#bsheet .bs-vm .bs-park{display:grid;gap:14px;place-items:center;text-align:center;padding:20px;
  background:radial-gradient(120% 90% at 50% 0,#2c5b44,#0a1511);width:100%;height:100%;align-content:center}
#bsheet .bs-vm .bs-park img{width:110px;height:110px;object-fit:contain}
#bsheet .bs-snd{position:absolute;right:12px;bottom:12px;z-index:2;background:rgba(0,0,0,.55)}
#bsheet .bs-vi{flex:0 0 auto;padding:14px 18px calc(16px + env(safe-area-inset-bottom));display:grid;gap:8px;
  background:linear-gradient(180deg,rgba(18,24,21,.98),rgba(8,11,10,.99));border-top:1px solid rgba(233,196,106,.2)}
#bsheet .bs-vk{font:500 9px/1 "Jost",sans-serif;letter-spacing:.3em;text-transform:uppercase;color:var(--g)}
#bsheet .bs-vt{margin:0;font:400 24px/1.12 "EB Garamond",Georgia,serif;color:#fff}
#bsheet .bs-vs{font:400 12px/1.5 "Jost",sans-serif;color:rgba(255,255,255,.66)}
#bsheet .bs-vb{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
#bsheet .bs-vb .go{background:linear-gradient(180deg,#f2d27e,#d9ad45);border-color:#f2d27e;color:#1a1305}
#bsheet .bs-vb .go:hover{color:#000;filter:brightness(1.06)}
#bsheet .bs-vb .bs-btn{min-height:42px;padding:0 18px}

/* desktop and Mac: a large floating panel, the map still there around it */
@media (min-width:821px) and (hover:hover){
  #bsheet.shown .bs-scrim{background:rgba(3,6,5,.5)}
  #bsheet .bs-panel{left:50%;right:auto;top:50%;bottom:auto;width:min(1120px,94vw);height:min(88vh,900px);
    border:1px solid rgba(233,196,106,.3);border-radius:22px;touch-action:auto;
    transform:translate3d(-50%,-48%,0) scale(.97);opacity:0;transition:transform .2s cubic-bezier(.2,.8,.2,1),opacity .16s,width .24s,height .24s;
    backdrop-filter:blur(18px) saturate(1.2);-webkit-backdrop-filter:blur(18px) saturate(1.2)}
  #bsheet.shown .bs-panel{transform:translate3d(-50%,-50%,0) scale(1);opacity:1}
  #bsheet.big .bs-panel{width:calc(100vw - 32px);height:calc(100vh - 32px)}
  #bsheet .bs-head{cursor:default;padding:16px 20px 10px}
  #bsheet .bs-grab{display:none}
  #bsheet .bs-exp{display:inline-flex}
  #bsheet:not(.full) .bs-scroll{overflow-y:auto;touch-action:pan-y}
  #bsheet .bs-scroll{padding:6px 18px 28px}
  #bsheet .bs-view{flex-direction:row}
  #bsheet .bs-vm{flex:1 1 62%}
  #bsheet .bs-vi{flex:0 0 340px;border-top:0;border-left:1px solid rgba(233,196,106,.2);align-content:center;padding:24px}
}
@media (max-width:820px){
  #bsheet .bs-view{border-radius:22px 22px 0 0}
}
@media (prefers-reduced-motion:reduce){
  #bsheet *{transition-duration:.01s !important;animation:none !important}
}
