#overlay .surf-room-map, #surf-room-open { display: inline-block; }
#surf-room-open {
  margin: 8px 0 0 6px;
  border-radius: 16px;
  padding: 6px 14px;
}
#surf-room-open, #surf-room-ride, #surf-room button {
  border: 1px solid #f6efdc88;
  background: #0b222b;
  color: #f6efdc;
  font: 600 14px system-ui, sans-serif;
  cursor: pointer;
}
#surf-room-ride {
  position: absolute;
  z-index: 2;
  top: calc(43px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(88vw, 280px);
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 12px;
}
#overlay.on ~ #surf-room-ride { display: none; }
#surf-room {
  box-sizing: border-box;
  width: min(430px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  border: 1px solid #50777b;
  border-radius: 15px;
  padding: 20px;
  background: #102c35;
  color: #f6efdc;
  font-size: 14px;
  line-height: 1.4;
}
#surf-room::backdrop { background: #06191cc7; }
#surf-room h2 { margin: 0 0 10px; font-size: 21px; }
#surf-room p { margin: 0 0 12px; }
#surf-room-status { color: #9cf1ef; }
#surf-room input {
  width: 100%;
  margin: 3px 0 12px;
  padding: 7px;
  border: 1px solid #50777b;
  border-radius: 6px;
  background: #0b222b;
  color: inherit;
  font: inherit;
  user-select: text;
  -webkit-user-select: text;
}
.surf-room-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#surf-room button { min-height: 44px; border-radius: 8px; padding: 7px 11px; }
#surf-room button:focus-visible, #surf-room input:focus-visible, #surf-room-ride:focus-visible {
  outline: 2px solid #ffd38a;
  outline-offset: 2px;
}
