/* Bay map: painted art + WebGL layer (js/bay-map.js) + wooden signs as real buttons.
   Every size inside the stage is in --u (one cqw of the original design; js/bay-map.js sets it for the wider,
   re-composed map), so the map scales as one picture on phone, tablet and desktop. */
/* the map is the page's centrepiece: it breaks out of the text column, almost edge to edge */
.bay-wrap { width: min(calc(100vw - 40px), 1760px); margin-left: calc(50% - min(calc(50vw - 20px), 880px)); position: relative; border-radius: 26px; border: 3px solid var(--line, #2b2d42); box-shadow: var(--shadow, 0 6px 0 rgba(43,45,66,.12)); overflow: hidden; background: #1f8fcf; }
.bay-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.bay-scroll::-webkit-scrollbar { display: none; }
.bay-stage { --u: 1cqw; position: relative; width: 100%; min-width: 960px; aspect-ratio: 1800 / 1044; container-type: inline-size; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.bay-stage > img, .bay-stage > canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.bay-stage > img { object-fit: cover; }
.bay-stage > canvas { cursor: default; }
.bay-stage.webgl > img { visibility: hidden; }

.bay-plank {
  position: absolute; z-index: 2; transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  font: 700 clamp(10px, calc(1.95 * var(--u)), 30px)/1.05 "PT Serif", Georgia, "Times New Roman", serif;
  color: #fff3d6; letter-spacing: .01em; white-space: nowrap; text-align: center;
  padding: .42em .95em .48em; border-radius: .42em; border: .13em solid #3f2310; cursor: pointer;
  background:
    repeating-linear-gradient(177deg, transparent 0 .42em, rgba(70, 35, 10, .13) .42em .5em),
    linear-gradient(180deg, #dca561 0%, #bd7d3f 52%, #98592a 100%);
  box-shadow: inset 0 .1em 0 rgba(255, 236, 190, .55), inset 0 -.14em 0 rgba(60, 28, 8, .45), 0 .3em .55em rgba(10, 30, 50, .45);
  text-shadow: 0 .07em 0 #3f2310, 0 0 .3em rgba(40, 20, 5, .55);
  transition: transform .22s cubic-bezier(.3, 1.5, .5, 1), filter .2s;
  -webkit-tap-highlight-color: transparent;
}
.bay-plank::before, .bay-plank::after { content: ""; position: absolute; top: 50%; width: .26em; height: .26em; margin-top: -.13em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #c9b8a0, #4a3a2a); box-shadow: 0 0 0 .04em #2a1808; }
.bay-plank::before { left: .38em; }
.bay-plank::after { right: .38em; }
.bay-plank small { display: block; margin-top: .22em; font: italic 700 .6em/1.1 "PT Serif", Georgia, serif; color: #ffe2a6; letter-spacing: .02em; }
.bay-plank:hover, .bay-plank.hot { transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1.07); filter: brightness(1.1) drop-shadow(0 0 .35em rgba(255, 226, 122, .9)); }
.bay-plank:focus-visible { outline: .16em solid #ffd23f; outline-offset: .14em; }
.bay-plank:active { transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(.97); }
.bay-plank .tag { position: absolute; top: -.62em; right: -.5em; font: 900 .5em/1 "Nunito", "Segoe UI", sans-serif; letter-spacing: .06em; color: #fff; text-shadow: none; padding: .35em .6em; border-radius: 99px; border: .14em solid #3f2310; transform: rotate(6deg); box-shadow: 0 .15em .3em rgba(0, 0, 0, .3); }
.bay-plank .tag.soon { background: #ef476f; }
.bay-plank .tag.go { background: #2fbf71; }
.bay-plank .tag.pct { background: #ffc93c; color: #3f2310; }
.bay-plank.soon { filter: saturate(.75); }
.bay-plank.soon:hover { filter: saturate(.9) brightness(1.05); }
.bay-plank.small { font-size: clamp(9px, calc(1.55 * var(--u)), 24px); padding: .34em .8em .4em; }

.bay-title {
  position: absolute; z-index: 2; left: 1.2%; top: 11.2%; width: 37.6%; min-height: calc(15.6 * var(--u)); transform: rotate(-4deg); transform-origin: 0 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(1.2 * var(--u)) calc(1.6 * var(--u)) calc(1.3 * var(--u)) calc(8.2 * var(--u)); border-radius: calc(1.2 * var(--u)); border: calc(.32 * var(--u)) solid #3f2310; pointer-events: none;
  background:
    repeating-linear-gradient(178deg, transparent 0 calc(1.6 * var(--u)), rgba(70, 35, 10, .14) calc(1.6 * var(--u)) calc(1.8 * var(--u))),
    linear-gradient(180deg, #e2ad68 0%, #c3854a 50%, #9e6030 100%);
  box-shadow: inset 0 calc(.25 * var(--u)) 0 rgba(255, 236, 190, .55), inset 0 calc(-.3 * var(--u)) 0 rgba(60, 28, 8, .45), 0 calc(.7 * var(--u)) calc(1.2 * var(--u)) rgba(10, 30, 50, .45);
  text-align: center;
}
.bay-title::before, .bay-title::after { content: ""; position: absolute; top: calc(-2.6 * var(--u)); width: calc(.45 * var(--u)); height: calc(2.8 * var(--u)); background: #6b4423; border-radius: calc(.2 * var(--u)); }
.bay-title::before { left: 18%; } .bay-title::after { right: 14%; }
.bay-title .pencil { position: absolute; left: calc(1.4 * var(--u)); top: 50%; width: calc(6.2 * var(--u)); transform: translateY(-50%) rotate(-28deg); filter: drop-shadow(0 calc(.2 * var(--u)) calc(.2 * var(--u)) rgba(0, 0, 0, .35)); }
.bay-title .brand-big { display: block; font: 400 calc(4.5 * var(--u))/1 "Lobster", "Comic Sans MS", cursive; color: #fff6dc; text-shadow: 0 calc(.22 * var(--u)) 0 #3f2310, 0 0 calc(.6 * var(--u)) rgba(40, 20, 5, .5); white-space: nowrap; }
.bay-title .brand-big .dot { color: #ff5d84; }
.bay-title .brand-big .tld { color: #9fe6ff; }
.bay-title .sub { display: block; margin-top: calc(.8 * var(--u)); font: italic 700 calc(1.75 * var(--u))/1.1 "PT Serif", Georgia, serif; color: #ffe2a6; text-shadow: 0 calc(.12 * var(--u)) 0 #3f2310; white-space: nowrap; }

.bay-motto { position: absolute; z-index: 2; pointer-events: none; }
.bay-motto span {
  position: absolute; transform: translate(-50%, -50%) rotate(var(--r, 0deg)); white-space: nowrap;
  font: 700 calc(1.75 * var(--u))/1 "PT Serif", Georgia, serif; color: #fff3d6; padding: calc(.4 * var(--u)) calc(1.1 * var(--u)) calc(.5 * var(--u)); border-radius: calc(.5 * var(--u)); border: calc(.2 * var(--u)) solid #2e1a0b;
  background: repeating-linear-gradient(177deg, transparent 0 calc(.8 * var(--u)), rgba(40, 20, 5, .16) calc(.8 * var(--u)) calc(.95 * var(--u))), linear-gradient(180deg, #a06a3a, #7a4a22);
  box-shadow: inset 0 calc(.15 * var(--u)) 0 rgba(255, 220, 170, .35), 0 calc(.25 * var(--u)) calc(.4 * var(--u)) rgba(0, 0, 0, .35); text-shadow: 0 calc(.1 * var(--u)) 0 #2e1a0b;
}
.bay-swipe { display: none; position: absolute; z-index: 3; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 6px 14px; border-radius: 99px; background: rgba(20, 30, 60, .72); color: #fff; font: 800 14px/1.2 "Nunito", "Segoe UI", sans-serif; pointer-events: none; transition: opacity .4s; }
@media (max-width: 980px) { .bay-swipe { display: block; } }
.bay-swipe.gone { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .bay-plank { transition: none; } }
.bay-hint { text-align: center; font-weight: 800; color: var(--ink-soft, #5c6178); margin: 10px 0 0; font-size: 17px; }
.bay-plank.pointed { outline: none; animation: bayPlankCall 1.3s ease-in-out infinite; }
@keyframes bayPlankCall { 50% { filter: brightness(1.12) drop-shadow(0 0 .5em rgba(255, 226, 122, 1)); } }
